From 2b0aa46383e85100210408acd6c296c9033daf31 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 19 Oct 2023 21:43:59 -0600 Subject: [PATCH] Version 1.6.0 Other changes: - Convert License tag to SPDX - Use the %pypi_source macro --- .gitignore | 1 + python-numpydoc.spec | 23 ++++++++++++++++------- sources | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index c740511..56746e2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /numpydoc-0.9.2.tar.gz /numpydoc-1.1.0.tar.gz /numpydoc-1.4.0.tar.gz +/numpydoc-1.6.0.tar.gz diff --git a/python-numpydoc.spec b/python-numpydoc.spec index a80ce7a..42b7679 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -1,14 +1,14 @@ Name: python-numpydoc -Version: 1.4.0 -Release: 4%{?dist} +Version: 1.6.0 +Release: 1%{?dist} Summary: Sphinx extension to support docstrings in NumPy format # Replace ast.NameConstant deprecated in Python 3.12 with ast.Constant Patch: https://github.com/hrnciar/numpydoc/pull/1.patch -License: BSD +License: BSD-2-Clause URL: https://pypi.python.org/pypi/numpydoc -Source0: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz +Source0: %pypi_source numpydoc BuildArch: noarch BuildRequires: python3-devel @@ -30,11 +30,14 @@ following the NumPy/SciPy format to a form palatable to Sphinx. %prep %autosetup -p1 -n numpydoc-%{version} # let's not measure coverage: -sed -i '/pytest-cov/d' requirements/test.txt -sed -Ei 's/\s+--cov\S+//g' setup.cfg +sed -i '/pytest-cov/d' requirements/test.txt pyproject.toml +sed -Ei 's/\s+--cov\S+//g' pyproject.toml + +# Remove a useless shebang +sed -i '\,#!/usr/bin/env python,d' numpydoc/validate.py %generate_buildrequires -%pyproject_buildrequires -x testing +%pyproject_buildrequires -x test %build %pyproject_wheel @@ -51,8 +54,14 @@ sed -Ei 's/\s+--cov\S+//g' setup.cfg %files -n python3-numpydoc -f %pyproject_files %license LICENSE.txt %doc README.rst +%{_bindir}/validate-docstrings %changelog +* Thu Oct 19 2023 Jerry James - 1.6.0-1 +- Version 1.6.0 +- Convert License tag to SPDX +- Use the pypi_source macro + * Fri Jul 21 2023 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index f83149c..30d08bb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (numpydoc-1.4.0.tar.gz) = a2ef773e2e4bce015139650fc8cd71026fccc27a80bb4ff2af79328d17cfc7ec5387216e4e7dcbc6ce7a3ee8a1aff835f5310e146c2e6b34c6eeb2db4af3991b +SHA512 (numpydoc-1.6.0.tar.gz) = 1296a88283add3e703c8e9361454b1e2f78798bf266e333665a78c93a535d1add1854ff00c842efce4b7523c042f299054f28a63ffcb9ad7bc1e7c98ad8526c4