Python compat updates

This commit is contained in:
layman 2021-07-09 12:20:52 +02:00
parent 55ce612962
commit 9162201a0e
21 changed files with 576 additions and 212 deletions

View File

@ -1,11 +1,4 @@
DIST certbot-1.1.0.tar.gz 1346768 BLAKE2B 5c86edec3102ce0eb822465458ec86cbc98eb5e76c3c582d8a72ecab91e709f16e7a1576c684bc04bfd0c70918f34e84e0b3b264f949a1fb9bf9503fa9d6b179 SHA512 905b21a8a50b4df4eb92b464d10dec094ba4e7f5eaf3ad3dae1704a794952df6b51873ca919246a9b6698fd652a7c264efc742617ba0a25757ab99397759c343
DIST certbot-1.11.0.tar.gz 1419116 BLAKE2B 4749dcd897822d4e1981ef57334a493e7b729205f3ae808893ed4cab682b74c8779893378fa5cd2651b4ef681518c5aac751514104b64adfd7a17435946c46b7 SHA512 b744e44e8a7981d7b28064a2b7b5d1f47ac1ea465fa350b4f849004f38e6b3966e3118e5ebd8c1c83b9a4a065c31005c0e2cb33f75a0b04125fbe2ac17312a24
DIST certbot-1.13.0.tar.gz 1426058 BLAKE2B 661aeb430e468a46362c537efd253bb581c7e94b32c67131ae951a67b14d8b6d0f806b7c66a7f60375bb5fe95c714e1b58d3c811d5e0ee21e371b1ff611f74a8 SHA512 1c88027a2259ef9cfb852dd5bd0d326de52d8d7bcec984ee50dc7e5dfe60e2ea68b50afa255b95b2cac08f51467d6584d5671f2410b112b50ce5e4312969ad48
DIST certbot-1.5.0.tar.gz 1387959 BLAKE2B ad395e3bd9f7012b39692be48c28bef8a0648e17e42b7b4ada8024c7eb231f418f68b6388c6c3154232d38f82ba348bf056ddf8cdf349f4a83ad148bbc20243b SHA512 ea4f9fb06ed54e2bbc30a8a0aea436e1f35772d348de483cae5e696ee1176c9663739201569102ded385074ef7aa5833c43e543c0dbc1e8f6729167350bca6a3
DIST certbot-1.7.0.tar.gz 1416764 BLAKE2B de678a222e8c8e3e7834470f87763763671bfae37a5c8320a4c1a2552ec979b5391094713e7e13526f73fdf8cd32f70f8c4350f422505892c4fdd0ae77742c80 SHA512 f81242e68b7e261bbb6294ffe92e47bc1687128344816d71a495a94a2646e209e46c147bc76eedce0c477cc140dc6ae0fba76d2d5d01b828fce78875f5a2886a
EBUILD certbot-dns-rfc2136-1.1.0.ebuild 1139 BLAKE2B 651a0983e5d1dd28517a4e4d2ecbe8e0f47b2114274b2da593eef507b6a1e30a5fa1463eccec684c58afd29c22eca2e04f133e51ea3f92fbd10899e7ae578c3a SHA512 0ef47d3449f64ed62d081226ffff7927129c60191a67ac8be10ff3e948ce428f863b5598fbfd7923999f07559d9b18a053c76658821e2c6211eacd80a92feeeb
EBUILD certbot-dns-rfc2136-1.11.0.ebuild 1172 BLAKE2B 34fe0922f2540692493232e49fc7f1cbe0f9b27fe887fb4d1c3591c4f62f800a8f32d39b79c222e00eb6cf4dc6fa7de018c33af44a2872096be0e66585cd8956 SHA512 76c1503edd1a826d3bd4bd0a50cf02ac9bf9c63d6fc5d87ed7130a904d09cbf21737b5880b79c9efa93c75750150153417d60cecbe663083aff433a6d7df3255
DIST certbot-1.16.0.tar.gz 1384177 BLAKE2B 4e46e7d7b9db2f6ef19fab60c2d904f84b502d2911ed496967bbe272db5352c1e9bdb65b8f45358f222214bce4721ceecc12c018b875148bc897f83c5eb63933 SHA512 c2a0c4ea52ab241e387d686a9e5ed67aa5e8b4b7d34ad8996e34562e036c25ab8b397bf482a856758ca787b97bbd78c890189250c0c3d948f03fbf91aa25ece0
EBUILD certbot-dns-rfc2136-1.13.0.ebuild 1168 BLAKE2B dc81d001f898be52daa3fd9aeefb99abacfb84b8d5632f496ab0df5bce588caa6ff0a4e32fa0205719b03376f055e6512f0c00a95464fb3cfe07e2fe00a901ef SHA512 7b8e35497134fa356ae200ee6b800dac57fa945fb741e0f558304c0298d37590330f498b0d8d9ce1228a953a17b040bb9eda9c2183e75f4b3698743d7a4651b8
EBUILD certbot-dns-rfc2136-1.5.0.ebuild 1129 BLAKE2B cfc5451a6453a8af0fcf06aaacc231660aa3a21753ad24e5220bfbf3997bf8aea46fb270970dd4f81d3ee09b6a311301fab5c508b3ce0155b2271ee8ee7c2b88 SHA512 b452bfa9db5c1a49923dadeaaa51e993b9a0f6153c8b91c6e459886ac1e41815452818f4082987f100aeeb2a477d9cf7c43b25cb5e4178b55b11004562f1ee85
EBUILD certbot-dns-rfc2136-1.7.0.ebuild 1129 BLAKE2B 40e805e5c505b681e87d50f156884cf2885f6e0ac4094ea78eef3c5c5e17226728cd58b91d0857f90da363eed8c0daf81b3bed20fe27853b98b1f07d7df60f02 SHA512 fa16ce41d5769e9e07c65172d74d8beeae04ec922b66db5997026c4cb461d6a7a86318d5ee054d0f9d56c498585452b1f885570ad67ee3e9c1533e3b023e8f7c
EBUILD certbot-dns-rfc2136-9999.ebuild 1168 BLAKE2B dc81d001f898be52daa3fd9aeefb99abacfb84b8d5632f496ab0df5bce588caa6ff0a4e32fa0205719b03376f055e6512f0c00a95464fb3cfe07e2fe00a901ef SHA512 7b8e35497134fa356ae200ee6b800dac57fa945fb741e0f558304c0298d37590330f498b0d8d9ce1228a953a17b040bb9eda9c2183e75f4b3698743d7a4651b8
EBUILD certbot-dns-rfc2136-1.16.0.ebuild 1164 BLAKE2B 2baaf0cf813d78c852274ff6292cc252c574d46baa9a67a5b5da0fc6fcb2a7f4db1e232347552ebf1a57f9a2b7de6809a80c2fa0725613b46ddefd709d7f9414 SHA512 544b731c80eca95427d19279606522936876c9b29de67e8581d695ce082f66054b4300e891b5df1b157a5a7813068358de51bd95a021dd65485f3767ccb8340f

View File

@ -1,39 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python{2_7,3_5,3_6,3_7})
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
inherit git-r3
S=${WORKDIR}/${P}/${PN}
else
SRC_URI="https://github.com/${PN%-dns-rfc2136}/${PN%-dns-rfc2136}/archive/v${PV}.tar.gz -> ${PN%-dns-rfc2136}-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S=${WORKDIR}/${PN%-dns-rfc2136}-${PV}/${PN}
fi
inherit distutils-r1
DESCRIPTION="Apache plugin for certbot (Let's Encrypt Client)"
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RDEPEND=">=app-crypt/acme-0.40.0[${PYTHON_USEDEP}]
>=app-crypt/certbot-1.1.0[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/python-augeas[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="test? ( ${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
nosetests || die
}

View File

@ -1,40 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python{3_6,3_7,3_8,3_9})
DISTUTILS_USE_SETUPTOOLS=rdepend
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
inherit git-r3
S=${WORKDIR}/${P}/${PN}
else
SRC_URI="https://github.com/${PN%-dns-rfc2136}/${PN%-dns-rfc2136}/archive/v${PV}.tar.gz -> ${PN%-dns-rfc2136}-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S=${WORKDIR}/${PN%-dns-rfc2136}-${PV}/${PN}
fi
inherit distutils-r1
DESCRIPTION="Apache plugin for certbot (Let's Encrypt Client)"
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RDEPEND=">=app-crypt/acme-1.8.0[${PYTHON_USEDEP}]
>=app-crypt/certbot-1.11.0[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/python-augeas[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="test? ( ${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
nosetests || die
}

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python{3_7,3_8,3_9})
PYTHON_COMPAT=(python3_{7..10})
DISTUTILS_USE_SETUPTOOLS=rdepend
if [[ ${PV} == 9999* ]]; then

View File

@ -1,39 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python3_{6,7})
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
inherit git-r3
S=${WORKDIR}/${P}/${PN}
else
SRC_URI="https://github.com/${PN%-dns-rfc2136}/${PN%-dns-rfc2136}/archive/v${PV}.tar.gz -> ${PN%-dns-rfc2136}-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S=${WORKDIR}/${PN%-dns-rfc2136}-${PV}/${PN}
fi
inherit distutils-r1
DESCRIPTION="Apache plugin for certbot (Let's Encrypt Client)"
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RDEPEND=">=app-crypt/acme-0.40.0[${PYTHON_USEDEP}]
>=app-crypt/certbot-1.1.0[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/python-augeas[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="test? ( ${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
nosetests || die
}

View File

@ -1,39 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python3_{6,7})
if [[ ${PV} == 9999* ]]; then
EGIT_REPO_URI="https://github.com/certbot/certbot.git"
inherit git-r3
S=${WORKDIR}/${P}/${PN}
else
SRC_URI="https://github.com/${PN%-dns-rfc2136}/${PN%-dns-rfc2136}/archive/v${PV}.tar.gz -> ${PN%-dns-rfc2136}-${PV}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
S=${WORKDIR}/${PN%-dns-rfc2136}-${PV}/${PN}
fi
inherit distutils-r1
DESCRIPTION="Apache plugin for certbot (Let's Encrypt Client)"
HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RDEPEND=">=app-crypt/acme-0.40.0[${PYTHON_USEDEP}]
>=app-crypt/certbot-1.7.0[${PYTHON_USEDEP}]
dev-python/dnspython[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/python-augeas[${PYTHON_USEDEP}]
dev-python/zope-component[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]"
DEPEND="test? ( ${RDEPEND}
dev-python/nose[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
nosetests || die
}

View File

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..8} )
PYTHON_COMPAT=( python3_{7..9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1

View File

@ -1,3 +1,3 @@
DIST APScheduler-3.7.0.tar.gz 97826 BLAKE2B 0d6c80f7f36cd09ecb6c325d27447b559e6b710b10b504ee1fe091d2da0cbac03e189c2ba74410df3fe93533326759f9a663b6b3c63c71c931302b8e77b34c38 SHA512 549f65883affb2bc6d7c24e027204151090e741a733440b94c18a68efe00503e241c95374ee51b9e059029d02197091b91fdde6696f7e162e2eb0b4d7575ff62
EBUILD APScheduler-3.7.0.ebuild 1830 BLAKE2B fba93aa327d6526694a5ac7dfde1f5119813b7d56ed557bb85e68482d2dc2c1f928508fafb924e35684650f746bf497aaac78bada2f89b90d9f2f2e22f05e6de SHA512 16325c915407ac6462046e7621df791c2253eedff48776b7f4b267e06b14c1d18e9f636535fef51fc7773f38a1c14eb21a68bb0b38ff00e4ca23a0b37d18a543
EBUILD APScheduler-3.7.0.ebuild 1830 BLAKE2B 5b7079f58031850b922a4ca637f5f52b4d1951debf45638d246cc6411d1917488c138c3fa27cd134dbeef14f035a7fde8d18a4d7ba7b9af2ffe239daad98d1c5 SHA512 8f93206cfd7eb9e59cd8552def5689b742e2379f0a1b7f055ae4312022cf039cb5c39c8e385f7980aef3bf40da42fb393773558b8141de8adfc60e7e26697eb7
MISC metadata.xml 403 BLAKE2B a9cb9d18b06c206a2a3b89fe6a460dd477db5d591fad97138226e9caba4fd73512f47fc13d23b383d868cf9ef4cee74b4b2140e5ebb51c8c8cc765bad8c64c20 SHA512 b029f17fe0d3c8ab572fc92c45c41659c3c3dcf5bb487d1c862d65fb9f1c4215bcdade0958c3044117c97ca2442cb08dac89b3cd2817f143f807a608fcec5004

View File

@ -0,0 +1,3 @@
DIST Flask-1.1.4.tar.gz 635920 BLAKE2B c1f19e7449177ecf6e901d5932ad25cbe866ff53b9323f717541922b1ea5b10203ff07630fcf3eabaedd9b6a24ef031ad2aaa2e2f759925363bebfa7e5d967da SHA512 6f427a1264921b8560446afacee2757d16de0dc22d6ed249b7bc5d6f50f3af50c89b79ce900d75b41af4befc53910f2b532c2e280de42837e2133acb6b1bd80d
EBUILD flask-1.1.4.ebuild 1327 BLAKE2B 9bc0ccea2f427e5bfcf8aae9e48891e25298ec6adb561035618b1cffdd53d60cd84692906c2738dafb4c3079f20152d420d2adf3ef3ad4c6e4d052d1978486c1 SHA512 16437e808adb38ad1ede90c2354376b37c09f52134857099502049e9a2dae2c3fe9014c0c7d5aad993430a9fee1f5ea7cf9d299d37cef9c14e45a6ce85440850
MISC metadata.xml 385 BLAKE2B 0aa1fc56ae29e91457344d7ca4f8a26506d46d22b71ac7363fb443ba7fbcad7974f86b898dd7b2e4cc2bbbc5d58fe1a1904a077e5c7b959ba2e1761f1561769f SHA512 223a1a9459b462c6dfbfc2fa0d6932e1f9457e86eb9a70e96c5182a3b4f898a121aa13dc9425811b8fcabc6dca8ba1d715e5aa221453e235a5b5ee2c25cc02fc

View File

@ -0,0 +1,50 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} pypy3 )
inherit distutils-r1
DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
HOMEPAGE="https://github.com/pallets/flask/"
MY_PN="Flask"
MY_P="${MY_PN}-${PV}"
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="https://github.com/mitsuhiko/flask.git"
inherit git-r3
else
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="BSD"
SLOT="0"
IUSE="examples test"
RESTRICT="!test? ( test )"
RDEPEND="<dev-python/click-8[${PYTHON_USEDEP}]
dev-python/blinker[${PYTHON_USEDEP}]
<dev-python/itsdangerous-2[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
<dev-python/werkzeug-2[${PYTHON_USEDEP}]"
DEPEND="
test? (
${RDEPEND}
dev-python/pytest[${PYTHON_USEDEP}]
)"
distutils_enable_sphinx docs
python_test() {
distutils_install_for_testing
PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \
pytest -vv -p no:httpbin || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
use examples && dodoc -r examples
distutils-r1_python_install_all
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">Flask</remote-id>
<remote-id type="github">pallets/flask</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,3 +0,0 @@
DIST loguru-0.4.1.tar.gz 404393 BLAKE2B 2dec4a346db3652a35a758bb9ce98f29785f47a55a107c0f924005607001adbd6e873095b7212a86bfa66d5d8a24f058d775552c1fa044fabd9813c09f369f26 SHA512 5b7dbac11bbd5c7cb05fe380cf4a3337309614cac77ded3b1f5191c8865d16788cafa7e8da25817787a1ae94e1b6905afe54184d72df81fad08821cdb68c0a53
EBUILD loguru-0.4.1.ebuild 656 BLAKE2B c12daee7cc82dd3e3f2f2cbe97618f94baf12320ff29a1ba13a537c55a67f3d0a001217bb8c01353e15b3100347d30a5833bd08ded28362d8d052d51adc9ca98 SHA512 fd591aff2a4fd4c44abb4f0a54c4f67c41a838c89b1ff9820aed1f26096c8552bbbf41d590fd13fffdfd532f62b1cf941c9bdfb1dd1d2d5fa842847dc0384138
MISC metadata.xml 683 BLAKE2B bd44db6c47f17a714eb8080d63d5002bbedf247787d568735f87f8aa01a13fc32d383f4eab2b92536a2f98f5b76b0ae01c407bf3c746b08c668ef562cf488ed0 SHA512 8a671ba69aa489f384c7074623f62c03905442b14b6b12bc9f306416a66390a334dcdadf84a5485936b47ff9992ac87e35ffbc8ae17d035b381f53f721b2369b

View File

@ -1,24 +0,0 @@
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="Python logging made (stupidly) simple"
HOMEPAGE="https://github.com/Delgan/loguru"
SRC_URI="https://github.com/Delgan/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
RDEPEND="
$(python_gen_cond_dep 'dev-python/aiocontextvars[${PYTHON_USEDEP}]' 'python3_6')
>=dev-python/colorama-0.3.4[${PYTHON_USEDEP}]
"
# filesystem buffering tests may fail
# on tmpfs with 64k PAGESZ, but pass fine on ext4
distutils_enable_tests pytest

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gyakovlev@gentoo.org</email>
<name>Georgy Yakovlev</name>
</maintainer>
<longdescription lang="en">
This library is intended to make Python logging less painful by adding a bunch of useful functionalities that solve caveats of the standard loggers.
Using logs in your application should be an automatism, Loguru tries to make it both pleasant and powerful.
</longdescription>
<upstream>
<remote-id type="github">Delgan/loguru</remote-id>
<remote-id type="pypi">loguru</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,5 @@
AUX psutil-5.7.0-tests.patch 6018 BLAKE2B ac419a11d5caabd4184ece7a1b969e23125c122fe9a52277a7bc4af8006818b2328507e929584b464aa9ff94521c4d882819c45719dc4fb387a24c7171d5caba SHA512 3b8c901c101c56be207b008437fb0aa2f6095986e9dbdfb3f0ca5f3417ec2ee3a120d9b66f091ed9ac697d80bc17e2eb215b57bbde5b093b5b3b64ca4dae4b3b
AUX psutil-5.7.2-tests.patch 4427 BLAKE2B 8b2847eb445eb39080123dc1018ccf8c68c0ceb88538d9abef454724d298225ba3f65f735fd8528d3ed22d4f463e8025677144442ac471aeeea44bbe7c607d55 SHA512 46145825084b5d09e2dfa7f7b765757a8d5ac7ff2379ae66bb628ea30f010daff2fe9d389f7846a1f63f9b03c4b7bd8ac4f4d07a4ed977e06a68b63a4e27231b
DIST psutil-5.8.0.tar.gz 470886 BLAKE2B f3d8d55dcbc2e0821f1ce96b9187692b2389681e13599b04e33b10f11fbe02f768a4dfc0802fe506713c8c3306d4c7011f2ac659c78f6a23a5523c7e36abc318 SHA512 b716bcbf33ceacdc30ddd0d0cf9bca0ab7751225b8f20dea664a82751dc88cb590720b098ae26056c8b3cdabcfe2fa198d618cea24c21465b1368a52ee182818
EBUILD psutil-5.8.0.ebuild 1155 BLAKE2B 13f89c3397dacf75c21c2506e21ea149bab5334cddb7b94f62c30ba2ae6ce6f7f08144d07c9be7983de8913d113f861f6dabf51aca997123cd83e40aadeed500 SHA512 3d29e2ee60cc953a45724904c5c656554f83b3a6c7d8618d5c9863c38d563c2c31fc68d7f422241b7a52b5e33cfe33f8eaf3109b60022953cf031397379a4526
MISC metadata.xml 377 BLAKE2B 0e671ef95025f24d295ceb5c5295544f4d68bf94459537537e229efd273bbac058b385fa94f1fa1191f23785d2572a5960d84a1d3ece41f10316b38101cb26d0 SHA512 a28e7a1e32a0b2750a4f0956d2252c73d20b4aa9817aac2e776365febd7d03de88e88508aabdfc29ae15d8bf7ebf1ed662c000e2ca8c79e3d50a3362ce1c2d2d

View File

@ -0,0 +1,158 @@
From e910d08976e00bc12b5a516daa9e6a6d42d48354 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 19 Feb 2020 07:27:32 +0100
Subject: [PATCH] Skip broken tests on Gentoo
---
psutil/tests/test_linux.py | 8 ++++++++
psutil/tests/test_posix.py | 1 +
psutil/tests/test_process.py | 2 ++
psutil/tests/test_system.py | 1 +
4 files changed, 12 insertions(+)
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index e51f8bd5..48527ccb 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -17,6 +17,7 @@ import re
import shutil
import socket
import struct
+import sys
import tempfile
import textwrap
import time
@@ -381,6 +382,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
ret = psutil.virtual_memory()
assert m.called
self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024)
+ if sys.version_info < (3,):
+ return
w = ws[0]
self.assertIn(
"inactive memory stats couldn't be determined", str(w.message))
@@ -411,6 +414,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
ret = psutil.virtual_memory()
self.assertEqual(
ret.available, 2057400 * 1024 + 4818144 * 1024)
+ if sys.version_info < (3,):
+ return
w = ws[0]
self.assertIn(
"inactive memory stats couldn't be determined",
@@ -882,6 +887,7 @@ class TestLoadAvg(unittest.TestCase):
@unittest.skipIf(not LINUX, "LINUX only")
class TestSystemNetIfAddrs(unittest.TestCase):
+ @unittest.skip("broken on Gentoo")
def test_ips(self):
for name, addrs in psutil.net_if_addrs().items():
for addr in addrs:
@@ -1364,6 +1370,7 @@ class TestMisc(unittest.TestCase):
psutil.PROCFS_PATH = "/proc"
os.rmdir(tdir)
+ @unittest.skip("broken on Gentoo")
def test_issue_687(self):
# In case of thread ID:
# - pid_exists() is supposed to return False
@@ -2073,6 +2080,7 @@ class TestProcessAgainstStatus(unittest.TestCase):
value = self.read_status_file("nonvoluntary_ctxt_switches:")
self.assertEqual(self.proc.num_ctx_switches().involuntary, value)
+ @unittest.skip("broken on Gentoo")
def test_cpu_affinity(self):
value = self.read_status_file("Cpus_allowed_list:")
if '-' in str(value):
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
index a96b310f..70199203 100755
--- a/psutil/tests/test_posix.py
+++ b/psutil/tests/test_posix.py
@@ -364,6 +364,7 @@ class TestSystemAPIs(unittest.TestCase):
"couldn't find %s nic in 'ifconfig -a' output\n%s" % (
nic, output))
+ @unittest.skip("broken on Gentoo")
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
@retry_on_failure()
def test_users(self):
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 987bdf38..cb04f3ef 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -350,6 +350,7 @@ class TestProcess(unittest.TestCase):
self.assertGreaterEqual(io2[i], 0)
self.assertGreaterEqual(io2[i], 0)
+ @unittest.skip("fails if builder is ioniced already")
@unittest.skipIf(not HAS_IONICE, "not supported")
@unittest.skipIf(not LINUX, "linux only")
def test_ionice_linux(self):
@@ -1495,6 +1496,7 @@ class TestProcess(unittest.TestCase):
d2 = clean_dict(os.environ.copy())
self.assertEqual(d1, d2)
+ @unittest.skip("broken by sandbox")
@unittest.skipIf(not HAS_ENVIRON, "not supported")
@unittest.skipIf(not POSIX, "POSIX only")
def test_weird_environ(self):
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 3834209f..b07b5883 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -215,6 +215,7 @@ class TestMiscAPIs(unittest.TestCase):
self.assertGreater(bt, 0)
self.assertLess(bt, time.time())
+ @unittest.skip("broken on Gentoo")
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
def test_users(self):
users = psutil.users()
--
2.25.1
From 026e4b0076a352fcb1e8de71f1393ae0d50ac06d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Tue, 26 May 2020 12:28:59 +0200
Subject: [PATCH] Sort results in test_cpu_affinity_all_combinations
Fix test_cpu_affinity_all_combinations to permit any CPU order
in results. This fixes test failure due to affinity being reported
out of order:
======================================================================
FAIL: psutil.tests.test_process.TestProcess.test_cpu_affinity_all_combinations
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/psutil/psutil/tests/test_process.py", line 940, in test_cpu_affinity_all_combinations
self.assertEqual(p.cpu_affinity(), combo)
AssertionError: Lists differ: [8, 1] != [1, 8]
First differing element 0:
8
1
- [8, 1]
+ [1, 8]
----------------------------------------------------------------------
---
psutil/tests/test_process.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index a0b21c6e..e3394799 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -937,7 +937,7 @@ class TestProcess(PsutilTestCase):
for combo in combos:
p.cpu_affinity(combo)
- self.assertEqual(p.cpu_affinity(), combo)
+ self.assertEqual(sorted(p.cpu_affinity()), sorted(combo))
# TODO: #595
@unittest.skipIf(BSD, "broken on BSD")
--
2.26.2

View File

@ -0,0 +1,112 @@
From e910d08976e00bc12b5a516daa9e6a6d42d48354 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 19 Feb 2020 07:27:32 +0100
Subject: [PATCH] Skip broken tests on Gentoo
---
psutil/tests/test_linux.py | 8 ++++++++
psutil/tests/test_posix.py | 1 +
psutil/tests/test_process.py | 2 ++
psutil/tests/test_system.py | 1 +
4 files changed, 12 insertions(+)
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
index e51f8bd5..48527ccb 100755
--- a/psutil/tests/test_linux.py
+++ b/psutil/tests/test_linux.py
@@ -17,5 +17,6 @@ import re
import shutil
import socket
import struct
+import sys
import textwrap
import time
@@ -381,6 +382,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
ret = psutil.virtual_memory()
assert m.called
self.assertEqual(ret.available, 2057400 * 1024 + 4818144 * 1024)
+ if sys.version_info < (3,):
+ return
w = ws[0]
self.assertIn(
"inactive memory stats couldn't be determined", str(w.message))
@@ -411,6 +414,8 @@ class TestSystemVirtualMemory(unittest.TestCase):
ret = psutil.virtual_memory()
self.assertEqual(
ret.available, 2057400 * 1024 + 4818144 * 1024)
+ if sys.version_info < (3,):
+ return
w = ws[0]
self.assertIn(
"inactive memory stats couldn't be determined",
@@ -882,6 +887,7 @@ class TestLoadAvg(unittest.TestCase):
@unittest.skipIf(not LINUX, "LINUX only")
class TestSystemNetIfAddrs(unittest.TestCase):
+ @unittest.skip("broken on Gentoo")
def test_ips(self):
for name, addrs in psutil.net_if_addrs().items():
for addr in addrs:
@@ -1364,7 +1370,8 @@ class TestMisc(unittest.TestCase):
psutil.PROCFS_PATH = "/proc"
os.rmdir(tdir)
@retry_on_failure()
+ @unittest.skip("broken on Gentoo")
def test_issue_687(self):
# In case of thread ID:
# - pid_exists() is supposed to return False
@@ -2073,6 +2080,7 @@ class TestProcessAgainstStatus(unittest.TestCase):
value = self.read_status_file("nonvoluntary_ctxt_switches:")
self.assertEqual(self.proc.num_ctx_switches().involuntary, value)
+ @unittest.skip("broken on Gentoo")
def test_cpu_affinity(self):
value = self.read_status_file("Cpus_allowed_list:")
if '-' in str(value):
diff --git a/psutil/tests/test_posix.py b/psutil/tests/test_posix.py
index a96b310f..70199203 100755
--- a/psutil/tests/test_posix.py
+++ b/psutil/tests/test_posix.py
@@ -364,6 +364,7 @@ class TestSystemAPIs(unittest.TestCase):
"couldn't find %s nic in 'ifconfig -a' output\n%s" % (
nic, output))
+ @unittest.skip("broken on Gentoo")
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
@retry_on_failure()
def test_users(self):
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 987bdf38..cb04f3ef 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -350,6 +350,7 @@ class TestProcess(unittest.TestCase):
self.assertGreaterEqual(io2[i], 0)
self.assertGreaterEqual(io2[i], 0)
+ @unittest.skip("fails if builder is ioniced already")
@unittest.skipIf(not HAS_IONICE, "not supported")
@unittest.skipIf(not LINUX, "linux only")
def test_ionice_linux(self):
@@ -1495,6 +1496,7 @@ class TestProcess(unittest.TestCase):
d2 = clean_dict(os.environ.copy())
self.assertEqual(d1, d2)
+ @unittest.skip("broken by sandbox")
@unittest.skipIf(not HAS_ENVIRON, "not supported")
@unittest.skipIf(not POSIX, "POSIX only")
def test_weird_environ(self):
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
index 3834209f..b07b5883 100755
--- a/psutil/tests/test_system.py
+++ b/psutil/tests/test_system.py
@@ -215,6 +215,7 @@ class TestMiscAPIs(unittest.TestCase):
self.assertGreater(bt, 0)
self.assertLess(bt, time.time())
+ @unittest.skip("broken on Gentoo")
@unittest.skipIf(CI_TESTING and not psutil.users(), "unreliable on CI")
def test_users(self):
users = psutil.users()
--
2.25.1

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">psutil</remote-id>
<remote-id type="github">giampaolo/psutil</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,39 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
DESCRIPTION="Retrieve information on running processes and system utilization"
HOMEPAGE="https://github.com/giampaolo/psutil https://pypi.org/project/psutil/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/psutil-5.7.2-tests.patch"
)
python_test() {
if [[ ${EPYTHON} == pypy* ]]; then
ewarn "Not running tests on ${EPYTHON} since they are broken"
return 0
fi
# since we are running in an environment a bit similar to CI,
# let's skip the tests that are disable for CI
TRAVIS=1 APPVEYOR=1 "${EPYTHON}" psutil/tests/runner.py ||
die "tests failed with ${EPYTHON}"
}
python_compile() {
# force -j1 to avoid .o linking race conditions
local MAKEOPTS=-j1
distutils-r1_python_compile
}

View File

@ -3,11 +3,13 @@ AUX flexget.service 415 BLAKE2B d3900ecde223345364ca33bcf7d8fa8695b61dfd6f101b7a
DIST FlexGet-3.1.100.tar.gz 8598546 BLAKE2B 2ece2b4666ecf6b2b93f32232f5b5f9f386b5ee70bf44a8e89973eb0de10a8d552d66921c78e783d481baaa4a4ccd0586647d14aec74997634f74c1b38c685fa SHA512 b27473b4440f9f8ae66f345cc0bd4b0343bbb1b2db38774d73e42a5827530d7039652b9ea40dba040d3458540e65d6dc103a8a846bc67e3b428e9b93485040ee
DIST FlexGet-3.1.106.tar.gz 8599599 BLAKE2B 240bbe48916bade1a49a6f1d44df3c644c406ac8f6e025c84ffd3f975b8799ca1ef28897e5467cf609251e402a93c5eca0def68bd8401ef6dc4be086e2e991ed SHA512 cf19c8ce0665e72257f120a4cf208c06483a1ed5ad6ef3e3d6c778e8897e0c5db4cf337f7a03893a1be22c4993f81146532fa60a466f62e67e96409223013acf
DIST FlexGet-3.1.128.tar.gz 8621930 BLAKE2B 76c179bdeaa14957f7d679443700cc22e4f561ff9f20747dcc553c007e8bccd98f6128ec10700e459629da5b1536bd342d3d1e6a72183b039878b84cfdfac46b SHA512 2ed4e52bb7a03307a0a97ee6c2a1077d3c44ac4e0606201aea6ce31354aec6798df1b5b8d3260f75ca293d322500cebc1806c0dacb144a252e5efd98debf4f49
DIST FlexGet-3.1.131.tar.gz 8628149 BLAKE2B bde9dc4ea9ece5fda944fed0ceb907a9d1dba3f78af74d01352b502ddb78585313f65b986ec78480db990d798e5a0ec3b9e964020faed68a37680a69d0672702 SHA512 00ceda651e0e7b778a4725f43ce1031ea3a57798eb12fed0fe097df2d41e6f42d75f5d9f15116e87568155dd46fb4dbae0f6c7450dea84f4713339cd9881d81f
DIST FlexGet-3.1.48.tar.gz 8579168 BLAKE2B e741aea505aca635fb9d9e5518e19d21162a5fc34196cf277c3c045d987df4e032ee97fc64a543db44007334062a7aa270e79944a15d35c31d81e7b9f39e2a68 SHA512 e88d1bcec6f5e41aace79d010e66d1a3ead44ef950244a7d00be319950aa961af0346774c9034a29e4d40835741870b68da1c9dbc360eb8ba303b60de9f383ce
DIST FlexGet-3.1.70.tar.gz 8594444 BLAKE2B 64814bb87ae208ca1020e2491c09dbce343b1afda76beb7a157021f0cb62dd87b24c70176969931974431641f258bf2caeabf982cce2131edbcbff2c862a727c SHA512 977187497abda6ebccfefff8e7cdafa6ed828042f7457b9f62b84e7b4a4aba932a4d99df57b6da065a2a355170c48e3de9de9427b2f190c4db088c20581ebfed
EBUILD flexget-3.1.100.ebuild 7468 BLAKE2B 63832eb753fd023feb9ceb2acde44db5c2feece538c8467f95f412e0824e917ace19375afdbb1419c063658853cb772c9bcf5bc6da71ab0fe5acaad7cd676be2 SHA512 5add6137e6b72e56cff56a15bf1b2718828d37af89aebe3c4533878b4adfdecb09346d90ce195f613d28b362a1a371edb30120328fbd2949c9afd9c58b822744
EBUILD flexget-3.1.106.ebuild 7698 BLAKE2B 9c5fcb77d8350b4334967035fab0fa2bc7409af9a0380faf160f3e3ae0543320e958c66792698066c715f5d713f612b98aa2daff4724e6761239c08d0fafbe48 SHA512 a2bcf7ade15d5291e0e41886b3af823ecdf2896c29c5f67c44ed6d44d64e79923c169e374b4c298ff76c64898851fbb2709b4c4573b7e19e91df37a3330bf598
EBUILD flexget-3.1.128.ebuild 8013 BLAKE2B b4d33ac21ac98a93aec76708f2f0d0224e230205ce3ec77d40cd9157a3880051c7b2393d6b0273f7acfb729c10bf6d1245b1b7db68957ae5709dc98115396a8b SHA512 7b90d266862f5408a439b3f4e6b36eb40cd5c305533752d73277a346baea8c4509facbd8ed1c640d3c963353731a51249870143936582f7f255e8bed5477c706
EBUILD flexget-3.1.131.ebuild 8042 BLAKE2B 7d1b9f2c31fce94d6a2670d3d3b5617944cc64bc8562b0cdffab11697745f77a060d9c3022a550e02cae54c2ffbcbf7ec4fb799589b4feac6f0af4416ce91795 SHA512 46c26e209a1bd56f94b5ee01e07bee1200dcfb12343b0d216cb59b23730c805a3427c0580fdc8f9fc93981fdf0ca4f4fde080c92d62af14675cbf873ff784794
EBUILD flexget-3.1.48.ebuild 6838 BLAKE2B 5398abd9a8360bb989e0229dc948135f525ca9dfe2e08c2ba9a7ed35762f18005150a0a8843282f69d7e77692c8a495560cde49e806620208dcb7e430ca19fab SHA512 7c7d1b129421daa9c97755d015540a9eafba2582aa14072816c9e2008b5f2a3270e6ea758ae732962c24b060e3be8726e76ac45c8d01612fdac7456de3a9a9d6
EBUILD flexget-3.1.70.ebuild 6999 BLAKE2B ad15651980e52f86694fd4a76062069d35abfad15701022b68e821caad3e814f9aff470fef0baab80838e397942b0e5af175a726fbd9decc8e83ce599fb6bcae SHA512 30c7147973684bd7da895c81396f984332afbf167d84cc9e2f45fcf15dd6463785d7fcd8c0f8970daeb7e4045e25491381be1f46d0743897e6613e43400fa218
MISC ChangeLog 559 BLAKE2B 43030b5c73d9efa71c0cd9b8e60d1d75908debd818fb880a3740b2f74764fccfd9e1e014453a3fe851addce9f57a701c53894279ef1801622d9e8b71900b62df SHA512 85e73780c6b8c9abfd16f66e9183c9d7a8a2bc06fdd6311d05572b316a3975dafbd29bfe6f872862b0d6d41e79fde99717df2dedac2be5eee76af58a2d387667

View File

@ -0,0 +1,177 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1 eutils systemd user
if [[ ${PV} != 9999 ]]; then
MY_P="FlexGet-${PV}"
SRC_URI="mirror://pypi/F/FlexGet/${MY_P}.tar.gz"
KEYWORDS="~amd64 ~x86"
else
inherit git-r3
EGIT_REPO_URI="git://github.com/Flexget/Flexget.git
https://github.com/Flexget/Flexget.git"
fi
DESCRIPTION="Multipurpose automation tool for content like torrents, nzbs, podcasts, comics"
HOMEPAGE="http://flexget.com/"
LICENSE="MIT"
SLOT="0"
IUSE="systemd test transmission"
RESTRICT="nomirror"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
~dev-python/aniso8601-9.0.1[${PYTHON_USEDEP}]
~dev-python/APScheduler-3.7.0[${PYTHON_USEDEP}]
~dev-python/attrs-21.2.0[${PYTHON_USEDEP}]
~dev-python/babelfish-0.5.5[${PYTHON_USEDEP}]
~dev-python/beautifulsoup-4.9.3:4[${PYTHON_USEDEP}]
~dev-python/certifi-10001[${PYTHON_USEDEP}]
~dev-python/chardet-4.0.0[${PYTHON_USEDEP}]
~dev-python/cheroot-8.5.2[${PYTHON_USEDEP}]
~dev-python/cherrypy-18.6.0[${PYTHON_USEDEP}]
~dev-python/click-7.1.2[${PYTHON_USEDEP}]
~dev-python/colorama-0.4.4[${PYTHON_USEDEP}]
~dev-python/colorclass-2.2.0[${PYTHON_USEDEP}]
~dev-python/feedparser-6.0.2[${PYTHON_USEDEP}]
~dev-python/flask-1.1.4[${PYTHON_USEDEP}]
~dev-python/flask-compress-1.10.1[${PYTHON_USEDEP}]
~dev-python/flask-cors-3.0.10[${PYTHON_USEDEP}]
~dev-python/flask-login-0.5.0[${PYTHON_USEDEP}]
~dev-python/flask-restful-0.3.9[${PYTHON_USEDEP}]
~dev-python/flask-restx-0.4.0[${PYTHON_USEDEP}]
~dev-python/greenlet-1.0.0[${PYTHON_USEDEP}]
~dev-python/guessit-3.3.1[${PYTHON_USEDEP}]
~dev-python/html5lib-1.1[${PYTHON_USEDEP}]
~dev-python/idna-3.2[${PYTHON_USEDEP}]
~dev-python/importlib_metadata-4.6.0[${PYTHON_USEDEP}]
~dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}]
~dev-python/jaraco-collections-3.3.0[${PYTHON_USEDEP}]
~dev-python/jaraco-functools-3.3.0[${PYTHON_USEDEP}]
~dev-python/jaraco-text-3.5.0[${PYTHON_USEDEP}]
~dev-python/jinja-3.0.1[${PYTHON_USEDEP}]
~dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
~dev-python/loguru-0.5.3[${PYTHON_USEDEP}]
~dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}]
~dev-python/more-itertools-8.8.0[${PYTHON_USEDEP}]
~dev-python/plumbum-1.7.0[${PYTHON_USEDEP}]
~dev-python/portend-2.7.1[${PYTHON_USEDEP}]
~dev-python/progressbar-2.5[${PYTHON_USEDEP}]
~dev-python/psutil-5.8.0[${PYTHON_USEDEP}]
~dev-python/pynzb-0.1.0[${PYTHON_USEDEP}]
~dev-python/pyparsing-2.4.7[${PYTHON_USEDEP}]
~dev-python/pyrsistent-0.17.3[${PYTHON_USEDEP}]
~dev-python/PyRSS2Gen-1.1[${PYTHON_USEDEP}]
~dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
~dev-python/pytz-2021.1[${PYTHON_USEDEP}]
~dev-python/pyyaml-5.4.1[${PYTHON_USEDEP}]
~dev-python/rebulk-3.0.1[${PYTHON_USEDEP}]
~dev-python/requests-2.25.1[${PYTHON_USEDEP}]
~dev-python/rpyc-5.0.1[${PYTHON_USEDEP}]
~dev-python/sgmllib3k-1.0.0[${PYTHON_USEDEP}]
~dev-python/six-1.16.0[${PYTHON_USEDEP}]
~dev-python/soupsieve-2.2.1[${PYTHON_USEDEP}]
~dev-python/sqlalchemy-1.4.20[${PYTHON_USEDEP}]
~dev-python/tempora-4.0.2[${PYTHON_USEDEP}]
~dev-python/terminaltables-3.1.0[${PYTHON_USEDEP}]
~dev-python/typing-extensions-3.10.0.0[${PYTHON_USEDEP}]
~dev-python/tzlocal-2.1[${PYTHON_USEDEP}]
~dev-python/urllib3-1.26.6[${PYTHON_USEDEP}]
~dev-python/webencodings-0.5.1[${PYTHON_USEDEP}]
~dev-python/werkzeug-1.0.1[${PYTHON_USEDEP}]
~dev-python/zc-lockfile-2.0[${PYTHON_USEDEP}]
~dev-python/zipp-3.4.1[${PYTHON_USEDEP}]
~dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}]
"
RDEPEND="${DEPEND}
transmission? ( dev-python/transmissionrpc[${PYTHON_USEDEP}] )
"
DEPEND+=" test? ( dev-python/nose[${PYTHON_USEDEP}] )"
if [[ ${PV} == 9999 ]]; then
DEPEND+=" dev-python/paver[${PYTHON_USEDEP}]"
else
S="${WORKDIR}/${MY_P}"
fi
python_test() {
cp -lr tests setup.cfg "${BUILD_DIR}" || die
run_in_build_dir nosetests -v --attr=!online > "${T}/tests-${EPYTHON}.log" \
|| die "Tests fail with ${EPYTHON}"
}
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 ${PN}
}
src_prepare() {
distutils-r1_src_prepare
#sed -i -e "s/^aniso8601==1.2.1/aniso8601==8.0.0/" ${S}/requirements.txt || die
#sed -i -e "s/^apscheduler==3.5.0/apscheduler==3.6.3/" ${S}/requirements.txt || die
sed -i -e "s/^attrs==20.3.0/attrs==21.2.0/" ${S}/requirements.txt || die
#sed -i -e "s/^beautifulsoup4==4.8.2/beautifulsoup4==4.9.3/" ${S}/requirements.txt || die
sed -i -e "s/^certifi==2020.12.5/certifi==10001/" ${S}/requirements.txt || die
#sed -i -e "s/^chardet==3.0.3/chardet==4.0.0/" ${S}/requirements.txt || die
#sed -i -e "s/^cheroot==8.2.1/cheroot==8.5.2/" ${S}/requirements.txt || die
#sed -i -e "s/^cherrypy==18.4.0/cherrypy==18.6.0/" ${S}/requirements.txt || die
#sed -i -e "s/^click==6.7/click==7.1.2/" ${S}/requirements.txt || die
sed -i -e "s/^flask==1.1.2/flask==1.1.4/" ${S}/requirements.txt || die
#sed -i -e "s/^flask-compress==1.4.0/flask-compress==1.8.0/" ${S}/requirements.txt || die
#sed -i -e "s/^flask-cors==3.0.2/flask-cors==3.0.10/" ${S}/requirements.txt || die
#sed -i -e "s/^flask-login==0.4.0/flask-login==0.5.0/" ${S}/requirements.txt || die
#sed -i -e "s/^flask-restful==0.3.6/flask-restful==0.3.8/" ${S}/requirements.txt || die
#sed -i -e "s/^future==0.16.0/future==0.17.1/" ${S}/requirements.txt || die
sed -i -e "s/^guessit==3.2.0/guessit==3.3.1/" ${S}/requirements.txt || die
#sed -i -e "s/^html5lib==0.999999999/html5lib==1.1/" ${S}/requirements.txt || die
sed -i -e "s/^idna==2.10/idna==3.2/" ${S}/requirements.txt || die
#sed -i -e "s/^importlib-metadata==0.8/importlib-metadata==0.23/" ${S}/requirements.txt || die
#sed -i -e "s/^itsdangerous==0.24/itsdangerous==1.1.0/" ${S}/requirements.txt || die
#sed -i -e "s/^jaraco.functools==2.0/jaraco.functools==3.1.0/" ${S}/requirements.txt || die
#sed -i -e "s/^jinja2==3.0.0/jinja2==3.0.1/" ${S}/requirements.txt || die
#sed -i -e "s/^jsonschema==2.6.0/jsonschema==3.2.0/" ${S}/requirements.txt || die
sed -i -e "s/^markupsafe==2.0.0/markupsafe==2.0.1/" ${S}/requirements.txt || die
#sed -i -e "s/^more-itertools==7.2.0/more-itertools==8.6.0/" ${S}/requirements.txt || die
#sed -i -e "s/^path.py==11.5.0/path.py==11.0.1/" ${S}/requirements.txt || die
#sed -i -e "s/^pillow==7.0.0/pillow==7.1.2/" ${S}/requirements.txt || die
#sed -i -e "s/^plumbum==1.6.3/plumbum==1.6.9/" ${S}/requirements.txt || die
#sed -i -e "s/^portend==2.6/portend==2.7.0/" ${S}/requirements.txt || die
#sed -i -e "s/^progressbar==2.5/progressbar==2.3/" ${S}/requirements.txt || die
#sed -i -e "s/^psutil==5.8.0/psutil==5.7.3/" ${S}/requirements.txt || die
#sed -i -e "s/^python-dateutil==2.6.1/python-dateutil==2.8.1/" ${S}/requirements.txt || die
#sed -i -e "s/^pytz==2017.2/pytz==2020.5/" ${S}/requirements.txt || die
#sed -i -e "s/^pyparsing==2.2.0/pyparsing==2.4.7/" ${S}/requirements.txt || die
#sed -i -e "s/^pyyaml==5.1.2/pyyaml==5.3.1/" ${S}/requirements.txt || die
#sed -i -e "s/^rebulk==2.0.0/rebulk==3.0.1/" ${S}/requirements.txt || die
#sed -i -e "s/^requests==2.24.0/requests==2.25.1/" ${S}/requirements.txt || die
sed -i -e "s/^rpyc==4.1.5/rpyc==5.0.1/" ${S}/requirements.txt || die
sed -i -e "s/^six==1.15.0/six==1.16.0/" ${S}/requirements.txt || die
#sed -i -e "s/^soupsieve==2.2/soupsieve==2.2.1/" ${S}/requirements.txt || die
#sed -i -e "s/^sqlalchemy==1.3.11/sqlalchemy==1.3.22/" ${S}/requirements.txt || die
#sed -i -e "s/^tempora==1.8/tempora==4.0.1/" ${S}/requirements.txt || die
#sed -i -e "s/^tzlocal==1.4/tzlocal==2.1/" ${S}/requirements.txt || die
sed -i -e "s/^urllib3==1.26.4/urllib3==1.26.6/" ${S}/requirements.txt || die
#sed -i -e "s/^werkzeug==0.15.6/werkzeug==1.0.1/" ${S}/requirements.txt || die
sed -i -e "s/^zxcvbn-python==4.4.24/zxcvbn==4.4.28/" ${S}/requirements.txt || die
}
src_install() {
distutils-r1_src_install
keepdir /var/log/${PN}
fowners ${PN}:${PN} /var/log/${PN}
fperms 755 /var/log/${PN}
if use systemd; then
systemd_dounit "${FILESDIR}"/flexget.service
fi
}