diff --git a/filelock-3.8.0.tar.gz b/filelock-3.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b51991f0dabd84771783974bd21ad98a4022a5bf Binary files /dev/null and b/filelock-3.8.0.tar.gz differ diff --git a/py-filelock-3.0.12.tar.gz b/py-filelock-3.0.12.tar.gz deleted file mode 100644 index bf2da259d3bec05f248bcc9d2965d229e7a4258a..0000000000000000000000000000000000000000 Binary files a/py-filelock-3.0.12.tar.gz and /dev/null differ diff --git a/python-filelock.spec b/python-filelock.spec index 45042e14e2c994de821820653896d08e1e15f7bc..6e827bdae6867ba0edc2e0774cda9f6ec8ad5576 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -1,12 +1,17 @@ Name: python-filelock -Version: 3.0.12 -Release: 3 +Version: 3.8.0 +Release: 1 Summary: A platform independent file lock License: Unlicense URL: https://github.com/benediktschmitt/py-filelock -Source0: https://github.com/benediktschmitt/py-filelock/archive/v%{version}/py-filelock-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/95/55/b897882bffb8213456363e646bf9e9fa704ffda5a7d140edf935a9e02c7b/filelock-%{version}.tar.gz BuildArch: noarch +# For pyproject macros +BuildRequires: python3-pip python3-wheel + +# Test requires +BuildRequires: python3-pytest %description This package contains a single module, which implements a platform @@ -32,40 +37,37 @@ independent file locking mechanism for Python. %package_help %prep -%autosetup -p1 -n py-filelock-%{version} +%autosetup -p1 -n filelock-%{version} %build -%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s' -%make_build -C docs html man SPHINXBUILD=sphinx-build-%{python3_version} -rm docs/build/html/.buildinfo +%pyproject_build %install -%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot - -install -p -m0644 -D docs/build/man/py-filelock.1 \ - %{buildroot}%{_mandir}/man1/py-filelock.1 +%pyproject_install %check -%{__python3} test.py +%pytest %files doc %defattr(-,root,root) %license LICENSE -%doc docs/build/html %files -n python3-filelock %defattr(-,root,root) %license LICENSE -%_prefix/lib/python%{python3_version}/site-packages/filelock.py -%_prefix/lib/python%{python3_version}/site-packages/filelock-%{version}-py3.*.egg-info -%_prefix/lib/python%{python3_version}/site-packages/__pycache__/filelock*.py[co] +%{python3_sitelib}/filelock* %files help %defattr(-,root,root) %doc README.md -%{_mandir}/man1/py-filelock.1.gz %changelog +* Sat Apr 20 2024 OpenStack_SIG - 3.8.0-1 +- Upgrade package to version 3.8.0 +- Bump project dependencies +- Add timeout unit to docstrings +- Support 3.11 + * Thu Mar 3 2022 zhaoshuang - 3.0.12-3 - remove unnecessary buildrequires