diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-07-29 12:32:00 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-07-29 13:12:03 +0300 |
commit | 6225cf2e158fd025d8457feb9555e7393b3e9d67 (patch) | |
tree | e9aea79f8b81a5693afec2fc4047f3430f0e86d6 | |
parent | dev-python/asttokens: enable py3.11 (diff) | |
download | gentoo-6225cf2e158fd025d8457feb9555e7393b3e9d67.tar.gz gentoo-6225cf2e158fd025d8457feb9555e7393b3e9d67.tar.bz2 gentoo-6225cf2e158fd025d8457feb9555e7393b3e9d67.zip |
dev-python/watchfiles: add 0.16.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | dev-python/watchfiles/Manifest | 1 | ||||
-rw-r--r-- | dev-python/watchfiles/watchfiles-0.16.1.ebuild | 109 |
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-python/watchfiles/Manifest b/dev-python/watchfiles/Manifest index 2650595fa5a5..902da412506d 100644 --- a/dev-python/watchfiles/Manifest +++ b/dev-python/watchfiles/Manifest @@ -40,6 +40,7 @@ DIST walkdir-2.3.2.crate 23516 BLAKE2B 473f2b51aafd6ac17e5c3da8d545d179b31486b3a DIST wasi-0.11.0+wasi-snapshot-preview1.crate 28131 BLAKE2B fe501889f25d65e2d032f885cc50c4f8bf7dd70fd5cbc438de349838370d8699e9627b0a4fc76030ea9fe6d508f41d0c9928a875fdbc47e73bfb17241cf7b155 SHA512 043500ab28cd9cb779475255da5d109ebab7fccca72b64873dc28d77bc5a157ba8d96b9e8f05223b5b36c7089bb7b4ba87657fc69bac16b78972f897294a865f DIST watchfiles-0.15.0.gh.tar.gz 38496 BLAKE2B b748904540c28bac3a3be3a1a236352bdba316d1230b196ce1d0ec90324299664c065d1644f7eeafa232e197493aba5b8685db5583c9899f57262651f0e53dc7 SHA512 1398c3337cd0f36bfd489dbca4c968bae2c23949d43567777411c1e9773ac633962164d61dcc84d462adba9d79e108ec98fc31866f364bfa72c26599d12a6fdc DIST watchfiles-0.16.0.gh.tar.gz 40356 BLAKE2B beb71a54a12a36f97bdbd710a6a9f0d82d1ecb9a4a19f64dfa503ff96b882afbb90679925d86d74d2bbc570a1e98e3c18df8dac539c19e2536bea69d343dddb7 SHA512 72bb989643111257326fb2185e2d7a5ee945ee75c1645287ab05486c1ada700b4f7924c0871ea304c72ee6f222e776e1f86ab8718d0300f916f9948009f721d5 +DIST watchfiles-0.16.1.gh.tar.gz 40404 BLAKE2B 885cb2a0a8ccaf7cbde85524a9f6efbaba713ad8e3eff39b1685cfea201d56ddb006be96169de25e6d7000b8bf7d9bc71de449a7f8493f4bf55b1239ff2c8444 SHA512 fd797c471d3f0db475322398d09cc88f390fb4c348d9fa01c3a41cefa8f797e007e8b223acf5e09f277bb7f37443063daa9a38bda3cd137edc102d23a7f15e65 DIST winapi-0.3.9.crate 1200382 BLAKE2B cb5799749ccd935ea2d7068d953cecf19f543d9db7dc16ad4584bb7005373ada34937a3ced7225544d8bc765da599911c7a3190efefb3a25b7c1bb7123b4f673 SHA512 ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97 DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f9552972170d65b9a5358b69c46a3e772fe05efc22f3d4ffc1caeeaad7aacdc7abd503a7ad0545f8bd7d22bf351dcb6df76f812fa4d45c34d65df0 SHA512 a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2 DIST winapi-util-0.1.5.crate 10164 BLAKE2B fc800aceae5249a858c806c3e969ef2545766099872d856ebee51c883d9acf1122278db9607d50ca53eac351502b700fd2463900932d342240f97f683d517963 SHA512 7baeb661f397c4693dfa001fdc774b323c51a7c55caad40f2de5112a1cefd1d6151e3df41fa4ee193460a5905917c83d2b1de5fa10b4bd014ad96690af95c0fd diff --git a/dev-python/watchfiles/watchfiles-0.16.1.ebuild b/dev-python/watchfiles/watchfiles-0.16.1.ebuild new file mode 100644 index 000000000000..aeab77a1d524 --- /dev/null +++ b/dev-python/watchfiles/watchfiles-0.16.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{8..11} pypy3 ) + +CRATES=" + autocfg-1.1.0 + bitflags-1.3.2 + cfg-if-1.0.0 + crossbeam-channel-0.5.4 + crossbeam-utils-0.8.8 + filetime-0.2.16 + fsevent-sys-4.1.0 + indoc-1.0.4 + inotify-0.9.6 + inotify-sys-0.1.5 + kqueue-1.0.5 + kqueue-sys-1.0.3 + lazy_static-1.4.0 + libc-0.2.124 + lock_api-0.4.7 + log-0.4.16 + mio-0.8.2 + miow-0.3.7 + notify-5.0.0-pre.15 + ntapi-0.3.7 + once_cell-1.10.0 + parking_lot-0.12.0 + parking_lot_core-0.9.2 + proc-macro2-1.0.37 + pyo3-0.16.4 + pyo3-build-config-0.16.4 + pyo3-ffi-0.16.4 + pyo3-macros-0.16.4 + pyo3-macros-backend-0.16.4 + quote-1.0.18 + redox_syscall-0.2.13 + same-file-1.0.6 + scopeguard-1.1.0 + smallvec-1.8.0 + syn-1.0.91 + target-lexicon-0.12.3 + unicode-xid-0.2.2 + unindent-0.1.8 + walkdir-2.3.2 + wasi-0.11.0+wasi-snapshot-preview1 + winapi-0.3.9 + winapi-i686-pc-windows-gnu-0.4.0 + winapi-util-0.1.5 + winapi-x86_64-pc-windows-gnu-0.4.0 + windows-sys-0.34.0 + windows_aarch64_msvc-0.34.0 + windows_i686_gnu-0.34.0 + windows_i686_msvc-0.34.0 + windows_x86_64_gnu-0.34.0 + windows_x86_64_msvc-0.34.0 +" + +inherit cargo distutils-r1 + +DESCRIPTION="Simple, modern file watching and code reload in Python" +HOMEPAGE=" + https://pypi.org/project/watchfiles/ + https://github.com/samuelcolvin/watchfiles/ +" +SRC_URI=" + https://github.com/samuelcolvin/watchfiles/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz + $(cargo_crate_uris ${CRATES}) +" + +LICENSE="MIT" +# crates +LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD" +LICENSE+=" CC0-1.0 ISC MIT Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + =dev-python/anyio-3*[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-rust[${PYTHON_USEDEP}] + test? ( + dev-python/dirty-equals[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +# enjoy Rust +QA_FLAGS_IGNORED=".*/_rust_notify.*" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # fix version number + sed -i -e "/^version/s:0\.0\.0:${PV}:" Cargo.toml || die +} + +python_test() { + rm -rf watchfiles || die + epytest +} |