* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-04-09 20:39 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-04-09 20:39 UTC (permalink / raw
To: gentoo-commits
commit: c73aae6736344a181114488e0a95456a2a1c36a8
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Tue Apr 9 20:35:54 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Tue Apr 9 20:39:10 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c73aae67
dev-python/cloudflare: mark newly failing test xfail
Test started failing with a 500 internal server error on their end
They're also working on a revamp and new major version.
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-2.19.2.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-python/cloudflare/cloudflare-2.19.2.ebuild b/dev-python/cloudflare/cloudflare-2.19.2.ebuild
index a78d730013..c4a3c1cb13 100644
--- a/dev-python/cloudflare/cloudflare-2.19.2.ebuild
+++ b/dev-python/cloudflare/cloudflare-2.19.2.ebuild
@@ -29,7 +29,9 @@ python_prepare_all() {
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() {
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-07-17 6:30 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-07-17 6:30 UTC (permalink / raw
To: gentoo-commits
commit: 5a7176d1c02c731a7ab4a52d0112ef6b129b00e3
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jul 17 06:27:24 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jul 17 06:28:15 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5a7176d1
dev-python/cloudflare: 3.1.0 bump, drop old
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 5 +-
dev-python/cloudflare/cloudflare-2.19.2.ebuild | 70 ----------------------
...dflare-3.0.1.ebuild => cloudflare-3.1.0.ebuild} | 0
3 files changed, 2 insertions(+), 73 deletions(-)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
index 18761f6e2..6d6b44285 100644
--- a/dev-python/cloudflare/Manifest
+++ b/dev-python/cloudflare/Manifest
@@ -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
diff --git a/dev-python/cloudflare/cloudflare-2.19.2.ebuild b/dev-python/cloudflare/cloudflare-2.19.2.ebuild
deleted file mode 100644
index c4a3c1cb1..000000000
--- a/dev-python/cloudflare/cloudflare-2.19.2.ebuild
+++ /dev/null
@@ -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
-}
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.1.0.ebuild
similarity index 100%
rename from dev-python/cloudflare/cloudflare-3.0.1.ebuild
rename to dev-python/cloudflare/cloudflare-3.1.0.ebuild
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-26 12:59 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-26 12:59 UTC (permalink / raw
To: gentoo-commits
commit: a7c48bb44bd31c2c51c328506053d7a0542ce266
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 12:57:26 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jun 26 12:59:29 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a7c48bb4
dev-python/cloudflare: disabled intermittently failing tests on 3.12 also
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-3.0.1.ebuild | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
index f9cb3d28e..73d91f5e4 100644
--- a/dev-python/cloudflare/cloudflare-3.0.1.ebuild
+++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
@@ -68,12 +68,10 @@ python_test() {
local EPYTEST_DESELECT=(
tests/test_client.py::TestCloudflare::test_validate_headers
tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
- if [ "${EPYTHON}" == "python3.11" ]; then
- #fails due to slight memory leak
+ #intermittently fail for unknown reasons, passed along to upstream
EPYTEST_DESELECT+=(
tests/test_client.py::TestAsyncCloudflare::test_copy_build_request
tests/test_client.py::TestCloudflare::test_copy_build_request )
- fi
epytest
}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-26 10:56 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-26 10:56 UTC (permalink / raw
To: gentoo-commits
commit: 25b35c437d5d8fabe4cfcb0841095f77ed118fbc
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 10:47:12 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jun 26 10:55:28 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=25b35c43
dev-python/cloudflare: deselect async version of same test
Bug: https://bugs.gentoo.org/934952
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-3.0.1.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
index aac3ee13b..f9cb3d28e 100644
--- a/dev-python/cloudflare/cloudflare-3.0.1.ebuild
+++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
@@ -71,6 +71,7 @@ python_test() {
if [ "${EPYTHON}" == "python3.11" ]; then
#fails due to slight memory leak
EPYTEST_DESELECT+=(
+ tests/test_client.py::TestAsyncCloudflare::test_copy_build_request
tests/test_client.py::TestCloudflare::test_copy_build_request )
fi
epytest
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-26 10:29 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-26 10:29 UTC (permalink / raw
To: gentoo-commits
commit: 1ffa96ec3d8a432df032bb01a8fc8712083d1a38
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 10:27:24 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jun 26 10:27:24 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ffa96ec
dev-python/cloudflare: deselect failing test for python3.11
Looks like its a small memory leak
Will put in an upstream bug soon for them to look at
Passes on python3.12 (and upstream's ci using 3.9)
Closes: https://bugs.gentoo.org/934952
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-3.0.1.ebuild | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
index d4fc4813a..aac3ee13b 100644
--- a/dev-python/cloudflare/cloudflare-3.0.1.ebuild
+++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
@@ -68,15 +68,24 @@ python_test() {
local EPYTEST_DESELECT=(
tests/test_client.py::TestCloudflare::test_validate_headers
tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
-
+ if [ "${EPYTHON}" == "python3.11" ]; then
+ #fails due to slight memory leak
+ EPYTEST_DESELECT+=(
+ tests/test_client.py::TestCloudflare::test_copy_build_request )
+ fi
epytest
}
src_test() {
- # Run prism mock api server, this is what needs nodejs
+ start_mock
+ distutils-r1_src_test
+ stop_mock
+}
+start_mock() {
+# Run prism mock api server, this is what needs nodejs
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
"cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
- local MOCK_PID=$!
+ echo $! >"${T}/mock.pid" || die
# Wait for server to come online
echo -n "Waiting for mockserver"
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
@@ -86,6 +95,7 @@ src_test() {
if grep -q "✖ fatal" prism.log; then
die "Prism mock server failed"
fi
- distutils-r1_src_test
- kill "${MOCK_PID}"
+}
+stop_mock() {
+ kill $(cat "${T}/mock.pid") || die
}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-25 18:44 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-25 18:44 UTC (permalink / raw
To: gentoo-commits
commit: 0e00f92be705d7647c7523194730b58399b4a7ed
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Tue Jun 25 18:42:04 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Tue Jun 25 18:43:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0e00f92b
dev-python/cloudflare: 3.0.1: minor cleanup
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-3.0.1.ebuild | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
index 735c52bb8..d4fc4813a 100644
--- a/dev-python/cloudflare/cloudflare-3.0.1.ebuild
+++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
@@ -23,7 +23,7 @@ else
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )"
-# nodejs package and deps used to test
+# nodejs module and deps used to test
SLOT="3"
RDEPEND=" ${DEPEND}
>=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
@@ -44,7 +44,6 @@ BDEPEND="test? (
)"
distutils_enable_tests pytest
-RESTRICT="mirror" #mirror restricted only because overlay
RESTRICT+=" !test? ( test )"
src_unpack() {
@@ -76,12 +75,12 @@ python_test() {
src_test() {
# Run prism mock api server, this is what needs nodejs
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
- "cloudflare-spec.yml" >prism.log &
+ "cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
local MOCK_PID=$!
# Wait for server to come online
echo -n "Waiting for mockserver"
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
- echo -n "."
+ echo -n "." || die
sleep 0.5
done
if grep -q "✖ fatal" prism.log; then
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-25 0:41 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-25 0:41 UTC (permalink / raw
To: gentoo-commits
commit: f54a9e1dfcf32f897dad4dd763aa8092a9562898
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Tue Jun 25 00:39:56 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Tue Jun 25 00:39:56 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f54a9e1d
dev-python/cloudflare: drop 3.0.0_beta10
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 2 -
.../cloudflare/cloudflare-3.0.0_beta10.ebuild | 92 ----------------------
2 files changed, 94 deletions(-)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
index e4ef4c32e..18761f6e2 100644
--- a/dev-python/cloudflare/Manifest
+++ b/dev-python/cloudflare/Manifest
@@ -1,6 +1,4 @@
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.0_beta10.gh.tar.gz 1445435 BLAKE2B 1717f36194ce5e8a292f4026463d9b05b12808ee2c8fbbae7d4817523a4c37d13d2935eef58fe83cebe64c6e7684018154482ee3e51538e7a5724179a2b280c0 SHA512 c7150c0cc056869a600cb440f6cd68801d4032d401192e156101cdf82484ba9b3a03649a2c0569c42c396b653517ad19ec841c3baab067709b4736bcc15e9be6
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-python-v3.0.0_beta10-prism.tar.gz 10658021 BLAKE2B 930259e5e1b967ca056804ede3f40d40b57602640d8ae308cc466f38c10eacb95dfb639309ea0b3d2a79fb6c0da6f4cc9dedae08f9a356a4c52ff4bf458d193d SHA512 60c8cb768cb18099c2f9384fd80ff34e2e2511b56433ca0aae02f4be949c2ac9ab72ea879c53aa1e7aaae284afe5547abb909dc733274d50154179a174429b53
diff --git a/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild b/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
deleted file mode 100644
index eb7c347b8..000000000
--- a/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..12} )
-DISTUTILS_USE_PEP517="hatchling"
-inherit distutils-r1
-DESCRIPTION="Python wrapper for the Cloudflare v4 API"
-HOMEPAGE="https://pypi.org/project/cloudflare/"
-if [ "${PV}" == 9999 ]; then
- EGIT_REPO_URI="https://github.com/cloudflare/cloudflare-python"
- inherit git-r3
-else
- MYPV=$(ver_rs 3 -)
- MYPV=${MYPV/beta/beta.}
- MYPN="cloudflare-python"
- SRC_URI="https://github.com/cloudflare/cloudflare-python/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.gh.tar.gz
- test? ( https://github.com/Phoenix591/${MYPN}/releases/download/v${PV}/${MYPN}-v${PV}-prism.tar.gz )"
- #Prism archive generated by workflow
- # https://github.com/Phoenix591/cloudflare-python/blob/v3.0.0_beta10/.github/workflows/test-tar.yml
- S="${WORKDIR}/${MYPN}-${MYPV}"
- KEYWORDS="~amd64 ~arm64"
-fi
-LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )"
-# nodejs package and deps used to test
-SLOT="3"
-RDEPEND=" ${DEPEND}
- >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
- >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-4.7.0[${PYTHON_USEDEP}]
- >=dev-python/anyio-4.3.0[${PYTHON_USEDEP}]
- >=dev-python/distro-1.7.0[${PYTHON_USEDEP}]
- >=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}]
- "
-
-BDEPEND="test? (
- >=net-libs/nodejs-18.20.1
- dev-python/pytest-asyncio[${PYTHON_USEDEP}]
- dev-python/time-machine[${PYTHON_USEDEP}]
- dev-python/dirty-equals[${PYTHON_USEDEP}]
- dev-python/respx[${PYTHON_USEDEP}]
- ${RDEPEND}
-)"
-
-distutils_enable_tests pytest
-RESTRICT="mirror" #mirror restricted only because overlay
-RESTRICT+=" !test? ( test )"
-
-src_unpack() {
- unpack "${P}.gh.tar.gz"
- use test && cd "${S}" && unpack "cloudflare-python-v${PV}-prism.tar.gz"
-}
-
-#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() {
- # these 2 tests fail in an ebuild environment for some reason
- # help appreciated
- local EPYTEST_DESELECT=(
- tests/test_client.py::TestCloudflare::test_validate_headers
- tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
-
- epytest
-}
-
-src_test() {
- # Run prism mock api server, this is what needs nodejs
- node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
- "cloudflare-spec.yml" >prism.log &
- local MOCK_PID=$!
- # Wait for server to come online
- echo -n "Waiting for mockserver"
- while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
- echo -n "."
- sleep 0.5
- done
- if grep -q "✖ fatal" prism.log; then
- die "Prism mock server failed"
- fi
- distutils-r1_src_test
- kill "${MOCK_PID}"
-}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-25 0:41 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-25 0:41 UTC (permalink / raw
To: gentoo-commits
commit: 9925ed5c6c6bf4ceb1897ff2cc5445669c855019
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Tue Jun 25 00:39:02 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Tue Jun 25 00:39:02 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9925ed5c
dev-python/cloudflare: add 3.0.1
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 2 +
dev-python/cloudflare/cloudflare-3.0.1.ebuild | 92 +++++++++++++++++++++++++++
2 files changed, 94 insertions(+)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
index d8d975fef..e4ef4c32e 100644
--- a/dev-python/cloudflare/Manifest
+++ b/dev-python/cloudflare/Manifest
@@ -1,4 +1,6 @@
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.0_beta10.gh.tar.gz 1445435 BLAKE2B 1717f36194ce5e8a292f4026463d9b05b12808ee2c8fbbae7d4817523a4c37d13d2935eef58fe83cebe64c6e7684018154482ee3e51538e7a5724179a2b280c0 SHA512 c7150c0cc056869a600cb440f6cd68801d4032d401192e156101cdf82484ba9b3a03649a2c0569c42c396b653517ad19ec841c3baab067709b4736bcc15e9be6
+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-python-v3.0.0_beta10-prism.tar.gz 10658021 BLAKE2B 930259e5e1b967ca056804ede3f40d40b57602640d8ae308cc466f38c10eacb95dfb639309ea0b3d2a79fb6c0da6f4cc9dedae08f9a356a4c52ff4bf458d193d SHA512 60c8cb768cb18099c2f9384fd80ff34e2e2511b56433ca0aae02f4be949c2ac9ab72ea879c53aa1e7aaae284afe5547abb909dc733274d50154179a174429b53
diff --git a/dev-python/cloudflare/cloudflare-3.0.1.ebuild b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
new file mode 100644
index 000000000..735c52bb8
--- /dev/null
+++ b/dev-python/cloudflare/cloudflare-3.0.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517="hatchling"
+inherit distutils-r1
+DESCRIPTION="Python wrapper for the Cloudflare v4 API"
+HOMEPAGE="https://pypi.org/project/cloudflare/"
+if [ "${PV}" == 9999 ]; then
+ EGIT_REPO_URI="https://github.com/cloudflare/cloudflare-python"
+ inherit git-r3
+else
+ MYPV=$(ver_rs 3 -)
+ MYPV=${MYPV/beta/beta.}
+ MYPN="cloudflare-python"
+ SRC_URI="https://github.com/cloudflare/cloudflare-python/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.gh.tar.gz
+ test? ( https://github.com/Phoenix591/${MYPN}/releases/download/${PV}/${MYPN}-${PV}-prism.tar.gz )"
+ #Prism archive generated by workflow
+ # https://github.com/Phoenix591/cloudflare-python/blob/v3.0.0_beta10/.github/workflows/test-tar.yml
+ S="${WORKDIR}/${MYPN}-${MYPV}"
+ KEYWORDS="~amd64 ~arm64"
+fi
+LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )"
+# nodejs package and deps used to test
+SLOT="3"
+RDEPEND=" ${DEPEND}
+ >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.7.0[${PYTHON_USEDEP}]
+ >=dev-python/anyio-4.3.0[${PYTHON_USEDEP}]
+ >=dev-python/distro-1.7.0[${PYTHON_USEDEP}]
+ >=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}]
+ "
+
+BDEPEND="test? (
+ >=net-libs/nodejs-18.20.1
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/time-machine[${PYTHON_USEDEP}]
+ dev-python/dirty-equals[${PYTHON_USEDEP}]
+ dev-python/respx[${PYTHON_USEDEP}]
+ ${RDEPEND}
+)"
+
+distutils_enable_tests pytest
+RESTRICT="mirror" #mirror restricted only because overlay
+RESTRICT+=" !test? ( test )"
+
+src_unpack() {
+ unpack "${P}.gh.tar.gz"
+ use test && cd "${S}" && unpack "cloudflare-python-${PV}-prism.tar.gz"
+}
+
+#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() {
+ # these 2 tests fail in an ebuild environment for some reason
+ # help appreciated
+ local EPYTEST_DESELECT=(
+ tests/test_client.py::TestCloudflare::test_validate_headers
+ tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
+
+ epytest
+}
+
+src_test() {
+ # Run prism mock api server, this is what needs nodejs
+ node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
+ "cloudflare-spec.yml" >prism.log &
+ local MOCK_PID=$!
+ # Wait for server to come online
+ echo -n "Waiting for mockserver"
+ while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
+ echo -n "."
+ sleep 0.5
+ done
+ if grep -q "✖ fatal" prism.log; then
+ die "Prism mock server failed"
+ fi
+ distutils-r1_src_test
+ kill "${MOCK_PID}"
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-19 6:20 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-19 6:20 UTC (permalink / raw
To: gentoo-commits
commit: 59bbfc30df2c59cf48c2e688aa4415006a814239
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 19 06:19:25 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jun 19 06:19:25 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=59bbfc30
dev-python/cloudflare: cleanup test server
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild b/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
index e9b2842da..eb7c347b8 100644
--- a/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
+++ b/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
@@ -77,6 +77,7 @@ src_test() {
# Run prism mock api server, this is what needs nodejs
node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
"cloudflare-spec.yml" >prism.log &
+ local MOCK_PID=$!
# Wait for server to come online
echo -n "Waiting for mockserver"
while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
@@ -87,4 +88,5 @@ src_test() {
die "Prism mock server failed"
fi
distutils-r1_src_test
+ kill "${MOCK_PID}"
}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-06-19 5:07 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-06-19 5:07 UTC (permalink / raw
To: gentoo-commits
commit: 7d8005c03542f78833c48741d7220c2fbf6733c8
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Wed Jun 19 05:03:24 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Wed Jun 19 05:05:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d8005c0
dev-python/cloudflare: add 3.0.0_beta10
Cloudflare 3 changed the case on the module so it can coexist with 2
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 2 +
.../cloudflare/cloudflare-3.0.0_beta10.ebuild | 90 ++++++++++++++++++++++
2 files changed, 92 insertions(+)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
index 84a9ae7ab..d8d975fef 100644
--- a/dev-python/cloudflare/Manifest
+++ b/dev-python/cloudflare/Manifest
@@ -1,2 +1,4 @@
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.0_beta10.gh.tar.gz 1445435 BLAKE2B 1717f36194ce5e8a292f4026463d9b05b12808ee2c8fbbae7d4817523a4c37d13d2935eef58fe83cebe64c6e7684018154482ee3e51538e7a5724179a2b280c0 SHA512 c7150c0cc056869a600cb440f6cd68801d4032d401192e156101cdf82484ba9b3a03649a2c0569c42c396b653517ad19ec841c3baab067709b4736bcc15e9be6
+DIST cloudflare-python-v3.0.0_beta10-prism.tar.gz 10658021 BLAKE2B 930259e5e1b967ca056804ede3f40d40b57602640d8ae308cc466f38c10eacb95dfb639309ea0b3d2a79fb6c0da6f4cc9dedae08f9a356a4c52ff4bf458d193d SHA512 60c8cb768cb18099c2f9384fd80ff34e2e2511b56433ca0aae02f4be949c2ac9ab72ea879c53aa1e7aaae284afe5547abb909dc733274d50154179a174429b53
diff --git a/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild b/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
new file mode 100644
index 000000000..e9b2842da
--- /dev/null
+++ b/dev-python/cloudflare/cloudflare-3.0.0_beta10.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..12} )
+DISTUTILS_USE_PEP517="hatchling"
+inherit distutils-r1
+DESCRIPTION="Python wrapper for the Cloudflare v4 API"
+HOMEPAGE="https://pypi.org/project/cloudflare/"
+if [ "${PV}" == 9999 ]; then
+ EGIT_REPO_URI="https://github.com/cloudflare/cloudflare-python"
+ inherit git-r3
+else
+ MYPV=$(ver_rs 3 -)
+ MYPV=${MYPV/beta/beta.}
+ MYPN="cloudflare-python"
+ SRC_URI="https://github.com/cloudflare/cloudflare-python/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.gh.tar.gz
+ test? ( https://github.com/Phoenix591/${MYPN}/releases/download/v${PV}/${MYPN}-v${PV}-prism.tar.gz )"
+ #Prism archive generated by workflow
+ # https://github.com/Phoenix591/cloudflare-python/blob/v3.0.0_beta10/.github/workflows/test-tar.yml
+ S="${WORKDIR}/${MYPN}-${MYPV}"
+ KEYWORDS="~amd64 ~arm64"
+fi
+LICENSE="MIT test? ( ISC Apache-2.0 MIT BSD CC0-1.0 0BSD )"
+# nodejs package and deps used to test
+SLOT="3"
+RDEPEND=" ${DEPEND}
+ >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.7.0[${PYTHON_USEDEP}]
+ >=dev-python/anyio-4.3.0[${PYTHON_USEDEP}]
+ >=dev-python/distro-1.7.0[${PYTHON_USEDEP}]
+ >=dev-python/sniffio-1.3.1[${PYTHON_USEDEP}]
+ "
+
+BDEPEND="test? (
+ >=net-libs/nodejs-18.20.1
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/time-machine[${PYTHON_USEDEP}]
+ dev-python/dirty-equals[${PYTHON_USEDEP}]
+ dev-python/respx[${PYTHON_USEDEP}]
+ ${RDEPEND}
+)"
+
+distutils_enable_tests pytest
+RESTRICT="mirror" #mirror restricted only because overlay
+RESTRICT+=" !test? ( test )"
+
+src_unpack() {
+ unpack "${P}.gh.tar.gz"
+ use test && cd "${S}" && unpack "cloudflare-python-v${PV}-prism.tar.gz"
+}
+
+#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() {
+ # these 2 tests fail in an ebuild environment for some reason
+ # help appreciated
+ local EPYTEST_DESELECT=(
+ tests/test_client.py::TestCloudflare::test_validate_headers
+ tests/test_client.py::TestAsyncCloudflare::test_validate_headers )
+
+ epytest
+}
+
+src_test() {
+ # Run prism mock api server, this is what needs nodejs
+ node --no-warnings node_modules/@stoplight/prism-cli/dist/index.js mock \
+ "cloudflare-spec.yml" >prism.log &
+ # Wait for server to come online
+ echo -n "Waiting for mockserver"
+ while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
+ echo -n "."
+ sleep 0.5
+ done
+ if grep -q "✖ fatal" prism.log; then
+ die "Prism mock server failed"
+ fi
+ distutils-r1_src_test
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-04-30 0:20 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-04-30 0:20 UTC (permalink / raw
To: gentoo-commits
commit: 87a7c32ad4ad1052868f0638334bc4ce70796b88
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Tue Apr 30 00:19:46 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Tue Apr 30 00:19:46 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=87a7c32a
dev-python/cloudflare: add 2.19.4
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 1 +
dev-python/cloudflare/cloudflare-2.19.4.ebuild | 70 ++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
index 32f976d4d6..84a9ae7abf 100644
--- a/dev-python/cloudflare/Manifest
+++ b/dev-python/cloudflare/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-python/cloudflare/cloudflare-2.19.4.ebuild b/dev-python/cloudflare/cloudflare-2.19.4.ebuild
new file mode 100644
index 0000000000..c4a3c1cb13
--- /dev/null
+++ b/dev-python/cloudflare/cloudflare-2.19.4.ebuild
@@ -0,0 +1,70 @@
+# 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
+}
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-04-07 22:25 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-04-07 22:25 UTC (permalink / raw
To: gentoo-commits
commit: bca9a61e3fc87868b364f31cc363d08a85b6ad48
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Sun Apr 7 20:55:53 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Sun Apr 7 20:59:38 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bca9a61e
dev-python/cloudflare: adjust metadata doctype to https
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/metadata.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/cloudflare/metadata.xml b/dev-python/cloudflare/metadata.xml
index 3373ff5e43..f6a3df5065 100644
--- a/dev-python/cloudflare/metadata.xml
+++ b/dev-python/cloudflare/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>kcelbert@gmail.com</email>
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/
@ 2024-04-06 10:13 Kyle Elbert
0 siblings, 0 replies; 13+ messages in thread
From: Kyle Elbert @ 2024-04-06 10:13 UTC (permalink / raw
To: gentoo-commits
commit: 416eae106eeaf48567b061d3ba4f5e66cca9602b
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
AuthorDate: Sat Apr 6 10:09:41 2024 +0000
Commit: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
CommitDate: Sat Apr 6 10:11:41 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=416eae10
dev-python/cloudflare: new package, add 2.19.2
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
dev-python/cloudflare/Manifest | 1 +
dev-python/cloudflare/cloudflare-2.19.2.ebuild | 68 ++++++++++++++++++++++++++
dev-python/cloudflare/metadata.xml | 12 +++++
3 files changed, 81 insertions(+)
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
new file mode 100644
index 0000000000..32f976d4d6
--- /dev/null
+++ b/dev-python/cloudflare/Manifest
@@ -0,0 +1 @@
+DIST cloudflare-2.19.2.gh.tar.gz 145051 BLAKE2B cd7c9d9352b055b115af443341dcc4d0a446aaf1ac7b7f8030dce0ff19da185b1effc9a679b8018920ade98cafaaf599af8aea8c57a924e59eb40670a3854b70 SHA512 eac9601f9cb9ea5dc140e48fb0f0e042396f6a7ec354f18b815d6c51094799dc3f25e1e69e78f87ec5c612f4304d15f779090962a8f96282d9b2fe8a9abfb690
diff --git a/dev-python/cloudflare/cloudflare-2.19.2.ebuild b/dev-python/cloudflare/cloudflare-2.19.2.ebuild
new file mode 100644
index 0000000000..a78d730013
--- /dev/null
+++ b/dev-python/cloudflare/cloudflare-2.19.2.ebuild
@@ -0,0 +1,68 @@
+# 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
+
+ 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
+}
diff --git a/dev-python/cloudflare/metadata.xml b/dev-python/cloudflare/metadata.xml
new file mode 100644
index 0000000000..3373ff5e43
--- /dev/null
+++ b/dev-python/cloudflare/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kcelbert@gmail.com</email>
+ <name>Kyle Elbert</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cloudflare/python-cloudflare</remote-id>
+ <remote-id type="pypi">cloudflare</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 13+ messages in thread
end of thread, other threads:[~2024-07-17 6:30 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-09 20:39 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/cloudflare/ Kyle Elbert
-- strict thread matches above, loose matches on Subject: below --
2024-07-17 6:30 Kyle Elbert
2024-06-26 12:59 Kyle Elbert
2024-06-26 10:56 Kyle Elbert
2024-06-26 10:29 Kyle Elbert
2024-06-25 18:44 Kyle Elbert
2024-06-25 0:41 Kyle Elbert
2024-06-25 0:41 Kyle Elbert
2024-06-19 6:20 Kyle Elbert
2024-06-19 5:07 Kyle Elbert
2024-04-30 0:20 Kyle Elbert
2024-04-07 22:25 Kyle Elbert
2024-04-06 10:13 Kyle Elbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox