Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .ci/archlinux/Dockerfile.deps.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RUN pacman -Syu --needed --noconfirm \
libyaml \
meson \
python-gobject \
python-six \
&& pacman -Scc --noconfirm

RUN ln -sf /builddir/bindings/python/gi/overrides/Modulemd.py $(python3 -c "import gi; import os; os.makedirs(gi._overridesdir, exist_ok=True); print(gi._overridesdir)")/Modulemd.py
2 changes: 0 additions & 2 deletions .ci/centos/Dockerfile.deps.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ ifelse(eval(cosrelease == 8), 1, `dnl
pkgconfig \
ifelse(eval(cosrelease < 9), 1, `dnl
python2-devel \
python2-six \
python36-devel \
',`dnl
python3-devel \
python3-six \
')dnl
ifelse(eval(cosrelease < 8), 1, `dnl
python-gobject-base \
Expand Down
1 change: 0 additions & 1 deletion .ci/mageia/Dockerfile.deps.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN dnf -y --setopt=install_weak_deps=False --setopt=tsflags='' install \
openssl \
pkgconf \
popt-devel \
python3-six \
python3-autopep8 \
python3-devel \
python3-gitpython \
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ jobs:
run: sed -i -e '\| usr/share/gtk-doc/|d' -e '\| usr/share/doc/|d' /etc/pacman.conf

- name: Install dependencies
run: pacman -Syu --needed --noconfirm base-devel file git glib2 glib2-devel glib2-docs gobject-introspection gtk-doc jq libyaml meson python-gobject python-six valgrind
run: pacman -Syu --needed --noconfirm base-devel file git glib2 glib2-devel glib2-docs gobject-introspection gtk-doc jq libyaml meson python-gobject valgrind

- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -300,7 +300,6 @@ jobs:
openssl
pkgconf
popt-devel
python3-six
python3-autopep8
python3-devel
python3-gitpython
Expand Down
7 changes: 6 additions & 1 deletion bindings/python/gi/overrides/Modulemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@

import functools

from six import text_type
from gi.repository import GLib

import datetime
import sys

if sys.version_info[0] >= 3:
text_type = str
else:
text_type = unicode # noqa: F821

Modulemd = get_introspection_module("Modulemd")

Expand Down
8 changes: 0 additions & 8 deletions fedora/libmodulemd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ more details.
Summary: Python 2 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python-gobject-base
Requires: python-six

%description -n python2-%{name}
Python 2 bindings for %{name}
Expand All @@ -68,13 +67,6 @@ Summary: Python 3 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python%{python3_pkgversion}-gobject-base

%if (0%{?rhel} && 0%{?rhel} <= 7)
# The py3_dist macro on EPEL 7 doesn't work right at the moment
Requires: python3.6dist(six)
%else
Requires: %{py3_dist six}
%endif

%description -n python%{python3_pkgversion}-%{name}
Python %{python3_pkgversion} bindings for %{name}

Expand Down
Loading