diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-11-20 10:50:27 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-11-20 10:50:27 +0000 |
| commit | 5d64687a46bb4b74f5c8cda59376b2f35524c8a3 (patch) | |
| tree | 25a1e35667ed521a1511ee993352d43077dafa95 /dev-python/cheroot/cheroot-9.0.0.ebuild | |
| parent | f94ff7b18f0b281cf5109b87ea78e7e789f185ab (diff) | |
| download | baldeagleos-repo-5d64687a46bb4b74f5c8cda59376b2f35524c8a3.tar.gz baldeagleos-repo-5d64687a46bb4b74f5c8cda59376b2f35524c8a3.tar.xz baldeagleos-repo-5d64687a46bb4b74f5c8cda59376b2f35524c8a3.zip | |
Adding metadata
Diffstat (limited to 'dev-python/cheroot/cheroot-9.0.0.ebuild')
| -rw-r--r-- | dev-python/cheroot/cheroot-9.0.0.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/cheroot/cheroot-9.0.0.ebuild b/dev-python/cheroot/cheroot-9.0.0.ebuild new file mode 100644 index 000000000000..2379858d8339 --- /dev/null +++ b/dev-python/cheroot/cheroot-9.0.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="High-performance, pure-Python HTTP server used by CherryPy" +HOMEPAGE=" + https://cherrypy.dev/ + https://pypi.org/project/cheroot/ + https://github.com/cherrypy/cheroot/ +" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test-rust" + +RDEPEND=" + >=dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/more-itertools-2.6[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/jaraco-context[${PYTHON_USEDEP}] + dev-python/jaraco-text[${PYTHON_USEDEP}] + dev-python/portend[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] + dev-python/requests-toolbelt[${PYTHON_USEDEP}] + dev-python/requests-unixsocket[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + test-rust? ( + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -e '/--cov/d' \ + -e '/--testmon/d' \ + -e '/--numproc/d' \ + -i pytest.ini || die + + # broken + sed -i -e '/False.*localhost/d' cheroot/test/test_ssl.py || die + # pypytools is py2 stuff + sed -i -e '/pypytools/d' cheroot/test/test_server.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local EPYTEST_DESELECT=( + # requires pypytools, see above + cheroot/test/test_server.py::test_high_number_of_file_descriptors + ) + + local EPYTEST_IGNORE=() + if ! has_version "dev-python/pyopenssl[${PYTHON_USEDEP}]" || + ! has_version "dev-python/trustme[${PYTHON_USEDEP}]" + then + EPYTEST_IGNORE+=( + cheroot/test/test_ssl.py + ) + fi + + epytest -p no:flaky +} |
