diff --git a/filelock-3.12.0.tar.gz b/filelock-3.12.0.tar.gz new file mode 100644 index 0000000..e0b50bc Binary files /dev/null and b/filelock-3.12.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 bf2da25..0000000 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 45042e1..d62999a 100644 --- a/python-filelock.spec +++ b/python-filelock.spec @@ -1,13 +1,16 @@ Name: python-filelock -Version: 3.0.12 -Release: 3 +Version: 3.12.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/24/85/cf4df939cc0a037ebfe18353005e775916faec24dcdbc7a2f6539ad9d943/filelock-3.12.0.tar.gz BuildArch: noarch +BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel python3-pytest +BuildRequires: python3-pytest-mock + %description This package contains a single module, which implements a platform independent file locking mechanism for Python. @@ -32,40 +35,36 @@ 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 filelock==%{version} %check -%{__python3} test.py +export PYTHONPATH=%{buildroot}%{python3_sitelib}/ + +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 +* Thu Apr 27 2023 xu_ping <707078654@qq.com> - 3.12.0-1 +- Upgrade to 3.12.0 + * Thu Mar 3 2022 zhaoshuang - 3.0.12-3 - remove unnecessary buildrequires