#118 Add %python_provide provides
Merged 2 months ago by churchyard. Opened 2 months ago by churchyard.
rpms/ churchyard/python3 python_provide  into  master

file modified
+15

@@ -197,6 +197,9 @@ 

  # workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)

  BuildRequires: /usr/sbin/ifconfig

  

+ # For %%python_provide

+ BuildRequires: python-rpm-macros

+ 

  %if %{with rpmwheels}

  BuildRequires: python-setuptools-wheel

  BuildRequires: python-pip-wheel

@@ -379,6 +382,8 @@ 

  Provides: bundled(python3-setuptools) = 40.8.0

  %endif

  

+ %{?python_provide:%python_provide python3-libs}

+ 

  # There are files in the standard library that have python shebang.

  # We've filtered the automatic requirement out so libs are installable without

  # the main package. This however makes it pulled in by default.

@@ -405,6 +410,8 @@ 

  Requires: python3-rpm-macros

  Requires: python3-rpm-generators

  

+ %{?python_provide:%python_provide python3-devel}

+ 

  # This is not "API" (packages that need setuptools should still BuildRequire it)

  # However some packages apparently can build both with and without setuptools

  # producing egg-info as file or directory (depending on setuptools presence).

@@ -442,6 +449,8 @@ 

  Provides: %{name}-tools%{?_isa} = %{version}-%{release}

  Obsoletes: %{name}-tools < %{version}-%{release}

  

+ %{?python_provide:%python_provide python3-idle}

+ 

  # Shall be removed in Fedora 31

  Obsoletes: platform-python-tools < %{platpyver}

  

@@ -462,6 +471,8 @@ 

  Summary: A GUI toolkit for Python

  Requires: %{name} = %{version}-%{release}

  

+ %{?python_provide:%python_provide python3-tkinter}

+ 

  # Shall be removed in Fedora 31

  Obsoletes: platform-python-tkinter < %{platpyver}

  

@@ -475,6 +486,8 @@ 

  Requires: %{name} = %{version}-%{release}

  Requires: %{name}-libs%{?_isa} = %{version}-%{release}

  

+ %{?python_provide:%python_provide python3-test}

+ 

  # Shall be removed in Fedora 31

  Obsoletes: platform-python-test < %{platpyver}

  

@@ -500,6 +513,8 @@ 

  Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}

  Requires: %{name}-idle%{?_isa} = %{version}-%{release}

  

+ %{?python_provide:%python_provide python3-debug}

+ 

  %description debug

  python3-debug provides a version of the Python runtime with numerous debugging

  features enabled, aimed at advanced Python users such as developers of Python

This allows easier compatibility back and forth once (and if)
https://fedoraproject.org/wiki/Changes/Python_means_Python3
happens. This is not the full implementation of the change,
as the python-unversioned package still needs to be added.

This is currently a no-op as %python_provide does nothing
for python3.

Looks good; please merge if the CI passes.

Metadata Update from @churchyard:
- Request assigned

2 months ago

I plan to do 3.7.4 update first, so the commits are in saner order. Please don't merge this yet.

Metadata Update from @churchyard:
- Pull-request tagged with: blocked, feature

2 months ago

rebased onto f7475de

2 months ago

Metadata Update from @churchyard:
- Pull-request untagged with: blocked

2 months ago

Metadata Update from @churchyard:
- Pull-request tagged with: merge - rebase - CI

2 months ago

Pull-Request has been merged by churchyard

2 months ago