forked from pool/python-watchfiles
Accepting request 990057 from home:bnavigator:branches:devel:languages:python
used by uvicorn in lieue of watchgod OBS-URL: https://build.opensuse.org/request/show/990057 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-watchfiles?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
||||||
8
_service
Normal file
8
_service
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<services>
|
||||||
|
<service name="cargo_vendor" mode="disabled">
|
||||||
|
<param name="srctar">watchfiles-0.15.0.tar.gz</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
<param name="update">true</param>
|
||||||
|
</service>
|
||||||
|
<service name="cargo_audit" mode="disabled"></service>
|
||||||
|
</services>
|
||||||
28
cargo_config.patch
Normal file
28
cargo_config.patch
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
Index: watchfiles-0.15.0/.cargo/config
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
|
+++ watchfiles-0.15.0/.cargo/config
|
||||||
|
@@ -0,0 +1,5 @@
|
||||||
|
+[source.crates-io]
|
||||||
|
+replace-with = "vendored-sources"
|
||||||
|
+
|
||||||
|
+[source.vendored-sources]
|
||||||
|
+directory = "vendor"
|
||||||
|
\ No newline at end of file
|
||||||
|
Index: watchfiles-0.15.0/.cargo/config.toml
|
||||||
|
===================================================================
|
||||||
|
--- watchfiles-0.15.0.orig/.cargo/config.toml
|
||||||
|
+++ /dev/null
|
||||||
|
@@ -1,12 +0,0 @@
|
||||||
|
-# see https://pyo3.rs/main/building_and_distribution.html#macos
|
||||||
|
-[target.x86_64-apple-darwin]
|
||||||
|
-rustflags = [
|
||||||
|
- "-C", "link-arg=-undefined",
|
||||||
|
- "-C", "link-arg=dynamic_lookup",
|
||||||
|
-]
|
||||||
|
-
|
||||||
|
-[target.aarch64-apple-darwin]
|
||||||
|
-rustflags = [
|
||||||
|
- "-C", "link-arg=-undefined",
|
||||||
|
- "-C", "link-arg=dynamic_lookup",
|
||||||
|
-]
|
||||||
6
python-watchfiles.changes
Normal file
6
python-watchfiles.changes
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 18 21:14:17 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Initial specfile fo v0.15.0
|
||||||
|
- Replaces python-watchgod
|
||||||
|
- Required by python-uvicorn
|
||||||
85
python-watchfiles.spec
Normal file
85
python-watchfiles.spec
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-watchfiles
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: python-watchfiles
|
||||||
|
Version: 0.15.0
|
||||||
|
Release: 0
|
||||||
|
Summary: File watching and code reload in python
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/samuelcolvin/watchfiles
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/w/watchfiles/watchfiles-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.xz
|
||||||
|
# PATCH-FEATURE-OPENSUSE cargo_config.patch code@bnavigator.de -- replace cargo config
|
||||||
|
Patch0: cargo_config.patch
|
||||||
|
BuildRequires: %{python_module anyio >= 3.0.0 with %python-anyio < 4}
|
||||||
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
|
BuildRequires: dos2unix
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-maturin >= 0.13
|
||||||
|
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-sugar}
|
||||||
|
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
|
||||||
|
rm docs/requirements.txt docs/CNAME
|
||||||
|
dos2unix README.md docs/* docs/api/*
|
||||||
|
|
||||||
|
%build
|
||||||
|
# one universal abi3 wheel for all flavors
|
||||||
|
maturin build -r --compatibility linux -o wheels
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install wheels/watchfiles-%{version}*.whl
|
||||||
|
%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
|
||||||
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d8cc6182b7ad6bcd01ddde272574a2ffbec42efe80a899745cec9026c93cd7c2
|
||||||
|
size 10702808
|
||||||
3
watchfiles-0.15.0.tar.gz
Normal file
3
watchfiles-0.15.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cab62510f990d195986302aa6a48ed636d685b099927049120d520c96069fa49
|
||||||
|
size 36227
|
||||||
Reference in New Issue
Block a user