[packages/python3-python-on-whales] - new
qboosh
qboosh at pld-linux.org
Wed Dec 17 21:42:01 CET 2025
commit 9591208de3145e183fa7945e32cf38b39d74b2a4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Dec 17 21:42:17 2025 +0100
- new
python3-python-on-whales.spec | 100 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+)
---
diff --git a/python3-python-on-whales.spec b/python3-python-on-whales.spec
new file mode 100644
index 0000000..0472266
--- /dev/null
+++ b/python3-python-on-whales.spec
@@ -0,0 +1,100 @@
+#
+# Conditional build:
+%bcond_with doc # API documentation (TODO: dependencies)
+%bcond_with tests # unit tests (not in sdist)
+
+Summary: Docker client for Python, designed to be fun and intuitive
+Summary(pl.UTF-8): Klient Dockera dla Pythona, zaprojektowany jako zabawny i intuicyjny
+Name: python3-python-on-whales
+Version: 0.79.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/python-on-whales/
+Source0: https://files.pythonhosted.org/packages/source/p/python-on-whales/python_on_whales-%{version}.tar.gz
+# Source0-md5: c3736778ac84fe88bd59ab3153a8ac2b
+URL: https://pypi.org/project/python-on-whales/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pydantic >= 2.1
+BuildRequires: python3-pydantic < 3
+BuildRequires: python3-pytest >= 7
+BuildRequires: python3-pytest-mock >= 3.14.0
+BuildRequires: python3-pytz >= 2024.2
+BuildRequires: python3-typing_extensions
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-astunparse >= 1.6.3
+BuildRequires: python3-griffe >= 1.2.0
+BuildRequires: python3-markdown >= 3.7
+BuildRequires: python3-markupsafe >= 2.1.5
+BuildRequires: python3-mkdocs >= 1.6.1
+BuildRequires: python3-mkdocs-autorefs >= 1.1.0
+BuildRequires: python3-mkdocs-get-deps >= 0.2.0
+BuildRequires: python3-mkdocs-material >= 9.5.34
+BuildRequires: python3-mkdocstrings >= 0.25.2
+BuildRequires: python3-mkdocstrings-python >= 1.10.9
+BuildRequires: python3-pymdown-extensions >= 10.9
+%endif
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A Docker client for Python, designed to be fun and intuitive!
+
+Works on Linux, macOS and Windows, for Python 3.8 and above.
+
+%description -l pl.UTF-8
+Klient Dockera dla Pythona, zaprojektowany jako zabawny i intuicyjny.
+
+Działa na Linuksie, macOS i Windows, dla Pythona 3.8 i nowszych.
+
+%package apidocs
+Summary: API documentation for Python python-on-whales module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona python-on-whales
+Group: Documentation
+
+%description apidocs
+API documentation for Python python-on-whales module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona python-on-whales.
+
+%prep
+%setup -q -n python_on_whales-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_mock.plugin \
+%{__python3} -m pytest tests
+%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.md
+%attr(755,root,root) %{_bindir}/python-on-whales
+%{py3_sitescriptdir}/python_on_whales
+%{py3_sitescriptdir}/python_on_whales-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc ...
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-python-on-whales.git/commitdiff/9591208de3145e183fa7945e32cf38b39d74b2a4
More information about the pld-cvs-commit
mailing list