[packages/python3-filelock] - python-filelock.spec updated to 3.6.0 for python 3.7+
qboosh
qboosh at pld-linux.org
Sun Mar 6 17:00:40 CET 2022
commit ca3a53d55e7fa48fa51c9d3729acebcb5ec84802
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 6 17:02:38 2022 +0100
- python-filelock.spec updated to 3.6.0 for python 3.7+
python-filelock.spec | 116 --------------------------------------------------
python3-filelock.spec | 74 ++++++++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 116 deletions(-)
---
diff --git a/python-filelock.spec b/python-filelock.spec
deleted file mode 100644
index 3424646..0000000
--- a/python-filelock.spec
+++ /dev/null
@@ -1,116 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_without tests # unit tests (250+ processes created, max processes ulimit must allow it)
-
-Summary: A platform independent file lock
-Summary(pl.UTF-8): Niezależne od platformy blokady plikowe
-Name: python-filelock
-Version: 3.2.1
-Release: 1
-License: Public Domain
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/filelock/
-Source0: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz
-# Source0-md5: 92fea9fb4ebf39d746c77ec6c4c87be0
-URL: https://pypi.org/project/filelock/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-pytest
-%endif
-%endif
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This package contains a single module, which implements a platform
-independent file lock in Python, which provides a simple way of
-inter-process communication.
-
-%description -l pl.UTF-8
-Ten pakiet zawiera pojedynczny moduł implementujący niezależne od
-platformy blokady plikowe w Pythonie. Zapewniają one prosty sposób
-komunikacji międzyprocesowej.
-
-%package -n python3-filelock
-Summary: A platform independent file lock
-Summary(pl.UTF-8): Niezależne od platformy blokady plikowe
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-filelock
-This package contains a single module, which implements a platform
-independent file lock in Python, which provides a simple way of
-inter-process communication.
-
-%description -n python3-filelock -l pl.UTF-8
-Ten pakiet zawiera pojedynczny moduł implementujący niezależne od
-platformy blokady plikowe w Pythonie. Zapewniają one prosty sposób
-komunikacji międzyprocesowej.
-
-%prep
-%setup -q -n filelock-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest tests
-%endif
-%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 LICENSE README.md
-%{py_sitescriptdir}/filelock
-%{py_sitescriptdir}/filelock-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-filelock
-%defattr(644,root,root,755)
-%doc LICENSE README.md
-%{py3_sitescriptdir}/filelock
-%{py3_sitescriptdir}/filelock-%{version}-py*.egg-info
-%endif
diff --git a/python3-filelock.spec b/python3-filelock.spec
new file mode 100644
index 0000000..134d752
--- /dev/null
+++ b/python3-filelock.spec
@@ -0,0 +1,74 @@
+# TODO: finish doc
+#
+# Conditional build:
+%bcond_without tests # unit tests (250+ processes created, max processes ulimit must allow it)
+%bcond_with doc # Sphinx documentation
+
+Summary: A platform independent file lock
+Summary(pl.UTF-8): Niezależne od platformy blokady plikowe
+Name: python3-filelock
+Version: 3.6.0
+Release: 1
+License: Public Domain
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/filelock/
+Source0: https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz
+# Source0-md5: b1032075ddada92874377426337c38a6
+URL: https://pypi.org/project/filelock/
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest >= 4
+BuildRequires: python3-pytest-timeout >= 1.4.2
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: python3-furo >= 2021.8.17b43
+BuildRequires: python3-sphinx-autodoc-typehints >= 1.12
+BuildRequires: sphinx-pdg >= 4.1
+%endif
+Requires: python3-modules >= 1:3.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains a single module, which implements a platform
+independent file lock in Python, which provides a simple way of
+inter-process communication.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera pojedynczny moduł implementujący niezależne od
+platformy blokady plikowe w Pythonie. Zapewniają one prosty sposób
+komunikacji międzyprocesowej.
+
+%prep
+%setup -q -n filelock-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_timeout \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+sphinx-build -b html -d docs/_build/doctree docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/filelock
+%{py3_sitescriptdir}/filelock-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-filelock.git/commitdiff/ca3a53d55e7fa48fa51c9d3729acebcb5ec84802
More information about the pld-cvs-commit
mailing list