Merge updates from master

This commit is contained in:
Repository mirror & CI
2021-05-30 16:04:57 +00:00
13 changed files with 24 additions and 146 deletions

View File

@@ -27,7 +27,7 @@ HOMEPAGE="https://adoptopenjdk.net"
LICENSE="GPL-2-with-classpath-exception"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
IUSE="alsa cups -gentoo-vm headless-awt source"
IUSE="alsa cups gentoo-vm headless-awt source"
RDEPEND="
media-libs/fontconfig:1.0

View File

@@ -3,7 +3,14 @@
EAPI=7
inherit meson
DOCS_BUILDER="sphinx"
DOCS_AUTODOC=0
DOCS_DIR="${S}/docs/source"
PYTHON_COMPAT=( python3_{7,8,9} )
inherit python-any-r1
inherit docs meson
if [[ ${PV} == *9999* ]]; then
inherit git-r3
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
LICENSE="MIT"
SLOT="0"
IUSE="doc"
BDEPEND="dev-util/meson
doc? ( dev-python/sphinx )"
src_configure() {
local emesonargs=(
"-Dwerror=false"
@@ -33,16 +35,5 @@ src_configure() {
src_compile() {
default
meson_src_compile
if use doc; then
einfo "Building documentation ..."
local doc_dir="${S}/docs"
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
sphinx-build -b html source build || die "Building documentation failed!"
fi
}
src_install() {
use doc && local HTML_DOCS=( "${S}/docs/build/." )
default
meson_src_install
docs_compile
}

View File

@@ -3,7 +3,14 @@
EAPI=7
inherit meson
DOCS_BUILDER="sphinx"
DOCS_AUTODOC=0
DOCS_DIR="${S}/docs/source"
PYTHON_COMPAT=( python3_{7,8,9} )
inherit python-any-r1
inherit docs meson
if [[ ${PV} == *9999* ]]; then
inherit git-r3
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm"
LICENSE="MIT"
SLOT="0"
IUSE="doc"
BDEPEND="dev-util/meson
doc? ( dev-python/sphinx )"
src_configure() {
local emesonargs=(
"-Dwerror=false"
@@ -33,16 +35,5 @@ src_configure() {
src_compile() {
default
meson_src_compile
if use doc; then
einfo "Building documentation ..."
local doc_dir="${S}/docs"
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
sphinx-build -b html source build || die "Building documentation failed!"
fi
}
src_install() {
use doc && local HTML_DOCS=( "${S}/docs/build/." )
default
meson_src_install
docs_compile
}

View File

@@ -1,2 +1 @@
DIST pytest-sanic-1.6.2.tar.gz 31480 BLAKE2B e579df1100bb83e95599f9d3e54892feef7186dd7a49375f618868ba3b1d73ac966224332e9751fe05b62e63cd31d2a2bed23d2e243fa75bc5445f9d85fd4a8e SHA512 d04e6dbfb11f6a348923e0683848da4cb243c3ba158906f1fc56c24d23a9f947e199c16a2d8769152e46acf5c9cc179361b87c646d95075fb499d58376dce941
DIST pytest-sanic-1.7.1.tar.gz 30888 BLAKE2B 24623e47fb05db9919cfd0b41468261697ac70c7bc3e47a3c6c86efadbddd3c80f2e6173eb109206472d0b639ecd20edd0cebb244bd96ed1d2ca10dd88924b5b SHA512 a55ffd1c878478bd42aad5dc023f83e880ead4fb8538a24d327bd0fb7f811e0d3679e49206835ee7f98ac0a02dedb05f6fa729252eab7972879c196c57e3f071

View File

@@ -1,36 +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} )
inherit distutils-r1
DESCRIPTION="a Pytest Plugin for Sanic"
HOMEPAGE="
https://pypi.python.org/pypi/pytest-sanic
https://github.com/yunstanford/pytest-sanic
"
SRC_URI="https://github.com/yunstanford/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/async_generator[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/sanic[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
# where is the conf.py file? make html can't find it either
#distutils_enable_sphinx docs
python_test() {
distutils_install_for_testing
pytest -vv || die "Tests failed with ${EPYTHON}"
}

View File

@@ -24,7 +24,6 @@ RDEPEND="
>=dev-python/httpx-0.15.4[${PYTHON_USEDEP}]
>=dev-python/pytest-5.2[${PYTHON_USEDEP}]
>=dev-python/websockets-8.1[${PYTHON_USEDEP}]
<dev-python/websockets-9.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}

View File

@@ -1,2 +1 @@
DIST sanic-20.9.1.tar.gz 214560 BLAKE2B 2df6127d9a4b0cc8fc60e2aafe47b4e10f1474b3bee5b3974265be8c5edcfd2f7fdccb4d2b3f977d2f51ff0a2d0dc33c2d120c7d858fae56d845f6b22261eb7e SHA512 4c19fa2731b98eeb843c272856a2e6a4d25817b29d490dfa9c7e4f086ca91b5a8f4c38488673029ca21d125858d6095f40a960284c487b2601bef2c1fdedca28
DIST sanic-21.3.4.tar.gz 234229 BLAKE2B a24941777099d5a09dd020a7f0a9fe39ae0ab89436fe27e2e4bbb418b684583002b9249e46438787d07bae6114ee1a0fd27e24e4e29983e8499f766f238e07d9 SHA512 15596f37b5389073d6a2b5e2d2bf5871d9a31ba29bf4e2eac9fb91df29e76035b02f7d892bb8edd5ffde75f05acdcebdb2c8f5ddf7224f40c5391c8f058f5c97

View File

@@ -1,64 +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} )
DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
DESCRIPTION="Async Python 3.6+ web server/framework | Build fast. Run fast."
HOMEPAGE="
https://pypi.python.org/pypi/sanic
https://github.com/huge-success/sanic
"
SRC_URI="https://github.com/huge-success/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
# lots of these
# ValueError: Exception during request: [AttributeError("'AsyncConnectionPool' object has no attribute 'arequest'")]
RESTRICT="test"
RDEPEND="
dev-python/aiofiles[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
>=dev-python/httptools-0.0.10[${PYTHON_USEDEP}]
dev-python/multidict[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
dev-python/uvloop[${PYTHON_USEDEP}]
>=dev-python/websockets-8.1[${PYTHON_USEDEP}]
<dev-python/websockets-9.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
test? (
dev-python/beautifulsoup[${PYTHON_USEDEP}]
>=dev-python/httpcore-0.3.0[${PYTHON_USEDEP}]
>=dev-python/pytest-5.2.1[${PYTHON_USEDEP}]
dev-python/pytest-benchmark[${PYTHON_USEDEP}]
dev-python/pytest-sanic[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
www-servers/gunicorn[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/docutils \
dev-python/pygments \
dev-python/sphinx_rtd_theme \
dev-python/recommonmark \
www-servers/gunicorn
python_prepare_all() {
# 'dependency' not found in `markers` configuration option
# requires pytest version which is no longer in ::gentoo
rm tests/test_load_module_from_file_location.py || die
rm tests/test_update_config.py || die
distutils-r1_python_prepare_all
}

View File

@@ -28,7 +28,6 @@ RDEPEND="
dev-python/ujson[${PYTHON_USEDEP}]
dev-python/uvloop[${PYTHON_USEDEP}]
>=dev-python/websockets-8.1[${PYTHON_USEDEP}]
<dev-python/websockets-9.0[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
@@ -53,5 +52,5 @@ distutils_enable_sphinx docs \
www-servers/gunicorn
python_test() {
pytest -vv --deselect tests/test_unix_socket.py::test_zero_downtime || die
pytest -vv --deselect tests/test_unix_socket.py::test_zero_downtime tests/test_keep_alive_timeout.py::test_keep_alive_client_timeout || die
}

View File

@@ -19,7 +19,7 @@ HOMEPAGE="https://www.hjdskes.nl/projects/cage https://github.com/Hjdskes/cage"
LICENSE="MIT"
SLOT="0"
IUSE="-X"
IUSE="X"
RDEPEND="
>=gui-libs/wlroots-0.13

View File

@@ -19,7 +19,7 @@ HOMEPAGE="https://www.hjdskes.nl/projects/cage https://github.com/Hjdskes/cage"
LICENSE="MIT"
SLOT="0"
IUSE="-X"
IUSE="X"
RDEPEND="
>=gui-libs/wlroots-0.13

View File

@@ -23,7 +23,7 @@ KEYWORDS="~amd64"
# cgns, metis, parmetis are bundled;
# omp is disable as it's experimental;
# pastix is disabled as it's try to find bundled libs;
IUSE="cgns -mkl +mpi mpp openblas tecio test tutorials"
IUSE="cgns mkl +mpi mpp openblas tecio test tutorials"
RESTRICT="!test? ( test )"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}

View File

@@ -13,7 +13,7 @@ LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="-shell +tq test"
IUSE="shell +tq test"
RESTRICT="!test? ( test )"
REQUIRED_USE="shell? ( !test )" # shell alternatives currently fail tests