From c8a46bc530508973f2e0b8c9f67b17e3cd63d002 Mon Sep 17 00:00:00 2001 From: "Andreas Billmeier (@Home/mbp)" Date: Wed, 28 Sep 2022 13:38:30 +0200 Subject: [PATCH] re-add tornado-6.1-r2 (from main), fix shellcheck --- README.md | 8 +-- www-servers/tornado/Manifest | 3 + www-servers/tornado/metadata.xml | 15 +++++ www-servers/tornado/tornado-6.1-r2.ebuild | 68 +++++++++++++++++++++++ 4 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 www-servers/tornado/Manifest create mode 100644 www-servers/tornado/metadata.xml create mode 100644 www-servers/tornado/tornado-6.1-r2.ebuild diff --git a/README.md b/README.md index 9d3c603cf..3460bffd6 100644 --- a/README.md +++ b/README.md @@ -523,12 +523,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 1907 Ebuilds in total, 1900 of them have in total 1912 (35 different) licenses assigned. +There are 1908 Ebuilds in total, 1901 of them have in total 1913 (35 different) licenses assigned. |License| Ebuilds using it| |-------|-----| |MIT|1148| -|Apache-2.0|364| +|Apache-2.0|365| |GPL-3|118| |BSD|104| |LGPL-3|29| @@ -563,9 +563,9 @@ There are 1907 Ebuilds in total, 1900 of them have in total 1912 (35 different) |CC-BY-NC-SA-4.0|1| |CC0-1.0|1| -(Last counted: 27/09/2022) +(Last counted: 28/09/2022) I did my best to keep these clean. If a valid license was published on PyPI, it has been automatically merged. Otherwise I took it from GitHub or alternatively from comments/files in the source. Sometimes these differed and have been not unique. All license strings are adjusted to the list in `/usr/portage/gentoo/licenses/`. Some packages do not have any license published. In this case, Authors have been asked for clarification, some did not respond. Following the [official Gentoo Guide](https://devmanual.gentoo.org/general-concepts/licenses/index.html), these then were added with an `all-rights-reserved` license and `RESTRICT="mirror"` was set. Find the appropriate licenses referenced in the Ebuild files and in the corresponding homepages or sources. A big thanks goes to Iris for reviewing this README. -Last updated: 27/09/2022 +Last updated: 28/09/2022 diff --git a/www-servers/tornado/Manifest b/www-servers/tornado/Manifest new file mode 100644 index 000000000..4de8e3921 --- /dev/null +++ b/www-servers/tornado/Manifest @@ -0,0 +1,3 @@ +DIST tornado-6.1.tar.gz 497359 BLAKE2B ed5981dec5cca962f907f97b7f906c1eef40d2b2b6d6cc16a21bd0a0a91ee58a60bea84b7ceeeff30b3462d707c56a5062c71d4ac8f25ca6a306ded6c6f072c5 SHA512 0ec1db1fad911182bda547c177a18b107b906cf66576443069e2b986cf041b3d4ebe08e5a168aa5cd3b56547f32f8b384bacaf74db89f582951d7b610b7494e8 +EBUILD tornado-6.1-r2.ebuild 1636 BLAKE2B aae1eee54e499d64fea3dfbe5879b3b90289b4e27ab877b92d5b3e0e365c9a85d86d3a1cff122e40618a73423084a845d95ae9469bafc3deb8ed8bf27b43eca9 SHA512 6cba52ec41085524deae31c8c831fa4a5a2f7833aa145ff15d9d931e53443408a125e8f438a0342fb8b73ae448adc09239fb73b6e1204dff581a00a4a4d2c9e0 +MISC metadata.xml 459 BLAKE2B 03f58b8ce5f6782e32fa8aec991d2771e795545a898d40f054bd3cdff98275c85da39eada76fefe51eea8658e4bf55a7c88a5f80d54a626f639c0811c0b8e7d4 SHA512 a8e58541152f55a4db33919bca89e1f0202197427877855f6f25441fa75d8bf4c3cdeaa2c089266b613afd4146332da694c18485521b026bbedd2920db55bea9 diff --git a/www-servers/tornado/metadata.xml b/www-servers/tornado/metadata.xml new file mode 100644 index 000000000..9dff889df --- /dev/null +++ b/www-servers/tornado/metadata.xml @@ -0,0 +1,15 @@ + + + + + b@edevau.net + Andreas Billmeier + + + tornado + + python-tornado@googlegroups.com + Facebook + + + diff --git a/www-servers/tornado/tornado-6.1-r2.ebuild b/www-servers/tornado/tornado-6.1-r2.ebuild new file mode 100644 index 000000000..bbf802f18 --- /dev/null +++ b/www-servers/tornado/tornado-6.1-r2.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 +}