[packages/python3-fasteners] python3 variant, ver 0.19

arekm arekm at pld-linux.org
Tue Mar 4 17:37:28 CET 2025


commit 191a7cfb9b481dc480e002e23560f5ee44fb9174
Author: Arkadiusz Miƛkiewicz <arekm at maven.pl>
Date:   Tue Mar 4 17:07:56 2025 +0100

    python3 variant, ver 0.19

 python-fasteners.spec  | 92 --------------------------------------------------
 python3-fasteners.spec | 56 ++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 92 deletions(-)
---
diff --git a/python-fasteners.spec b/python-fasteners.spec
deleted file mode 100644
index 0fbf87c..0000000
--- a/python-fasteners.spec
+++ /dev/null
@@ -1,92 +0,0 @@
-# Conditional build:
-%bcond_without	tests	# do not perform "make test"
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define		module		fasteners
-%define		egg_name	fasteners
-%define		pypi_name	fasteners
-Summary:	Provides useful locks
-Name:		python-%{pypi_name}
-Version:	0.14.1
-Release:	8
-License:	Apache v2.0
-Group:		Libraries/Python
-Source0:	https://pypi.python.org/packages/f4/6f/41b835c9bf69b03615630f8a6f6d45dafbec95eb4e2bb816638f043552b2/fasteners-%{version}.tar.gz
-# Source0-md5:	fcb13261c9b0039d9b1c4feb9bc75e04
-URL:		https://pypi.python.org/pypi/fasteners
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-monotonic
-BuildRequires:	python-testtools
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-monotonic
-BuildRequires:	python3-testtools
-%endif
-%endif
-Requires:	python-modules
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Provides useful locks.
-
-%package -n python3-%{module}
-Summary:	Provides useful locks
-Group:		Libraries/Python
-Requires:	python3-modules
-
-%description -n python3-%{module}
-Provides useful locks
-
-%prep
-%setup -q -n %{pypi_name}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc ChangeLog README.rst
-%{py_sitescriptdir}/%{module}
-%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc ChangeLog README.rst
-%{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
-%endif
diff --git a/python3-fasteners.spec b/python3-fasteners.spec
new file mode 100644
index 0000000..4e88b3e
--- /dev/null
+++ b/python3-fasteners.spec
@@ -0,0 +1,56 @@
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define		module		fasteners
+Summary:	Provides useful locks
+Name:		python3-%{module}
+Version:	0.19
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/fasteners/fasteners-%{version}.tar.gz
+# Source0-md5:	e957e11c2e00629e44166e1d2881798e
+URL:		https://pypi.python.org/pypi/fasteners
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with tests}
+BuildRequires:	python3-monotonic
+BuildRequires:	python3-testtools
+%endif
+Requires:	python3-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Provides useful locks.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-fasteners.git/commitdiff/191a7cfb9b481dc480e002e23560f5ee44fb9174



More information about the pld-cvs-commit mailing list