[packages/python3-jaraco.packaging] up to 10.2.3
atler
atler at pld-linux.org
Mon Apr 21 14:35:26 CEST 2025
commit 25997c73b61b3c2abbb6e5701a8951cb1ce9911e
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Apr 21 13:49:09 2025 +0200
up to 10.2.3
no-pep517.patch | 86 -------------------------------------------
python3-jaraco.packaging.spec | 30 ++++++---------
2 files changed, 12 insertions(+), 104 deletions(-)
---
diff --git a/python3-jaraco.packaging.spec b/python3-jaraco.packaging.spec
index b452743..0b983e6 100644
--- a/python3-jaraco.packaging.spec
+++ b/python3-jaraco.packaging.spec
@@ -3,20 +3,20 @@
%bcond_without doc # Sphinx documentation
%bcond_with tests # unit tests (no tests in sources)
-%define egg_name jaraco.packaging
%define pypi_name jaraco.packaging
Summary: Tools to supplement packaging Python releases
Summary(pl.UTF-8): Narzędzia wspierające pakietowanie wydań modułów Pythona
Name: python3-%{pypi_name}
-Version: 9.4.0
-Release: 3
+Version: 10.2.3
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/jaraco-packaging/
-Source0: https://files.pythonhosted.org/packages/source/j/jaraco.packaging/%{pypi_name}-%{version}.tar.gz
-# Source0-md5: 7b03f1b20477bdee86e0cc6e7b70cdca
-Patch0: no-pep517.patch
+Source0: https://files.pythonhosted.org/packages/source/j/jaraco_packaging/jaraco_packaging-%{version}.tar.gz
+# Source0-md5: 7d4621f007cc2d0e646c26194c6e5f12
URL: https://pypi.org/project/jaraco.packaging/
+BuildRequires: python3-build
+BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.8
BuildRequires: python3-setuptools >= 1:31.0.1
BuildRequires: python3-setuptools_scm >= 3.4.1
@@ -38,9 +38,10 @@ BuildRequires: python3-pytest-cov
#BuildRequires: python3-types-docutils
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: python3-furo
+BuildRequires: python3-jaraco.context
BuildRequires: python3-rst.linker >= 1.9
#BuildRequires: python3-sphinx-lint
BuildRequires: sphinx-pdg-3 >= 3.5
@@ -68,17 +69,10 @@ API documentation for Python jaraco.packaging module.
Dokumentacja API modułu Pythona jaraco.packaging.
%prep
-%setup -q -n %{pypi_name}-%{version}
-%patch -P 0 -p1
-
-# stub for setuptools
-cat >setup.py <<EOF
-from setuptools import setup
-setup()
-EOF
+%setup -q -n jaraco_packaging-%{version}
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -94,7 +88,7 @@ sphinx-build-3 -b html docs docs/_build/html
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -103,7 +97,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE NEWS.rst README.rst
%{py3_sitescriptdir}/jaraco/packaging
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/jaraco_packaging-%{version}.dist-info
%if %{with doc}
%files apidocs
diff --git a/no-pep517.patch b/no-pep517.patch
deleted file mode 100644
index 945ece7..0000000
--- a/no-pep517.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-This reverts to the state before https://github.com/jaraco/jaraco.packaging/commit/278f825bf6c9beba82aaa77d765dd8c86e342ca7
-which was plain stupid from distro packaging perspective as it was trying to fetch packages from pip
-at documentation build time.
-
-Current (9.4.0) code has some workaround, but it requires building wheel, which we don't do either.
-
---- jaraco.packaging-9.4.0/jaraco/packaging/sphinx.py.orig 2023-10-17 20:57:31.545755310 +0200
-+++ jaraco.packaging-9.4.0/jaraco/packaging/sphinx.py 2023-10-18 19:33:19.935053257 +0200
-@@ -7,11 +7,10 @@ True
- """
-
- import os
--import warnings
-+import subprocess
-+import sys
- from importlib import metadata
-
--from build.util import project_wheel_metadata as load_metadata
--from jaraco.context import suppress
- import sphinx.util.docutils
- from docutils.parsers.rst import directives
- import docutils.statemachine
-@@ -82,39 +81,25 @@ class SidebarLinksDirective(sphinx.util.
- return [only_node]
-
-
-- at suppress(KeyError)
--def _load_metadata_from_wheel():
-- """
-- If indicated by an environment variable, expect the metadata
-- to be present in a wheel and load it from there, avoiding
-- the build process. Ref jaraco/jaraco.packaging#7.
--
-- >>> _load_metadata_from_wheel()
-- >>> getfixture('static_wheel')
-- >>> meta = _load_metadata_from_wheel()
-- >>> meta['Name']
-- 'sampleproject'
-- """
-- wheel = os.environ['JARACO_PACKAGING_SPHINX_WHEEL']
-- warnings.warn(
-- "JARACO_PACKAGING_SPHINX_WHEEL is deprecated; fix pypa/build#556 instead",
-- DeprecationWarning,
-- )
-- (dist,) = metadata.distributions(path=[wheel])
-- return dist.metadata
--
--
- def load_config_from_setup(app):
- """
- Replace values in app.config from package metadata
- """
- # for now, assume project root is one level up
- root = os.path.join(app.confdir, '..')
-- meta = _load_metadata_from_wheel() or load_metadata(root)
-- app.config.project = meta['Name']
-- app.config.version = app.config.release = meta['Version']
-- app.config.package_url = meta['Home-page']
-- app.config.author = app.config.copyright = meta['Author']
-+ setup_script = os.path.join(root, 'setup.py')
-+ fields = ['--name', '--version', '--url', '--author']
-+ dist_info_cmd = [sys.executable, setup_script] + fields
-+ output = subprocess.check_output(dist_info_cmd, cwd=root, universal_newlines=True)
-+ outputs = output.strip().split('\n')
-+ try:
-+ project, version, url, author = outputs
-+ except ValueError:
-+ raise ValueError("Unexpected metadata output", output)
-+ app.config.project = project
-+ app.config.version = app.config.release = version
-+ app.config.package_url = url
-+ app.config.author = app.config.copyright = author
-
-
- def configure_substitutions(app):
---- jaraco.packaging-9.4.0/setup.cfg.orig 2023-10-17 20:57:31.549088625 +0200
-+++ jaraco.packaging-9.4.0/setup.cfg 2023-10-18 19:36:51.620573125 +0200
-@@ -18,8 +18,6 @@ packages = find_namespace:
- include_package_data = true
- python_requires = >=3.8
- install_requires =
-- build[virtualenv]
-- jaraco.context
- sphinx
- domdf-python-tools
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-jaraco.packaging.git/commitdiff/25997c73b61b3c2abbb6e5701a8951cb1ce9911e
More information about the pld-cvs-commit
mailing list