dev-python/{gssapi,httpcore,httpx,uvicorn}: moved to ::gentoo

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-02-24 19:47:19 +01:00
parent 9434b50817
commit 8c501e2d12
15 changed files with 0 additions and 513 deletions

View File

@@ -1 +0,0 @@
DIST python-gssapi-1.6.12.tar.gz 11520426 BLAKE2B 1e5be34c15e806ad1bb8d1093850489ce0962d828a50690d3020ea7b7a614eca5cdfe220ab6c9b23964d10075e607143b0804db842249ee003f961db608da9e2 SHA512 3626521250f320f01bb8fe79a60c79e51f8e306fd16d90a281abac1b88cfce65fec5dd67c4e8396a5832204ba7478a2c4bc6c5c2216038b99d2cc27cfd2e26b0

View File

@@ -1,40 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7,8,9} )
DOCS_BUILDER="sphinx"
DOCS_DIR="docs/source"
DOCS_DEPEND="
>=dev-python/recommonmark-0.4.0
>dev-python/sphinx_rtd_theme-0.2.5
"
inherit distutils-r1 docs
DESCRIPTION="A Python interface to RFC 2743/2744 (plus common extensions)"
HOMEPAGE="
https://github.com/pythongssapi/python-gssapi
https://pypi.org/project/gssapi
"
SRC_URI="https://github.com/pythongssapi/python-${PN}/releases/download/v${PV}/python-${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#help wanted
RESTRICT="test"
S="${WORKDIR}/python-${P}"
RDEPEND="dev-python/decorator[${PYTHON_USEDEP}]"
BDEPEND="${RDEPEND}
dev-python/cython[${PYTHON_USEDEP}]
test? (
dev-python/k5test[${PYTHON_USEDEP}]
dev-python/parameterized[${PYTHON_USEDEP}]
)
"
distutils_enable_tests --install nose

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/pythongssapi/python-gssapi/issues</bugs-to>
<maintainer>
<email>rharwood@redhat.com</email>
<name>Robbie Harwood</name>
</maintainer>
<remote-id type="pypi">gssapi</remote-id>
<remote-id type="github">pythongssapi/python-gssapi</remote-id>
</upstream>
<longdescription lang="en">
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should also be useable with other GSSAPI mechanisms.
</longdescription>
</pkgmetadata>

View File

@@ -1,2 +0,0 @@
DIST httpcore-0.10.1.tar.gz 42164 BLAKE2B 939dac21235f56e0d39ee4cbe7dca9f686fb086598c35d5335532baaa4fb36e904f9cb9676ba8c412deb5f560a1b379d599993148fda11e74a18a37743613ee5 SHA512 1eddc62f0b2a0c48166de0d2f1717de7db2dd1e1ae959d07ed74e19e098fb5470c4a94348d33614226671870edf134288808aea332abb71f776bb733ff26053f
DIST httpcore-0.12.3.tar.gz 57587 BLAKE2B 3c0e7a210b21e54564c4c6077fadf66344b887662c71b05a1ad4a2c0224a4d703eccdf576d4443341176edee03b6776bfd49aaef2ea2f29f02614677e1dfad85 SHA512 b31535231dc2b6a5f1c9c0c538628f75360f04b4747b447ab0a7168ed32d0eabd463335c2f7fa782dcabb4cbc32891a2839ae50e0999d5a791c01b02533d38f0

View File

@@ -1,44 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs
DESCRIPTION="A minimal HTTP client"
HOMEPAGE="
https://github.com/encode/httpcore
https://pypi.org/project/httpcore
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# Temporary failure in name resolution
# requires masked mitmproxy
RESTRICT="test"
RDEPEND="
dev-python/h11[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -1,48 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs
DESCRIPTION="A minimal HTTP client"
HOMEPAGE="
https://github.com/encode/httpcore
https://pypi.org/project/httpcore
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# httpcore.ConnectError: [Errno 16] Device or resource busy
RESTRICT="test"
RDEPEND="
>=dev-python/curio-1.4[${PYTHON_USEDEP}]
<dev-python/h11-1[${PYTHON_USEDEP}]
>=dev-python/hyper-h2-3[${PYTHON_USEDEP}]
<dev-python/hyper-h2-5[${PYTHON_USEDEP}]
>=dev-python/sniffio-1[${PYTHON_USEDEP}]
<dev-python/sniffio-2[${PYTHON_USEDEP}]
>=dev-python/trio-0.17.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
>=dev-python/anyio-2.0.2[${PYTHON_USEDEP}]
>=dev-python/hypercorn-0.11.1[${PYTHON_USEDEP}]
>=dev-python/pproxy-2.3.7[${PYTHON_USEDEP}]
>=dev-python/pytest-trio-0.7.0[${PYTHON_USEDEP}]
>=dev-python/trustme-0.6.0[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
The HTTP Core package provides a minimal low-level HTTP client, which does one thing only. Sending HTTP requests.
It does not provide any high level model abstractions over the API, does not handle redirects, multipart uploads, building authentication headers, transparent HTTP caching, URL parsing, session cookie handling, content or charset decoding, handling JSON, environment based configuration defaults, or any of that Jazz.
Some things HTTP Core does do:
Sending HTTP requests.
Provides both sync and async interfaces.
Supports HTTP/1.1 and HTTP/2.
Async backend support for asyncio and trio.
Automatic connection pooling.
HTTP(S) proxy support.
</longdescription>
<upstream>
<remote-id type="github">https://github.com/encode/httpcore</remote-id>
<remote-id type="pypi">httpcore</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,3 +0,0 @@
DIST httpx-0.11.1.tar.gz 177579 BLAKE2B a5722e997a79fd9b5c701a862abb4bf70458bf57057d2a9fb9a2dccdbbca2f4f54bf59e91437ed8ff452737a3b01d69dbf4efe3ef03d49e240bc5bf54e51ebea SHA512 4da80a0232092d2423fd95d4549df79d9885e6ce34af0480f1d5a4904c9ca0fdb725b600f603c482179ea3b7c6ee5b584a70b8c0722918ba28f1bcc5c48201ad
DIST httpx-0.13.3.tar.gz 176199 BLAKE2B d3a56c2386841909668e34eaa78d202f91ad900230b9d1d4254bfa08312312d020e081aea2839dbb57d85fa26ccfc3f093404801c4dd5c47051f3c9fd2746552 SHA512 54cdee16e8253c221c3298817ccf63a4a0d6755a86feea2aa5a2efe9af44eb1eb0a578b21f593fe28fceace17b0a0badb52a66965c35bf456ea57dd3b905ebbe
DIST httpx-0.16.1.tar.gz 965347 BLAKE2B a6c5bcdda595ffcfb824194564ebd93760a9180e60665a9540fc6a2822b1be4273b940fee61cb4b49c2d97a5f4d71b1caf32deddec18d2fb636465b3868aece4 SHA512 d76b2c94c655c187ab150f20b16906034574d017a67c4a06c456d55071434cc0ba7752bdceda86aa6b1a1fe9109fa11594e4ea679cd7d2a77898fb40fa5153d3

View File

@@ -1,71 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_7 )
inherit distutils-r1
DESCRIPTION="A next generation HTTP client for Python"
HOMEPAGE="
https://www.python-httpx.org
https://github.com/encode/httpx
https://pypi.org/project/httpx
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE="doc"
RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/hstspreload[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/h11[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]"
BDEPEND="doc? (
dev-python/mkdocs
dev-python/mkautodoc
dev-python/mkdocs-material )"
DEPEND="test? (
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/brotlipy[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
python_prepare_all() {
# do not depend on pytest-cov
sed -i -e '/addopts/d' setup.cfg || die
# requires internet connection
sed -i -e 's:test_start_tls_on_tcp_socket_stream:_&:' \
-e 's:test_start_tls_on_uds_socket_stream:_&:' \
tests/test_concurrency.py || die
sed -i -e 's:test_http2_live_request:_&:' \
tests/dispatch/test_http2.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
default
if use doc; then
mkdocs build || die "failed to make docs"
HTML_DOCS="site"
fi
}

View File

@@ -1,55 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs
DESCRIPTION="A next generation HTTP client for Python"
HOMEPAGE="
https://www.python-httpx.org
https://github.com/encode/httpx
https://pypi.org/project/httpx
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/hstspreload[${PYTHON_USEDEP}]
dev-python/httpcore[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/h11[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
"
DEPEND="test? (
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/brotlipy[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_prepare_all() {
# do not depend on pytest-cov
sed -i -e '/addopts/d' setup.cfg || die
distutils-r1_python_prepare_all
}

View File

@@ -1,61 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
DOCS_AUTODOC=1
inherit distutils-r1 docs
DESCRIPTION="A next generation HTTP client for Python"
HOMEPAGE="
https://www.python-httpx.org
https://github.com/encode/httpx
https://pypi.org/project/httpx
"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
# lots of these
# request() got an unexpected keyword argument 'ext'
RESTRICT="test"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/hstspreload[${PYTHON_USEDEP}]
~dev-python/httpcore-0.10.1[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/h11[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
"
DEPEND="test? (
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/brotlipy[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_prepare_all() {
# do not depend on pytest-cov
sed -i -e '/addopts/d' setup.cfg || die
distutils-r1_python_prepare_all
}

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<longdescription lang="en">
Features
HTTPX builds on the well-established usability of requests, and gives you:
A broadly requests-compatible API.
Standard synchronous interface, but with async support if you need it.
HTTP/1.1 and HTTP/2 support.
Ability to make requests directly to WSGI applications or ASGI applications.
Strict timeouts everywhere.
Fully type annotated.
99% test coverage.
Plus all the standard features of requests...
International Domains and URLs
Keep-Alive &amp; Connection Pooling
Sessions with Cookie Persistence
Browser-style SSL Verification
Basic/Digest Authentication
Elegant Key/Value Cookies
Automatic Decompression
Automatic Content Decoding
Unicode Response Bodies
Multipart File Uploads
HTTP(S) Proxy Support
Connection Timeouts
Streaming Downloads
.netrc Support
Chunked Requests
</longdescription>
<upstream>
<remote-id type="github">encode/httpx</remote-id>
<remote-id type="pypi">httpx</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1 +0,0 @@
DIST uvicorn-0.13.3.tar.gz 506306 BLAKE2B cd7d92a2c88ad00776eca3343e322c75207ea7948c5f3f27d91b241af826cdc597d05919acc33e5bdb37357cfb2fd0895cb2874a9cdaecaaa79b77e555110757 SHA512 c332f4a766e42a042068b2a7aa10dfde66b2a84a5c7101a0523d64c1883275597b17fa73fef54f0144f1b8612777e89867933582922ae0ec684fb0aa7090eca9

View File

@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrewammerlaan@riseup.net</email>
<name>Andrew Ammerlaan</name>
</maintainer>
<longdescription lang="en">
Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools.
Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.
Uvicorn currently supports HTTP/1.1 and WebSockets. Support for HTTP/2 is planned.
</longdescription>
<upstream>
<remote-id type="github">encode/uvicorn</remote-id>
<remote-id type="pypi">uvicorn</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,77 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
DOCS_BUILDER="mkdocs"
DOCS_DEPEND="dev-python/mkdocs-material"
inherit distutils-r1 docs optfeature
DESCRIPTION="The lightning-fast ASGI server"
HOMEPAGE="https://www.uvicorn.org/
https://github.com/encode/uvicorn"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
SLOT="0"
# lots of these
# 'AsyncConnectionPool' object has no attribute 'arequest'
RESTRICT="test"
RDEPEND="
>=dev-python/click-7[${PYTHON_USEDEP}]
<dev-python/click-8[${PYTHON_USEDEP}]
>=dev-python/h11-0.8[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_7)
"
BDEPEND="test? (
dev-python/cryptography[${PYTHON_USEDEP}]
>=dev-python/colorama-0.4[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
>=dev-python/python-dotenv-0.13[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
>=dev-python/uvloop-0.14.0[${PYTHON_USEDEP}]
>=dev-python/websockets-8.0[${PYTHON_USEDEP}]
<dev-python/websockets-9.0[${PYTHON_USEDEP}]
>=dev-python/httptools-0.1[${PYTHON_USEDEP}]
<dev-python/httptools-0.2[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
>=dev-python/watchgod-0.6[${PYTHON_USEDEP}]
dev-python/wsproto[${PYTHON_USEDEP}]
)"
distutils_enable_tests pytest
python_prepare_all() {
# do not install LICENSE to /usr/
sed -i -e '/data_files/d' setup.py || die
# Remove pytest-cov dep
sed -i -e '21,22d' setup.cfg || die
distutils-r1_python_prepare_all
}
pkg_postinst() {
optfeature "asyncio event loop on top of libuv" dev-python/uvloop
optfeature "websockets support using wsproto" dev-python/wsproto
optfeature "websockets support using websockets" dev-python/websockets
optfeature "httpstools package for http protocol" dev-python/httptools
optfeature "efficient debug reload" dev-python/watchgod
}
python_test() {
pytest -vv \
--deselect tests/protocols/test_http.py::test_supported_upgrade_request[H11Protocol] \
--deselect tests/protocols/test_http.py::test_supported_upgrade_request[HttpToolsProtocol] \
--deselect tests/protocols/test_websocket.py::test_invalid_upgrade[WSProtocol] \
|| die
}