forked from pool/python-watchfiles
- Update to 0.24.0: - drop PyPy 3.8 by @samuelcolvin in #293 - Update Python version in index.md by @kjaymiller in #296 - return "file deleted" instead of raising an exception, fix #282 by @samuelcolvin in #301 - Changes from 0.23.0: - Fix typo in watch doctstring by @kwentine in #280 - Bump up PyO3 to 0.22.2 by @FlickerSoul in #287 - Updates to GitHub Actions by @gaby in #274 - Update mkdocstring python handler option key by @kwentine in #281 - Bump requests from 2.31.0 to 2.32.0 in /requirements by @dependabot in #278 - Bump urllib3 from 2.2.1 to 2.2.2 in /requirements by @dependabot in #283 - Bump certifi from 2024.2.2 to 2024.7.4 in /requirements by @dependabot in #285 - Add support for Python 3.13 by @hugovk in #277 - remove watchfiles from ignore directory list by @CharlesFr in #249 - fix windows build by @samuelcolvin in #291 - Full CI build by default by @samuelcolvin in #290 - use intern! in rust code by @samuelcolvin in #292 - Add %{?sle15_python_module_pythons} OBS-URL: https://build.opensuse.org/request/show/1203311 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchfiles?expand=0&rev=12
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-watchfiles
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-watchfiles
|
|
Version: 0.24.0
|
|
Release: 0
|
|
Summary: File watching and code reload in python
|
|
License: MIT
|
|
URL: https://github.com/samuelcolvin/watchfiles
|
|
Source0: https://github.com/samuelcolvin/watchfiles/archive/refs/tags/v%{version}.tar.gz#/watchfiles-%{version}-gh.tar.gz
|
|
Source1: vendor.tar.xz
|
|
# gh#samuelcolvin/watchfiles#254
|
|
BuildRequires: %{python_module anyio >= 3.0.0 with %python-anyio < 4}
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module maturin >= 0.14.16}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: cargo-packaging
|
|
BuildRequires: dos2unix
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: (python-anyio >= 3.0.0 with python-anyio < 4)
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
# SECTION test
|
|
BuildRequires: %{python_module dirty-equals}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-pretty}
|
|
BuildRequires: %{python_module pytest-timeout}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
A package for file watching and code reload in python.
|
|
|
|
This package was previously named "watchgod".
|
|
|
|
%prep
|
|
%autosetup -p1 -n watchfiles-%{version} -a1
|
|
# Need to replace version because we build from github archive
|
|
sed -i 's/version = "0.0.0"/version = "%{version}"/' Cargo.toml
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/watchfiles
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
mv watchfiles watchfiles.movedaway
|
|
%pytest_arch
|
|
|
|
%post
|
|
%python_install_alternative watchfiles
|
|
|
|
%postun
|
|
%python_uninstall_alternative watchfiles
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md docs/*
|
|
%python_alternative %{_bindir}/watchfiles
|
|
%{python_sitearch}/watchfiles
|
|
%{python_sitearch}/watchfiles-%{version}*-info
|
|
|
|
%changelog
|