#14 Follow the current Python packaging guidelines
Merged 4 months ago by thm. Opened 5 months ago by churchyard.
rpms/ churchyard/python-pluggy packaging_update  into  rawhide

file modified
+18 -20
@@ -1,7 +1,5 @@ 

- %global pypi_name pluggy

- 

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

- %bcond_without tests

+ %bcond tests 1

  

  Name:           python-pluggy

  Version:        1.3.0
@@ -11,15 +9,13 @@ 

  # SPDX

  License:        MIT

  URL:            https://github.com/pytest-dev/pluggy

- Source0:        %{pypi_source}

- 

+ Source:         %{pypi_source pluggy}

  

  BuildArch:      noarch

- 

  BuildRequires:  python3-devel

- BuildRequires:  python3-setuptools

- BuildRequires:  python3-setuptools_scm

+ 

  %if %{with tests}

+ # the [testing] extra includes benchmarking dependencies

  BuildRequires:  python3-pytest

  %endif

  
@@ -28,36 +24,38 @@ 

  

  %description %_description

  

- %package -n python3-%{pypi_name}

+ 

+ %package -n python3-pluggy

  Summary:  %summary

  

- %description -n python3-%{pypi_name}

- The plugin manager stripped of pytest specific details.

+ %description -n python3-pluggy %_description

  

  

  %prep

- %autosetup -p1 -n %{pypi_name}-%{version}

+ %autosetup -p1 -n pluggy-%{version}

+ 

+ 

+ %generate_buildrequires

+ %pyproject_buildrequires

  

  

  %build

- %py3_build

+ %pyproject_wheel

  

  

  %install

- %py3_install

+ %pyproject_install

+ %pyproject_save_files pluggy

+ 

  

  %if %{with tests}

  %check

- # TODO investigate test_load_setuptools_instantiation failure

- PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest testing -k "not test_load_setuptools_instantiation"

+ %pytest

  %endif

  

  

- %files -n python3-%{pypi_name}

- %{python3_sitelib}/%{pypi_name}/

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

+ %files -n python3-pluggy -f %{pyproject_files}

  %doc README.rst

- %license LICENSE

  

  

  %changelog

This is a lot of commits. Happy to squash some or all of them, but this way each commit has an individual scope.


We maintain this package in RHEL. I'd like to have our packages modernized when we import them to CentOS Stream 10. I am also happy to offer co-maintaining of this package by members of Python Maint. Please let me know if that is possible.

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/67f32bc3417448aabeb189c6da10f9d4

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/2dd9b1816a7c47a4b89e7d17d57442b5

Pull-Request has been merged by thm

4 months ago
Metadata