#2 Drop python2 package
Merged 5 years ago by amoralej. Opened 5 years ago by ykarel.
rpms/ ykarel/python-debtcollector master  into  master

file modified
+9 -52
@@ -2,13 +2,9 @@ 

  

  %{!?upstream_version: %global upstream_version %{version}%{?milestone}}

  

- %if 0%{?fedora} >=24

- %global with_python3 1

- %endif

- 

  Name:        python-%{pypi_name}

  Version:     1.11.0

- Release:     7%{?dist}

+ Release:     8%{?dist}

  Summary:     A collection of Python deprecation patterns and strategies

  

  License:     ASL 2.0
@@ -24,40 +20,16 @@ 

  * a keyword is renamed

  * further customizing the emitted messages

  

- %package -n python2-%{pypi_name}

- Summary:     A collection of Python deprecation patterns and strategies

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

- 

- BuildRequires: python2-devel

- BuildRequires: python2-setuptools

- BuildRequires: python2-pbr

- 

- Requires:    python2-babel

- Requires:    python2-funcsigs

- Requires:    python2-pbr

- Requires:    python2-six

- Requires:    python2-wrapt

- 

- 

- %description -n python2-%{pypi_name}

- It is a collection of functions/decorators which is used to signal a user when

- *  a method (static method, class method, or regular instance method) or a class

-     or function is going to be removed at some point in the future.

- * to move a instance method/property/class from an existing one to a new one

- * a keyword is renamed

- * further customizing the emitted messages

- 

  %package -n python-%{pypi_name}-doc

  Summary:        Documentation for the debtcollector module

  

- BuildRequires:  python2-sphinx

- BuildRequires:  python2-oslo-sphinx

- BuildRequires:  python2-six

+ BuildRequires:  python3-sphinx

+ BuildRequires:  python3-oslo-sphinx

+ BuildRequires:  python3-six

  

  %description -n python-%{pypi_name}-doc

  Documentation for the debtcollector module

  

- %if 0%{?with_python3}

  %package -n python3-%{pypi_name}

  Summary:     A collection of Python deprecation patterns and strategies

  %{?python_provide:%python_provide python3-%{pypi_name}}
@@ -79,7 +51,6 @@ 

  * to move a instance method/property/class from an existing one to a new one

  * a keyword is renamed

  * further customizing the emitted messages

- %endif

  

  %prep

  %setup -q -n %{pypi_name}-%{upstream_version}
@@ -88,48 +59,34 @@ 

  rm -rf requirements.txt

  

  %build

- %py2_build

+ %py3_build

  

  # doc

  export PYTHONPATH="$( pwd ):$PYTHONPATH"

  pushd doc

- sphinx-build -b html -d build/doctrees   source build/html

+ sphinx-build-3 -b html -d build/doctrees   source build/html

  popd

  # Fix hidden-file-or-dir warnings

  rm -fr doc/build/html/.buildinfo

  

- %if 0%{?with_python3}

- %py3_build

- %endif

  

  %install

- %py2_install

- 

- %if 0%{?with_python3}

  %py3_install

- %endif

- 

- %files -n python2-%{pypi_name}

- %doc README.rst CONTRIBUTING.rst

- %license LICENSE

- %{python2_sitelib}/%{pypi_name}

- %{python2_sitelib}/%{pypi_name}*.egg-info

- %exclude %{python2_sitelib}/%{pypi_name}/tests

  

  %files -n python-%{pypi_name}-doc

  %doc doc/build/html

  %license LICENSE

  

- %if 0%{?with_python3}

  %files -n python3-%{pypi_name}

  %doc README.rst CONTRIBUTING.rst

  %license LICENSE

  %{python3_sitelib}/%{pypi_name}

  %{python3_sitelib}/%{pypi_name}*.egg-info

- %exclude %{python2_sitelib}/%{pypi_name}/tests

- %endif

  

  %changelog

+ * Wed Feb 27 2019 Yatin Karel <ykarel@redhat.com> - 1.11.0-8

+ - Drop python2 package

+ 

  * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

  

no initial comment

Pull-Request has been merged by amoralej

5 years ago