mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 22:52:59 -04:00
dev-python/cloudflare: 3.1.0 bump, drop old
Signed-off-by: Kyle Elbert <kcelbert@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST cloudflare-2.19.2.gh.tar.gz 145051 BLAKE2B cd7c9d9352b055b115af443341dcc4d0a446aaf1ac7b7f8030dce0ff19da185b1effc9a679b8018920ade98cafaaf599af8aea8c57a924e59eb40670a3854b70 SHA512 eac9601f9cb9ea5dc140e48fb0f0e042396f6a7ec354f18b815d6c51094799dc3f25e1e69e78f87ec5c612f4304d15f779090962a8f96282d9b2fe8a9abfb690
|
||||
DIST cloudflare-2.19.4.gh.tar.gz 151397 BLAKE2B c91c95f52314c5177d823ef8f827ea2f76f6cc703260449aea12d54c1b77d061feca15d4bb845f84cfb4fd80789e5064e54d7530daf546d54d17054b9e0b4fda SHA512 8ae11e73760c57b610abfe5e2c8fdc83c2e0b9e07340884925ec9ac3bf5b40b4edf39b2b8ce7330538369d7573146a2ddac195efb0efb4ff657f75fdacb31aed
|
||||
DIST cloudflare-3.0.1.gh.tar.gz 1455281 BLAKE2B ed7268ee0936e0c537c6bf01b57e5020cde59ade37287a80c2ac5e67f70b6c53f8f69c8a6269d36eccedefebc4f4af9232997b5faccea5a51bf6e81a2b2ea7ba SHA512 b68eaed168967dcbc46ca17c133ee526ef12a5b0e4295044201bc7fdfc4c7883e7f941490b5d2eb1fbd792072b9fbb1e0aaaa417973028d1131aa96c89285874
|
||||
DIST cloudflare-python-3.0.1-prism.tar.gz 10658240 BLAKE2B ce8422410d7c28fefba8fd22a23075ea472ede1afe5ede1ed1baaae25be42c0a0a166a6b4c8c3d52b28b6b9431299ef2b5fa6e5d9f08ab3878216e4fbc58d52c SHA512 581386b1137fb0cfcded2d2eca25227f6f395f67ea09c34836e815c412e1d1372fb7cb63fcf3ef39c7f8dd9982282aa8eaa412e1863318e131c38a2cf05704a5
|
||||
DIST cloudflare-3.1.0.gh.tar.gz 1436993 BLAKE2B 136ed341bd16bd04165d94c10d82b2ad617a434728b290aff1dfc9bf11193786011224feeef567455df451efc7921c41c9835e80413738f80db60b3213396df8 SHA512 72f42012e8b4a4497523d159139ebbcef99b75f58a55a429ecb3dcdcfdad3ce3b3694cccb06bc6ec72c6148b1e1516083bda0fb43babdeb8933561e5821fbb1d
|
||||
DIST cloudflare-python-3.1.0-prism.tar.gz 10537403 BLAKE2B 67caa6b98f452890ea9613e875d534ddb14c8d3720af5c57bceb04e2e3518702ecafe1bf37f02e53818f8cbc5c6bd8c799c18342879b07d39ba64831168f5495 SHA512 718f968755c62aa4b66bbf3659437751734c3183d6c5d48b025b72355d59414578bb0748f01fa38d46c33736af10d52742723a4eda47d9868d86ec2b499ece27
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517="setuptools"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper for the Cloudflare v4 API"
|
||||
HOMEPAGE="https://pypi.org/project/cloudflare/"
|
||||
#SRC_URI="https://files.pythonhosted.org/packages/9b/8c/973e3726c2aa73821bb4272717c6f9f6fc74e69d41ba871bdf97fc671782/${P}.tar.gz"
|
||||
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/cloudflare/python-cloudflare/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/python-${P}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
DEPEND="dev-python/jsonlines[${PYTHON_USEDEP}]"
|
||||
RDEPEND="( ${DEPEND}
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}] )"
|
||||
PROPERTIES="test_network" #actually sends many test requests
|
||||
distutils_enable_tests pytest
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
RESTRICT="test mirror" #mirror restricted only because overlay
|
||||
|
||||
python_prepare_all() {
|
||||
# don't install tests or examples
|
||||
sed -i -e "s/'cli4', 'examples'/'cli4'/" \
|
||||
-e "s#'CloudFlare/tests',##" \
|
||||
setup.py || die
|
||||
sed -i -e "/def test_ips7_should_fail():/i@pytest.mark.xfail(reason='Now fails upstream')" \
|
||||
-e "2s/^/import pytest/" \
|
||||
CloudFlare/tests/test_cloudflare_calls.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
python_test() {
|
||||
pushd CloudFlare/tests
|
||||
if [ -z "${CLOUDFLARE_API_TOKEN}" ]; then
|
||||
ewarn "Skipping some tests which require an actual cloudflare api token"
|
||||
ewarn "To run them, provide the token in the environment variable CLOUDFLARE_API_TOKEN"
|
||||
ewarn "The permissions needed are zone dns edit and user details read"
|
||||
local EPYTEST_IGNORE=('test_dns_records.py' 'test_radar_returning_csv.py'
|
||||
'test_dns_import_export.py' 'test_load_balancers.py' 'test_log_received.py'
|
||||
'test_rulesets.py' 'test_urlscanner.py' 'test_paging_thru_zones.py'
|
||||
'test_purge_cache.py'
|
||||
'test_graphql.py' 'test_waiting_room.py' 'test_workers.py' 'test_cloudflare_calls.py' )
|
||||
# these test(s) need an api key/token setup
|
||||
# Permissions needed are zone dns edit and user details read, account worker scripts edit,
|
||||
# zone analytics read, zone load balancer edit, account ruleset edit, zone firewall edit
|
||||
# account url scanner edit, zone waiting room edit, zone cache purge
|
||||
fi
|
||||
# Not sure what permissions/tokens/whatever this test needs, maybe both a token and old api login
|
||||
# tried several of the ssl related options for the cert test but no luck either
|
||||
# Tried several of the prefex related options to try to get loa docs working but nope
|
||||
local EPYTEST_IGNORE+=('test_images_v2_direct_upload.py' 'test_issue114.py'
|
||||
'test_certificates.py' 'test_loa_documents.py'
|
||||
'test_load_balancers.py' 'test_rulesets.py')
|
||||
# maybe needs a paid plan or just some unknown permission
|
||||
local EPYTEST_DESELECT=(
|
||||
'test_load_balancers.py::test_load_balancers_list_regions'
|
||||
'test_load_balancers_get_regions'
|
||||
'test_load_balancers.py::test_load_balancers_search'
|
||||
'test_load_balancers.py::test_load_balancers_pools'
|
||||
'test_rulesets.py::test_zones_ruleset_post'
|
||||
'test_rulesets.py::test_zones_rulesets_get_specific'
|
||||
'test_rulesets.py::test_zones_ruleset_delete'
|
||||
)
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user