#7 [DON'T MERGE] Split python2-pluggy to a separate subpackage
Closed 2 months ago by churchyard. Opened 3 months ago by churchyard.
rpms/ churchyard/python-pluggy py2  into  master

python2-pluggy.spec python-pluggy.spec
file renamed
+11 -54

@@ -1,17 +1,11 @@ 

  %global pypi_name pluggy

  

- %if 0%{?fedora} || 0%{?rhel} > 7

- %bcond_without python3

- %else

- %bcond_with python3

- %endif

- 

  # Turn the tests off when bootstrapping Python, because pytest requires pluggy

  %bcond_without tests

  

- Name:           python-pluggy

+ Name:           python2-pluggy

  Version:        0.11.0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        The plugin manager stripped of pytest specific details

  

  License:        MIT

@@ -27,34 +21,14 @@ 

  BuildRequires:  python2-pytest

  %endif

  

- %if %{with python3}

- BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

- BuildRequires:  python3-setuptools_scm

- %if %{with tests}

- BuildRequires:  python3-pytest

- %endif

- %endif # with python3

- 

- %global _description\

- The plugin manager stripped of pytest specific details.

- 

- %description %_description

- 

- %package -n python2-%{pypi_name}

- Summary: %summary

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

  

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

+ # This is deprecated, used only for pytest

+ Provides:       deprecated()

  

- %if %{with python3}

- %package -n python3-%{pypi_name}

- Summary:  %summary

- 

- %description -n python3-%{pypi_name}

+ %description

  The plugin manager stripped of pytest specific details.

- 

- %endif # with python3

+ Python 2 version.

  

  

  %prep

@@ -64,45 +38,28 @@ 

  %build

  %py2_build

  

- %if %{with python3}

- %py3_build

- %endif # with python3

- 

  

  %install

- %if %{with python3}

- %py3_install

- %endif # with python3

- 

  %py2_install

  

+ 

  %if %{with tests}

  %check

  PYTHONPATH=$PWD %{__python2} -m pytest testing

- 

- %if %{with python3}

- PYTHONPATH=$PWD %{__python3} -m pytest testing

  %endif

- %endif # with tests

  

  

- %files -n python2-%{pypi_name}

+ %files

  %doc README.rst

  %license LICENSE

  %{python2_sitelib}/%{pypi_name}/

  %{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/

  

  

- %if %{with python3}

- %files -n python3-%{pypi_name}

- %{python3_sitelib}/%{pypi_name}/

- %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

- %doc README.rst

- %license LICENSE

- %endif # with python3

- 

- 

  %changelog

+ * Wed Jun 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.0-2

+ - Split python2-pluggy to a separate subpackage

+ 

  * Tue May 14 2019 Thomas Moschny <thomas.moschny@gmx.de> - 0.11.0-1

  - Update to 0.11.0.