[packages/python3-atpublic] - new
qboosh
qboosh at pld-linux.org
Sun Feb 15 11:45:04 CET 2026
commit beb6eafe2f8f02b068aee29aa7b9f906c556e24e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 15 11:44:53 2026 +0100
- new
python3-atpublic.spec | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
---
diff --git a/python3-atpublic.spec b/python3-atpublic.spec
new file mode 100644
index 0000000..9ae78b0
--- /dev/null
+++ b/python3-atpublic.spec
@@ -0,0 +1,106 @@
+#
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+
+Summary: Keep all y'all's __all__'s in sync
+Summary(pl.UTF-8): Utrzymywanie aktualnej listy __all__
+Name: python3-atpublic
+Version: 7.0.0
+Release: 1
+License: Apache v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/atpublic/
+Source0: https://files.pythonhosted.org/packages/source/a/atpublic/atpublic-%{version}.tar.gz
+# Source0-md5: fb3b71dea8a8de69ae7823718bcfd08a
+URL: https://pypi.org/project/atpublic/
+BuildRequires: python3-build
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.10
+%if %{with tests}
+%if "%{py3_ver}" < "3.12"
+BuildRequires: python3-importlib_resources >= 5.10
+%endif
+BuildRequires: python3-pytest
+BuildRequires: python3-sybil
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-furo
+#BuildRequires: python3-sphinx_autobuild
+BuildRequires: python3-sphinx_copybutton
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.10
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides two very simple decorators (@public, @private)
+that document the public visibility of the names in your module. They
+keep your module's __all__ in sync so you don't have to.
+
+Also included is a function that you can put at the bottom of your
+module to simply infer all the public names, and populate the __all__
+for you.
+
+%description -l pl.UTF-8
+Ta biblioteka udostępnia dwa proste dekoratory (@public i @private),
+dokumentujące publiczną widoczność nazw w module. Utrzymują aktualność
+listy __all__ w module, dzięki czemu nie trzeba tego robić samemu.
+
+Moduł dostarcza też funkcję, którą można umieścić na końcu modułu, aby
+wywnioskowała wszystkie publiczne nazwy i sama wypełniła __all__.
+
+%package apidocs
+Summary: API documentation for Python atpublic module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona atpublic
+Group: Documentation
+
+%description apidocs
+API documentation for Python atpublic module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona atpublic.
+
+%prep
+%setup -q -n atpublic-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+# docs require package metadata
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/public
+%{py3_sitescriptdir}/atpublic-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-atpublic.git/commitdiff/beb6eafe2f8f02b068aee29aa7b9f906c556e24e
More information about the pld-cvs-commit
mailing list