diff --git a/README.md b/README.md index 2b9f3044f..7ad63e071 100644 --- a/README.md +++ b/README.md @@ -573,12 +573,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1522 Ebuilds in total, 1515 of them have in total 1523 (34 different) licenses assigned. +There are 1523 Ebuilds in total, 1516 of them have in total 1524 (34 different) licenses assigned. |License| Ebuilds using it| |-------|-----| |MIT|882| -|Apache-2.0|313| +|Apache-2.0|314| |GPL-3|97| |BSD|88| |LGPL-3|23| diff --git a/dev-python/tornado/Manifest b/dev-python/tornado/Manifest new file mode 100644 index 000000000..8e7a20d5c --- /dev/null +++ b/dev-python/tornado/Manifest @@ -0,0 +1,3 @@ +DIST tornado-6.1.tar.gz 497359 BLAKE2B ed5981dec5cca962f907f97b7f906c1eef40d2b2b6d6cc16a21bd0a0a91ee58a60bea84b7ceeeff30b3462d707c56a5062c71d4ac8f25ca6a306ded6c6f072c5 SHA512 0ec1db1fad911182bda547c177a18b107b906cf66576443069e2b986cf041b3d4ebe08e5a168aa5cd3b56547f32f8b384bacaf74db89f582951d7b610b7494e8 +EBUILD tornado-6.1-r1.ebuild 1634 BLAKE2B bbf34c096b3e9fe87c57e1abdfe19978430fe383f644cdeaad4fd3e968cf5c32772dab4b88af84564b9f5ae8d2b1c3469e0ded550c12bd97de019619dad9517e SHA512 3aaddc7f5920d9060b854381e98cd0ada63148345604fc648735c5acc5846aa098c353b6d7a5cf08022fdd4e4e60c401ae0b612744bea337a530019d0011709b +MISC metadata.xml 381 BLAKE2B 96d5942b11b6364eeac2248f6e92a9e7a54094ba2b6e9ef966be4143e1fa01fa0c417027d33a71c51bb094b905b9ff79e05107e1a9debb4b1ef932ba11fd8565 SHA512 cd4db13e0c6a9cf8b3c788c53dc5ecd0dce2cf783e7b2d67dba71299d1c6a3d1dd2c2a76c0d69816ab0da4ca23f831613323c55864fd858690c605da5426bf60 diff --git a/dev-python/tornado/metadata.xml b/dev-python/tornado/metadata.xml new file mode 100644 index 000000000..990b39b88 --- /dev/null +++ b/dev-python/tornado/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + tornado + tornadoweb/tornado + + diff --git a/dev-python/tornado/tornado-6.1-r1.ebuild b/dev-python/tornado/tornado-6.1-r1.ebuild new file mode 100644 index 000000000..a41c577d4 --- /dev/null +++ b/dev-python/tornado/tornado-6.1-r1.ebuild @@ -0,0 +1,68 @@ +# 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_{8..11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python web framework and asynchronous networking library" +HOMEPAGE=" + https://www.tornadoweb.org/ + https://github.com/tornadoweb/tornado/ + https://pypi.org/project/tornado/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" +IUSE="examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pycurl-7.19.3.1[${PYTHON_USEDEP}] + >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + ) +" + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/sphinxcontrib-asyncio + +src_prepare() { + # Disable deprecation-warnings-as-errors because tornado has a lot of stuff deprecated in 3.10 + sed 's/warnings.filterwarnings("error", category=DeprecationWarning, module=r"tornado\\..*")//' \ + -i tornado/test/runtests.py || die + # broken upstream + sed -i -e 's:test_multi_line_headers:_&:' \ + tornado/test/httpclient_test.py || die + # network-sandbox? ipv6? + sed -i -e 's:test_localhost:_&:' \ + tornado/test/netutil_test.py || die + + distutils-r1_src_prepare +} + +python_test() { + local -x ASYNC_TEST_TIMEOUT=60 + cd "${T}" || die + "${EPYTHON}" -m tornado.test.runtests --verbose || + die "tests failed under ${EPYTHON}" +} + +python_install_all() { + if use examples; then + docinto examples + dodoc -r demos/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +}