summaryrefslogtreecommitdiff
path: root/dev-python/cloudflare
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/cloudflare
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-python/cloudflare')
-rw-r--r--dev-python/cloudflare/Manifest5
-rw-r--r--dev-python/cloudflare/cloudflare-2.19.4.ebuild74
-rw-r--r--dev-python/cloudflare/cloudflare-4.3.1.ebuild109
-rw-r--r--dev-python/cloudflare/cloudflare-5.1.0.ebuild90
-rw-r--r--dev-python/cloudflare/metadata.xml12
5 files changed, 0 insertions, 290 deletions
diff --git a/dev-python/cloudflare/Manifest b/dev-python/cloudflare/Manifest
deleted file mode 100644
index 518b982fee57..000000000000
--- a/dev-python/cloudflare/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-DIST cloudflare-2.19.4.gh.tar.gz 151397 BLAKE2B c91c95f52314c5177d823ef8f827ea2f76f6cc703260449aea12d54c1b77d061feca15d4bb845f84cfb4fd80789e5064e54d7530daf546d54d17054b9e0b4fda SHA512 8ae11e73760c57b610abfe5e2c8fdc83c2e0b9e07340884925ec9ac3bf5b40b4edf39b2b8ce7330538369d7573146a2ddac195efb0efb4ff657f75fdacb31aed
-DIST cloudflare-4.3.1.gh.tar.gz 2025113 BLAKE2B 05020324460b8857d21b2aac16e4c7fe316d5ad0bc0999a4c67e276d258cfd2cc4c85aa0fe82ed67931a2b02a3b90d39d9fd04eb3a6f8647a750bafdbe92e8a7 SHA512 36865ab8e88b2eaa3e0a5ad353db45bce55f166a96860f044bd88750de6a08a489e92492c721972be5582de551f31ba154ee6dccd386ca1b73c10864d185539a
-DIST cloudflare-python-4.3.1-prism.tar.gz 10857296 BLAKE2B b22423b4cc641243517de470c86597a13faab5aa3caa3bc6ffa2a1bcd53ae72ffdebc0eb7f693911ab4b36adf46afb8216bcb9e76085f85147b866c532147757 SHA512 5df269b007905518c5fa500d21ebabc3ec5ee06160a1454ba080c1dd0feb6c7e65a8f3684ec243e15eb28c7e4ac91c2861f83d5314576985501ae64645b70e94
-DIST cloudflare-python-5.1.0-prism.tar.gz 12189459 BLAKE2B 66df6d17cb7501fa22260a61c9706dae562347af7fda6bcecb6d23b931601f135a694faed54faa4e3831c0c23edb9068d06e84ee2f7e41bf0f0c108a779887fd SHA512 4c56fde917697dd548715ca6735d3b7eef0f59b98e0f4381484248d766e785a6d1733eb3b1a94151bebb901b9b3d04531092bcce77ea805d135357bf4db69043
-DIST cloudflare-python-5.1.0.gh.tar.gz 2948037 BLAKE2B 0579a61085ddce04a491a0182411ad9f3772cd47b8a9a88f0d8dabcbee0e4cf223bc5374c2ba9d86c42d3e88e645ea50bf12ce9714b526af0a5ccf0d16f860cb SHA512 10ca9735b79d65c927fa61a0d66094e5e4020487def1e70a16676337d76e357ae84bc6abf0e274197f008818add3a026234e28492783ddd3ff9090cf2b7ee74a
diff --git a/dev-python/cloudflare/cloudflare-2.19.4.ebuild b/dev-python/cloudflare/cloudflare-2.19.4.ebuild
deleted file mode 100644
index 0a90bf91cee2..000000000000
--- a/dev-python/cloudflare/cloudflare-2.19.4.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{13..14} )
-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="2"
-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.
-# currently has 2 failing tests that can't seem to be deselected :(
-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 "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'
- 'test_api_dump.py::test_api_from_openapi'
- 'test_dns_records.py::test_dns_records_port_invalid'
- )
- epytest
-}
diff --git a/dev-python/cloudflare/cloudflare-4.3.1.ebuild b/dev-python/cloudflare/cloudflare-4.3.1.ebuild
deleted file mode 100644
index d437ed3e160b..000000000000
--- a/dev-python/cloudflare/cloudflare-4.3.1.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{13..14} )
-# upstream doesn't yet officially claim 3.13 support but passes tests and works
-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/master/.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 module and deps used to test
-SLOT="0"
-RDEPEND=" ${DEPEND}
- >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
- >=dev-python/pydantic-2.9.2[${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}
-)"
-
-EPYTEST_XDIST=1
-distutils_enable_tests pytest
-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 )
- #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
- tests/test_client.py::TestAsyncCloudflare::test_get_platform
-)
- # Doesn't have authentication setup correctly, broken upstream too
- local EPYTEST_IGNORE=(
- tests/api_resources/cloudforce_one/threat_events/datasets/test_health.py
- tests/api_resources/radar/
-)
- epytest
-}
-
-src_test() {
- 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/@stainless-api/prism-cli/dist/index.js mock \
- "cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
- 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
- echo -n "." || die
- sleep 0.5
- done
- if grep -q "✖ fatal" prism.log; then
- die "Prism mock server failed"
- fi
-}
-stop_mock() {
- kill $(cat "${T}/mock.pid") || die
-}
diff --git a/dev-python/cloudflare/cloudflare-5.1.0.ebuild b/dev-python/cloudflare/cloudflare-5.1.0.ebuild
deleted file mode 100644
index dd30400e9fd0..000000000000
--- a/dev-python/cloudflare/cloudflare-5.1.0.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{13..14} )
-DISTUTILS_USE_PEP517="hatchling"
-inherit distutils-r1 eapi9-ver
-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
- RESTRICT="test"
-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 -> ${MYPN}-${MYPV}.gh.tar.gz
- test? ( https://github.com/Phoenix591/${MYPN}/releases/download/${MYPV}/${MYPN}-${MYPV}-prism.tar.gz )"
- #Prism archive generated by workflow
- # https://github.com/Phoenix591/cloudflare-python/blob/master/.github/workflows/test-tar.yml
- S="${WORKDIR}/${MYPN}-${MYPV}"
- KEYWORDS="~amd64 ~arm64"
-fi
-LICENSE="MIT"
-SLOT="0"
-RDEPEND=" ${DEPEND}
- >=dev-python/httpx-0.23.0[${PYTHON_USEDEP}]
- >=dev-python/pydantic-2.9.2[${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? (
- >=dev-python/httpx-aiohttp-0.1.9[${PYTHON_USEDEP}]
- >=net-libs/nodejs-18.20.1
- dev-python/time-machine[${PYTHON_USEDEP}]
- dev-python/dirty-equals[${PYTHON_USEDEP}]
- ${RDEPEND}
-)"
-EPYTEST_PLUGINS=( pytest-asyncio pytest-xdist respx )
-EPYTEST_DESELECT=(
- tests/test_client.py::TestCloudflare::test_validate_headers
- tests/test_client.py::TestAsyncCloudflare::test_validate_headers
-)
-
-distutils_enable_tests pytest
-RESTRICT+=" !test? ( test )"
-DOCS=( docs/migration-guides/v5.0.0-migration-guide.md )
-
-src_unpack() {
- unpack "${MYPN}-${MYPV}.gh.tar.gz"
- use test && cd "${S}" && unpack "cloudflare-python-${MYPV}-prism.tar.gz"
-}
-
-src_test() {
- 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/@stainless-api/prism-cli/dist/index.js mock \
- "cloudflare-spec.yml" >prism.log || die "Failed starting prism" &
- echo $! >"${T}/mock.pid" || die
- # Wait for server to come online
- einfo "Waiting for mockserver"
- while ! grep -q "✖ fatal\|Prism is listening" "prism.log" ; do
- sleep 0.5
- done
- if grep -q "✖ fatal" prism.log; then
- die "Prism mock server failed"
- fi
-}
-stop_mock() {
- kill $(<"${T}/mock.pid") || die
-}
-
-pkg_postinst() {
- if ver_replacing -lt "5.0.0_beta1"; then
- elog "Cloudflare 5 has several breaking changes"
- elog "See /usr/share/doc/${P}/docs/v5.0.0-migration-guide.md"
- elog "It also includes a new optional dependency on httpx-aiohttp"
- elog "Check the README for details"
- fi
-}
diff --git a/dev-python/cloudflare/metadata.xml b/dev-python/cloudflare/metadata.xml
deleted file mode 100644
index f6a3df5065ec..000000000000
--- a/dev-python/cloudflare/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://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>