summaryrefslogtreecommitdiff
path: root/dev-python/falcon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-11 19:55:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-11 19:55:43 +0100
commit185fa19bbf68a4d4dca534d2b46729207a177f16 (patch)
treea8a537b82fda83a0799c2ca9887f212558363aa7 /dev-python/falcon
parentc8fd0d84af0bfd1949542adc2cbb735b1d28f9ed (diff)
gentoo resync : 11.05.2021
Diffstat (limited to 'dev-python/falcon')
-rw-r--r--dev-python/falcon/Manifest4
-rw-r--r--dev-python/falcon/falcon-3.0.1.ebuild51
-rw-r--r--dev-python/falcon/metadata.xml5
3 files changed, 58 insertions, 2 deletions
diff --git a/dev-python/falcon/Manifest b/dev-python/falcon/Manifest
index 25c7b145c35c..4714afa66921 100644
--- a/dev-python/falcon/Manifest
+++ b/dev-python/falcon/Manifest
@@ -1,3 +1,5 @@
DIST falcon-2.0.0.tar.gz 1075333 BLAKE2B 338e0b2474d743171fb0bc9dc3a05da428e6d46fc25e7cf1e978f799ed70e76bf265f32ba2cdf16d6eec8ea03b7b6111f70aa5b8f59141b7029d8ba9b03cd0d1 SHA512 d5365f91eb312cd058773d0a3809b5d8631acc188b9ee884e7c7db35664138608998f397d3fd831c568cafaf261cca2734b9dc7fb60590062e316ad1dbc74614
+DIST falcon-3.0.1.tar.gz 1300689 BLAKE2B 76dd59d0274cc2e78052b800e6e5b4c4244e1f5e47169a424882cda5bb59c38cd69c1c0942d506867728da9ddaf5d35b88195a1b003ca5f66549248293b7006d SHA512 c6a5763264b497979129df26d83a04323f53861b6d453a2b642d22208d0dad2ec1fcb88b13a53c2cb2b2988a1c0d19b94021099b458e23d640984b4d03880edc
EBUILD falcon-2.0.0.ebuild 1123 BLAKE2B e9bd9c392d0e1acf98c5b70d51491ec351dc5238ef745feac774af71fcdbbaec4f31da7251fb9053b3ba7d10734882b8f390fcec86c6ee155f251573004e9022 SHA512 8697a1835ee097791f460d8c5868c8448c007cba38bedfada1c9ee3f781aee32832157c06990c29bcd9c1c96b36fa2fedb11149f5b7cb83d4553a6b3666a412d
-MISC metadata.xml 369 BLAKE2B 06dfa8b04b07cb3cf23e776ac3fd31280a5ae39f4497e95216f83bb1a24c087354e7958215b2c05e0c5eb702bf4b706ffa3fd8d3d389f6a77cdaadef3f3b8165 SHA512 063721ee00983c17be24d047b93faeb75ec901d45f6888564ce11c6b9e7e097bdcca92c25213454a5e8949c20206bde1a906c74eefc6b0f7e562e4369465b8e4
+EBUILD falcon-3.0.1.ebuild 1287 BLAKE2B ff20935a0b2696dbd74822fab2fd94476a7dc0a9d082ee462b5f421812bdf89bca61876e6da8289a4fc537168cac1aea71d39d96b3f75c41e0c9c6f72f4e9e51 SHA512 1e71c8f554ec7f42f28b1b95ef3cbe768be6dbbc60321c16caacdbd64c67a207fa599960801a6a44f7036a5faa2bf8ed217604a0a35ba8e5aa142d4deddb9ed6
+MISC metadata.xml 442 BLAKE2B c89b3149da6cba7ac1d4b270f18048ab3aaec88b6f08f6d1fc35a3ef503c1557ac2902638741a6beec17f8e7d1ae0ec475de8e2e5c20fcbb1e55f1733e18ef14 SHA512 1420781016e746802d1f3bc3f9f0cf33f1506d1326a3ddf21a1da263d9fa3d8f8d271ce3241e3494519723a3befc157030e90a9d82931efba715be66e71f6fc3
diff --git a/dev-python/falcon/falcon-3.0.1.ebuild b/dev-python/falcon/falcon-3.0.1.ebuild
new file mode 100644
index 000000000000..5c8184be6612
--- /dev/null
+++ b/dev-python/falcon/falcon-3.0.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+DESCRIPTION="A supersonic micro-framework for building cloud APIs"
+HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/"
+SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/python-mimeparse[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ test? (
+ dev-python/aiofiles[${PYTHON_USEDEP}]
+ dev-python/cbor2[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/uvicorn[${PYTHON_USEDEP}]
+ dev-python/websockets[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # do not install 'examples'
+ sed -i -e "s:'tests':'examples', &:" setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local deselect=(
+ # mujson is unpackaged, test-only dep
+ --ignore tests/test_media_handlers.py
+ )
+
+ cp -r tests "${BUILD_DIR}" || die
+ cd "${BUILD_DIR}" || die
+ epytest tests "${deselect[@]}"
+}
diff --git a/dev-python/falcon/metadata.xml b/dev-python/falcon/metadata.xml
index eaf3015e2fca..a3ab6baa9537 100644
--- a/dev-python/falcon/metadata.xml
+++ b/dev-python/falcon/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
<use>
<flag name="cython">Build cython-based python modules</flag>
</use>