Compare commits

...

7 Commits

Author SHA1 Message Date
Fedora Release Engineering 96b4a4f400 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 11:50:17 +00:00
Tomáš Hrnčiar 1e1d857631 Replace ast.NameConstant deprecated in Python 3.12 with ast.Constant 2023-06-28 13:38:27 +02:00
Python Maint 166b4c8d5d Rebuilt for Python 3.12 2023-06-27 16:52:00 +02:00
Fedora Release Engineering 1a61cff732 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 15:10:08 +00:00
Lumir Balhar 52609a52cb Update to 1.4.0 2022-08-15 09:56:49 +02:00
Fedora Release Engineering 5287bcde25 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 20:26:30 +00:00
Python Maint 80f24a5d5c Rebuilt for Python 3.11 2022-06-15 13:25:30 +02:00
5 changed files with 50 additions and 19 deletions
+1
View File
@@ -6,3 +6,4 @@
/numpydoc-0.9.1.tar.gz
/numpydoc-0.9.2.tar.gz
/numpydoc-1.1.0.tar.gz
/numpydoc-1.4.0.tar.gz
+23
View File
@@ -0,0 +1,23 @@
From 2a7f4837e4731181c13f18641950b39b356c8ed3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <tomas.hrnciar@me.com>
Date: Wed, 28 Jun 2023 13:32:53 +0200
Subject: [PATCH] Replace ast.NameConstant deprecated in Python 3.12 with
ast.Constant
---
numpydoc/validate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/numpydoc/validate.py b/numpydoc/validate.py
index b975f831..c49f97af 100644
--- a/numpydoc/validate.py
+++ b/numpydoc/validate.py
@@ -416,7 +416,7 @@ def get_returns_not_on_nested_functions(node):
return_values = [r.value for r in returns]
# Replace NameConstant nodes valued None for None.
for i, v in enumerate(return_values):
- if isinstance(v, ast.NameConstant) and v.value is None:
+ if isinstance(v, ast.Constant) and v.value is None:
return_values[i] = None
return any(return_values)
else:
-13
View File
@@ -1,13 +0,0 @@
diff --git a/setup.cfg b/setup.cfg
index 420fc78..1e9d2d6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,7 +1,7 @@
[tool:pytest]
addopts =
--showlocals --doctest-modules -ra --cov-report= --cov=numpydoc
- --junit-xml=junit-results.xml --ignore=doc/conf.py
+ --junit-xml=junit-results.xml --ignore=doc/
junit_family = xunit2
filterwarnings =
ignore:'U' mode is deprecated:DeprecationWarning
+25 -5
View File
@@ -1,13 +1,14 @@
Name: python-numpydoc
Version: 1.1.0
Release: 6%{?dist}
Version: 1.4.0
Release: 4%{?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
URL: https://pypi.python.org/pypi/numpydoc
Source0: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
# Upstream patch to ignore doc/ directory during tests
Patch0: https://github.com/numpy/numpydoc/pull/296.patch
BuildArch: noarch
BuildRequires: python3-devel
@@ -29,7 +30,7 @@ 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' test_requirements.txt
sed -i '/pytest-cov/d' requirements/test.txt
sed -Ei 's/\s+--cov\S+//g' setup.cfg
%generate_buildrequires
@@ -52,6 +53,25 @@ sed -Ei 's/\s+--cov\S+//g' setup.cfg
%doc README.rst
%changelog
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 27 2023 Python Maint <python-maint@redhat.com> - 1.4.0-3
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Aug 15 2022 Lumír Balhar <lbalhar@redhat.com> - 1.4.0-1
- Update to 1.4.0
Resolves: rhbz#2043324 rhbz#2113637
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.1.0-7
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+1 -1
View File
@@ -1 +1 @@
SHA512 (numpydoc-1.1.0.tar.gz) = 10dfc5e40ca851401be7d7cca3cbf24bf8ded8573c01344976321cd65fe351d985ee0bf48a92a485a43f8fb191c246e4822545a1583c87c1214d819a5fdfc106
SHA512 (numpydoc-1.4.0.tar.gz) = a2ef773e2e4bce015139650fc8cd71026fccc27a80bb4ff2af79328d17cfc7ec5387216e4e7dcbc6ce7a3ee8a1aff835f5310e146c2e6b34c6eeb2db4af3991b