#7 Remove the python2 subpackage
Closed 4 years ago by churchyard. Opened 4 years ago by cstratak.
rpms/ cstratak/python-dateutil py2remove  into  master

file modified
+4 -36
@@ -2,7 +2,7 @@ 

  

  Name:           python-%{modname}

  Version:        2.8.0

- Release:        6%{?dist}

+ Release:        7%{?dist}

  Epoch:          1

  Summary:        Powerful extensions to the standard datetime module

  
@@ -23,22 +23,6 @@ 

  

  %description %_description

  

- %package -n python2-%{modname}

- Summary:        %summary

- BuildRequires:  python2-devel

- BuildRequires:  python2-setuptools

- BuildRequires:  python2-setuptools_scm

- %if %{with tests} && 0%{?fedora} < 32

- BuildRequires:  python2-freezegun

- BuildRequires:  python2-pytest

- BuildRequires:  python2-six

- %endif

- Requires:       tzdata

- Requires:       python2-six

- %{?python_provide:%python_provide python2-%{modname}}

- 

- %description -n python2-%{modname}  %_description

- 

  %package -n python3-%{modname}

  Summary:        %summary

  BuildRequires:  python3-devel
@@ -67,36 +51,17 @@ 

  mv NEWS.new NEWS

  

  %build

- %py2_build

  %py3_build

  make -C docs html

  

  %install

- %py2_install

  %py3_install

  

  %if %{with tests}

  %check

  %{__python3} -m pytest -W ignore::pytest.PytestUnknownMarkWarning

- 

- %if 0%{?fedora} < 32

- # Tests skipped on Python 2:

- # dateutil/test/property: Tests using python2-hypothesis are skipped to break

- #   up dependency loops as the Python 2 stack is being removed form Fedora.

- # gettz_badzone_unicode: "os.path.isfile" raises the wrong error on non-UTF-8

- #   locales. Probably not worth worrying about.

- %{__python2} -m pytest \

-     --ignore dateutil/test/property \

-     -k 'not gettz_badzone_unicode'

- %endif

  %endif

  

- %files -n python2-%{modname}

- %license LICENSE

- %doc NEWS README.rst

- %{python2_sitelib}/%{modname}/

- %{python2_sitelib}/*.egg-info

- 

  %files -n python3-%{modname}

  %license LICENSE

  %doc NEWS README.rst
@@ -108,6 +73,9 @@ 

  %doc docs/_build/html

  

  %changelog

+ * Tue Jan 07 2020 Charalampos Stratakis <cstratak@redhat.com> - 1:2.8.0-7

+ - Remove the python2 subpackage

+ 

  * Fri Sep 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.8.0-6

  - Reduce Python 2 build dependencies on Fedora 32

  

no initial comment

The diff looks good to me. Could you please scratch-build it? Simple Koji CI seems to be still on holiday.

Yes. It seems that it does not use nor produce any Python 2 bits. I don't have Python 3.9 so I cannot test it further.

Pull-Request has been closed by churchyard

4 years ago
Metadata