commit 773bf78599b60054949744a1a67b2a422e287f67 Author: tigro Date: Sat Jan 4 17:57:22 2025 +0300 import python-watchfiles-0.20.0-5.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..598ed49 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/watchfiles-0.20.0.tar.gz diff --git a/.python-watchfiles.metadata b/.python-watchfiles.metadata new file mode 100644 index 0000000..9b5776e --- /dev/null +++ b/.python-watchfiles.metadata @@ -0,0 +1 @@ +5ee3164398a68c85a5e884c79fc4b326ec05c8ff SOURCES/watchfiles-0.20.0.tar.gz diff --git a/SPECS/python-watchfiles.spec b/SPECS/python-watchfiles.spec new file mode 100644 index 0000000..66056c6 --- /dev/null +++ b/SPECS/python-watchfiles.spec @@ -0,0 +1,114 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 5; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +Name: python-watchfiles +Version: 0.20.0 +Release: %autorelease +Summary: Simple, modern and high performance file watching and code reload in python +# The main source code is under the MIT license. See the license field of the +# python3-watchfiles subpackage for the licenses of statically linked rust +# dependencies. +License: MIT +URL: https://github.com/samuelcolvin/watchfiles +Source: %{pypi_source watchfiles} + +BuildRequires: python3-devel +BuildRequires: rust-packaging + +%global _description %{expand: +Simple, modern and high performance file watching and code reload in python. +Underlying file system notifications are handled by the Notify rust library.} + + +%description %_description + + +%package -n python3-watchfiles +Summary: %{summary} +# The main source code is under the MIT license. This license field includes +# the licenses of statically linked rust dependencies. +License: MIT AND Apache-2.0 AND CC0-1.0 AND ISC AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) + + +%description -n python3-watchfiles %_description + + +%prep +%autosetup -n watchfiles-%{version} + +# Remove unnecessary Python test requirements +sed -e '/^coverage\b/d' \ + -e '/^pytest-pretty\b/d' \ + -e '/^pytest-timeout\b/d' \ + -i requirements/testing.in + +# Remove pytest timeout config +sed -e '/timeout =/d' -i pyproject.toml + +# Remove unused Cargo config that contains buildflags for Darwin +rm .cargo/config.toml + +%cargo_prep + + +%generate_buildrequires +%pyproject_buildrequires requirements/testing.in +%cargo_generate_buildrequires + + +%build +%cargo_license_summary +%{cargo_license} > LICENSES.dependencies + +export RUSTFLAGS='%{build_rustflags}' +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files watchfiles + +# The maturin build backend includes the license files, but currently the +# pyproject macros don't mark these files as licenses. +sed -e '/LICENSE/ s/^/%%license /' -i %{pyproject_files} + + +%check +# We must set the import mode during tests to avoid the watchfiles directory +# (which will not have the compiled module) taking precedence for the import. +# https://docs.pytest.org/en/7.4.x/explanation/pythonpath.html +%pytest --import-mode append -v + + +%files -n python3-watchfiles -f %{pyproject_files} +%doc README.md +%{_bindir}/watchfiles + + +%changelog +* Sat Jan 04 2025 Arkady L. Shane - 0.20.0-5 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.20.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Jun 09 2024 Python Maint - 0.20.0-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.20.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.20.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Sep 24 2023 Carl George - 0.20.0-1 +- Initial package, resolves rhbz#2240154 +## END: Generated by rpmautospec