mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/setuptools-rust: Bump to 1.5.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -62,6 +62,7 @@ DIST serde-1.0.136.crate 76158 BLAKE2B 44603c8eede428dce4211350497a443385ff0ddb0
|
||||
DIST servo_arc-0.1.1.crate 9817 BLAKE2B 88586ca0c969df8bfb3a04ba4a689606995876434877a2cd48a72b26451deb6fdcf65273aa9b03948adcbc66b2450301840910e5c4162b993535d69585c62128 SHA512 59d531dcf7a9191b8462ce395e713194994714b65275c0af412186f862be169d0c6fc5d86603332a1aacd8af9ace934dc78531b9cb576cf8179ec35709225447
|
||||
DIST setuptools-rust-1.3.0.tar.gz 285698 BLAKE2B ecd1a2cdce5a9b3ca7c648c97d472dd0ed60db3738d44cfe601c85ac1cd8f3924cb82fe0a06f02a70d60cbe1956c324f3fe0153275c7bae75a14a21b242ecda7 SHA512 5971413a9544ddd626671de74e9517fb20410e4838c5420ed31653d7fdf07b858ff4ef14ec2d5b51677e3402757da915a76858337d0c2b164682450bce35ba11
|
||||
DIST setuptools-rust-1.4.1.tar.gz 288848 BLAKE2B 28f4ac618ae3550158814ac14b87d628ce16f140840c3948d48f486cb5a7f50389eccd78385fe3e5be635dad61bf19e25464d39567c2fc760e247d5a2e692145 SHA512 3b92eb37564872b4094e77c8412b006f57a3557213d1368e2db883bc04f5d0d516a97a5b1f0b5255b362ecc32832d2ef734ac759a49db72439f227d54f8a86f5
|
||||
DIST setuptools-rust-1.5.0.gh.tar.gz 293081 BLAKE2B bf373915da5c4703d94fa1b63cb9a7037731fb6fd8260032d947b8c57ce6ea3a726956af1ec38f242a1953fc696d9ae5297ab391e2a01d59e5004493743a402d SHA512 40e204e4599a41032dd591d4ef6edecb9dd90c756932fdaeab1999dd24000b97a3f9efb51a20ac81f7d9f1f5a9b25b3891b5f56292951090b89887f947346704
|
||||
DIST siphasher-0.3.10.crate 9889 BLAKE2B e5dd6d265340b4c9e4266ab1ff3a20f1fb87fd493b2d7b5fba32d26421cc858b38929e4ab96941d0c055375b8acebbd04236d994cadca324500ed05064b9bfc9 SHA512 f90425a2cccc9575d377bb92a765d34653ddef1ac12b7c63dc6d700aaa74b525787e11609061c2d3e44ea56fe0e4b8f93f7b13f0279b5de2e0f710c5caffd4ce
|
||||
DIST smallvec-1.8.0.crate 27992 BLAKE2B d02897eb4d3901805be86cafd5d3dc6768b31c2ee4d0a9d7eb455e2a21be2864ea83589f4ffde102dbbafb66e3c197707af770b5ef184b8e244d992189644b84 SHA512 17687cfa6aaf95a1df063adc3a412a7c41918a0d003eaac90f7d9e859fb8fa1d652eedee17a4cb3aaae9b33a2043f89e796519e3a7a3992b292f04049bf80b0c
|
||||
DIST stable_deref_trait-1.2.0.crate 8054 BLAKE2B 287a65c3e5b47213544a43e57c60a54add60b4c2e3c8d042407d860cc950ba7ca01a2e67ce56aed6744992b61ec1f9aed3321e3d88482e33129548b7d51df205 SHA512 a13cfb22723f1f2cf089b2d07d657846f50c37bc0438d1a76096bea30214cad226b7a422c21f9e191ce87071da8a141d61882aedf9e0203a5fffdfda86a5fb03
|
||||
|
||||
157
dev-python/setuptools-rust/setuptools-rust-1.5.0.ebuild
Normal file
157
dev-python/setuptools-rust/setuptools-rust-1.5.0.ebuild
Normal file
@@ -0,0 +1,157 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CARGO_OPTIONAL=yes
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
||||
|
||||
CRATES="
|
||||
bitflags-1.3.2
|
||||
byteorder-1.4.3
|
||||
cfg-if-1.0.0
|
||||
convert_case-0.4.0
|
||||
cssparser-0.27.2
|
||||
cssparser-macros-0.6.0
|
||||
derive_more-0.99.17
|
||||
dtoa-0.4.8
|
||||
dtoa-short-0.3.3
|
||||
futf-0.1.5
|
||||
fxhash-0.2.1
|
||||
getrandom-0.1.16
|
||||
html5ever-0.25.1
|
||||
indoc-1.0.4
|
||||
instant-0.1.12
|
||||
itoa-0.4.8
|
||||
kuchiki-0.8.1
|
||||
lazy_static-1.4.0
|
||||
libc-0.2.121
|
||||
lock_api-0.4.6
|
||||
log-0.4.14
|
||||
mac-0.1.1
|
||||
markup5ever-0.10.1
|
||||
matches-0.1.9
|
||||
new_debug_unreachable-1.0.4
|
||||
nodrop-0.1.14
|
||||
once_cell-1.10.0
|
||||
parking_lot-0.11.2
|
||||
parking_lot_core-0.8.5
|
||||
phf-0.8.0
|
||||
phf_codegen-0.8.0
|
||||
phf_generator-0.8.0
|
||||
phf_macros-0.8.0
|
||||
phf_shared-0.10.0
|
||||
phf_shared-0.8.0
|
||||
ppv-lite86-0.2.16
|
||||
precomputed-hash-0.1.1
|
||||
proc-macro2-1.0.36
|
||||
proc-macro-hack-0.5.19
|
||||
pyo3-0.16.5
|
||||
pyo3-build-config-0.16.5
|
||||
pyo3-ffi-0.16.5
|
||||
pyo3-macros-0.16.5
|
||||
pyo3-macros-backend-0.16.5
|
||||
quote-1.0.16
|
||||
rand-0.7.3
|
||||
rand_chacha-0.2.2
|
||||
rand_core-0.5.1
|
||||
rand_hc-0.2.0
|
||||
rand_pcg-0.2.1
|
||||
redox_syscall-0.2.11
|
||||
rustc_version-0.4.0
|
||||
scopeguard-1.1.0
|
||||
selectors-0.22.0
|
||||
semver-1.0.6
|
||||
serde-1.0.136
|
||||
servo_arc-0.1.1
|
||||
siphasher-0.3.10
|
||||
smallvec-1.8.0
|
||||
stable_deref_trait-1.2.0
|
||||
string_cache-0.8.3
|
||||
string_cache_codegen-0.5.1
|
||||
syn-1.0.89
|
||||
target-lexicon-0.12.3
|
||||
tendril-0.4.3
|
||||
thin-slice-0.1.1
|
||||
unicode-xid-0.2.2
|
||||
unindent-0.1.8
|
||||
utf-8-0.7.6
|
||||
wasi-0.9.0+wasi-snapshot-preview1
|
||||
winapi-0.3.9
|
||||
winapi-i686-pc-windows-gnu-0.4.0
|
||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||
"
|
||||
|
||||
inherit distutils-r1 cargo
|
||||
|
||||
DESCRIPTION="A plugin for setuptools to build Rust Python extensions"
|
||||
HOMEPAGE="
|
||||
https://github.com/PyO3/setuptools-rust/
|
||||
https://pypi.org/project/setuptools-rust/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/PyO3/setuptools-rust/archive/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
test? ( $(cargo_crate_uris ${CRATES}) )
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
virtual/rust
|
||||
<dev-python/semantic_version-3[${PYTHON_USEDEP}]
|
||||
>=dev-python/semantic_version-2.8.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-62.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/typing-extensions-3.7.4.3[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/setuptools-62.4[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
' 'python*')
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
cargo_src_unpack
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local examples=(
|
||||
html-py-ever
|
||||
namespace_package
|
||||
rust_with_cffi
|
||||
)
|
||||
for example_dir in ${examples[@]}; do
|
||||
pushd examples/${example_dir} >/dev/null || die
|
||||
einfo "Running ${example_dir} test"
|
||||
esetup.py build --build-lib=build/lib
|
||||
|
||||
case ${example_dir} in
|
||||
html-py-ever)
|
||||
pushd tests >/dev/null || die
|
||||
local -x PYTHONPATH=../build/lib
|
||||
${EPYTHON} run_all.py || die "Tests failed with ${EPYTHON}"
|
||||
popd >/dev/null || die
|
||||
;;
|
||||
*)
|
||||
pushd build/lib >/dev/null || die
|
||||
epytest ../../tests
|
||||
popd >/dev/null || die
|
||||
;;
|
||||
esac
|
||||
|
||||
rm -rf build || die
|
||||
popd >/dev/null || die
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user