#3 Remove Python 2 subpackage
Closed 4 years ago by churchyard. Opened 4 years ago by pviktori.
rpms/ pviktori/python-pathlib2 no-py2  into  master

file modified
+5 -27
@@ -2,7 +2,7 @@ 

  

  Name:           python-%{modname}

  Version:        2.3.4

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        Object-oriented filesystem paths

  License:        MIT

  URL:            https://github.com/mcmtroffaes/pathlib2/
@@ -17,21 +17,6 @@ 

  

  %description %{_description}

  

- %package -n python2-%{modname}

- Summary:        %{summary}

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

- BuildRequires:  python2-devel

- BuildRequires:  python2-mock

- BuildRequires:  python2-pytest

- BuildRequires:  python2-scandir

- BuildRequires:  python2-six

- Requires:  python2-scandir

- Requires:  python2-six

- 

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

- 

- Python 2 version.

- 

  %package -n python3-%{modname}

  Summary:        %{summary}

  %{?python_provide:%python_provide python3-%{modname}}
@@ -50,25 +35,14 @@ 

  %setup -q -n %{modname}-%{version}

  

  %build

- %py2_build

  %py3_build

  

  %install

- %py2_install

  %py3_install

  

  %check

- # LANG has to be set here because otherwise file system encoding is

- # ANSI_X3.4-1968 by default in mock build

- LANG=C.utf8 %{__python2} -m pytest -v tests

  %{__python3} -m pytest -v tests

  

- %files -n python2-%{modname}

- %doc README.rst

- %license LICENSE.rst

- %{python2_sitelib}/%{modname}/

- %{python2_sitelib}/%{modname}-%{version}-py?.?.egg-info

- 

  %files -n python3-%{modname}

  %doc README.rst

  %license LICENSE.rst
@@ -76,6 +50,10 @@ 

  %{python3_sitelib}/%{modname}-%{version}-py?.?.egg-info

  

  %changelog

+ * Mon Nov 18 2019 Petr Viktorin <pviktori@redhat.com> - 2.3.4-5

+ - Remove Python 2 subpackage

+   https://bugzilla.redhat.com/show_bug.cgi?id=1773238

+ 

  * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.4-4

  - Rebuilt for Python 3.8.0rc1 (#1748018)

  

https://bugzilla.redhat.com/show_bug.cgi?id=1773238

With python2-pytest was retired, nothing more in Rawhide depends on python2-pathlib2.

Pull-Request has been closed by churchyard

4 years ago