[packages/python3-FormEncode] - cleanup, updated dependencies
qboosh
qboosh at pld-linux.org
Mon Feb 16 20:10:47 CET 2026
commit 7781ed15f896638af6a195169e8deedd0003c715
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Feb 16 20:10:44 2026 +0100
- cleanup, updated dependencies
python3-FormEncode.spec | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
---
diff --git a/python3-FormEncode.spec b/python3-FormEncode.spec
index 9879a6c..dec85f8 100644
--- a/python3-FormEncode.spec
+++ b/python3-FormEncode.spec
@@ -7,31 +7,33 @@
Summary: HTML form validation, generation, and convertion package
Summary(pl.UTF-8): Moduł do walidacji, tworzenia i konwersji formularzy HTML
Name: python3-%{module}
-# keep 2.0.x here for python2 support
Version: 2.1.1
Release: 1
License: PSF
Group: Development/Languages/Python
-#Source0Download: https://pypi.org/project/FormEncode/
+#Source0Download: https://pypi.org/simple/FormEncode/
Source0: https://files.pythonhosted.org/packages/source/f/formencode/formencode-%{version}.tar.gz
# Source0-md5: d179386d31ae8c32e70d004dca19ac60
Patch0: no-egg-dep.patch
-URL: http://formencode.org/
-BuildRequires: python3-modules >= 1:3.6
+URL: http://www.formencode.org/
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
-BuildRequires: python3-setuptools_scm
+BuildRequires: python3-setuptools_scm >= 7
%if %{with tests}
-BuildRequires: pydoc3 >= 1:3.6
+# "from pydoc import ..." in tests/test_validators.py
+BuildRequires: pydoc3 >= 1:3.7
BuildRequires: python3-dns >= 2.0.0
BuildRequires: python3-pycountry >= 16.10.23
BuildRequires: python3-pytest
-BuildRequires: python3-six
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
BuildRequires: sed >= 4.0
-%{?with_doc:BuildRequires: sphinx-pdg}
-Requires: python3-modules >= 1:3.6
+%if %{with doc}
+BuildRequires: python3-pycountry >= 16.10.23
+BuildRequires: sphinx-pdg-3 >= 7
+%endif
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -72,11 +74,14 @@ Dokumentacja API modułu Pythona FormEncode.
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH="$(pwd)/build-3/lib" \
+PYTHONPATH="$(pwd)/src" \
%{__python3} -m pytest tests
%endif
-%{?with_doc:PYTHONPATH="$(pwd)/build-3/lib" ./regen-docs}
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+sphinx-build-3 -E -b html docs docs/_build
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -91,7 +96,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f py3.lang
%defattr(644,root,root,755)
-%doc README.rst
+%doc CONTRIBUTORS.txt LICENSE.txt README.rst
%dir %{py3_sitescriptdir}/formencode
%{py3_sitescriptdir}/formencode/*.py
%{py3_sitescriptdir}/formencode/__pycache__
@@ -102,5 +107,5 @@ rm -rf $RPM_BUILD_ROOT
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
-%doc docs/_build/*
+%doc docs/_build/{_images,_static,modules,*.html,*.js}
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-FormEncode.git/commitdiff/7781ed15f896638af6a195169e8deedd0003c715
More information about the pld-cvs-commit
mailing list