Notification time stamped 2023-06-30 14:50:53 UTC
From a14a26b03454200a0a07d9168ad517c55c1a1c1a Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley code@musicinmybrain.net Date: Jun 29 2023 19:01:46 +0000 Subject: Port to pyproject-rpm-macros
---
diff --git a/python-stdlib-list.spec b/python-stdlib-list.spec index 9244af9..d29b41f 100644 --- a/python-stdlib-list.spec +++ b/python-stdlib-list.spec @@ -1,76 +1,78 @@ -%global pypi_name stdlib-list - -%global desc %{expand: \ +%global desc %{expand: Python Standard Library List -This package includes lists of all of the standard libraries for Python, along with the code for scraping the official Python docs to get said lists.Listing the modules in the standard library? Wait, why on Earth would you care about that?! Because knowing whether or not a module is part of the standard library will come in}
-Name: python-%{pypi_name} +Name: python-stdlib-list Version: 0.8.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A list of Python Standard Libraries
License: MIT URL: https://github.com/jackmaney/python-stdlib-list # pypi is missing docs, so use the github tarball instead -Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildArch: noarch +Source0: %{url}/archive/v%{version}.tar.gz#/python-stdlib-list-%{version}.tar.gz
-%{?python_enable_dependency_generator} +BuildArch: noarch
BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(sphinx) -BuildRequires: python3dist(sphinx-rtd-theme)
-%description -%{desc} +%description %{desc}
-%package -n python3-%{pypi_name} +%package -n python3-stdlib-list Summary: %{summary} -%{?python_provide:%python_provide python3-%{pypi_name}}
-# The require not picked up by the dep generator -Requires: python3dist(sphinx) -Requires: python3dist(sphinx-rtd-theme) - -%description -n python3-%{pypi_name} -%{desc} +%description -n python3-stdlib-list %{desc}
%package doc -Summary: %{name} documentation +Summary: Documentation for python-stdlib-list + +# From requirements-dev.txt (which otherwise contains unwanted dependencies): +BuildRequires: %{py3_dist sphinx_rtd_theme}
%description doc -Documentation for %{name} +%{summary}.
%prep %autosetup -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -x develop
%build -%py3_build +%pyproject_wheel # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo}
%install -%py3_install - -%files -n python3-%{pypi_name} -%license LICENSE +%pyproject_install +%pyproject_save_files stdlib_list + +%check +# Upstream has tests, but we cannot yet run them. Spend more time on it if it +# is still a problem in 0.9.0. +# +# Similarly, investigate this if it persists, from stdlib_list.fetch: +# +# from . import base_dir, get_canonical_version, short_versions, list_dir +# ImportError: cannot import name 'base_dir' from 'stdlib_list' +%pyproject_check_import -e stdlib_list.fetch + +%files -n python3-stdlib-list -f %{pyproject_files} %doc README.md -%{python3_sitelib}/stdlib_list -%{python3_sitelib}/stdlib_list-%{version}-py%{python3_version}.egg-info
%files doc %license LICENSE %doc html
%changelog +* Thu Jun 29 2023 Benjamin A. Beasley code@musicinmybrain.net - 0.8.0-9 +- Port to pyproject-rpm-macros + * Thu Jun 15 2023 Python Maint python-maint@redhat.com - 0.8.0-8 - Rebuilt for Python 3.12
https://src.fedoraproject.org/rpms/python-stdlib-list/c/a14a26b03454200a0a07...
scm-commits@lists.fedoraproject.org