mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
Merge updates from master
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -19,8 +19,12 @@ LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
|
||||
RDEPEND=">=dev-python/markdown-3.0[${PYTHON_USEDEP}]"
|
||||
BDEPEND=">=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
>=dev-python/markdown-3.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.8.1-setup.patch
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Auto documentation for MkDocs"
|
||||
@@ -12,17 +13,24 @@ HOMEPAGE="
|
||||
https://github.com/tomchristie/mkautodoc/
|
||||
https://pypi.org/project/mkautodoc/
|
||||
"
|
||||
SRC_URI="https://github.com/tomchristie/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
SRC_URI="
|
||||
https://github.com/tomchristie/mkautodoc/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="dev-python/markdown[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
BDEPEND="test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
DIST nox-2023.04.22.gh.tar.gz 3985377 BLAKE2B 7365141bf1c299f6e560dbf42a2927f98e5bf7121ed0dc1dbdc739de847caafdc0834fdc2f2473f20b97d25a4d1d01aced8400e85ec6c027494b8d93077d9a0b SHA512 7425588b0ae87d66211a4fec1d204122a2adb114ddca866d2e66e1caff930f593af1540e5c88806894400ea8aba92037d3f458a98df05d6ac70662705426ee6e
|
||||
DIST nox-2024.03.02.gh.tar.gz 3995248 BLAKE2B 3dc1ad8764fb1f849d15b7613999e2a9480f4b072d1b3ceb1d4316a8a97eaad418dc0d151b5477bf807e0f8b983fd53ca73a29cae3faed4f93a015f5b1d253ad SHA512 7b76d62ced6d6968fab489223fbe2af1270b19fe2f2376c2fef375c47ca1bce7de23a5686b7c8dc617cb0cd331a90b9806bf3b478c28e61294aa4ea453635dcb
|
||||
DIST nox-2024.04.15.gh.tar.gz 4001096 BLAKE2B 22a332afe499811be23876760e33be60dac200b686aa19fb7fe7b92315e2681f874a4c175419e3b4dc9eb709bb98821a99d3a7bf2d7dfa756894e5d1265e46e7 SHA512 99143b4c372e40c5b436ef786e72582eae3182513e9763cb76eb123dcb4d16de8b0585a21119c3513fe9aae4bb6d9d19b16f3129a42f3addf2878e6e7f044ebb
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
# Copyright 2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Flexible test automation for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/wntrblm/nox/
|
||||
https://pypi.org/project/nox/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/wntrblm/nox/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorlog-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/virtualenv-14[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/py[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# broken with >=dev-python/tox-4
|
||||
# https://github.com/wntrblm/nox/issues/673
|
||||
rm nox/tox_to_nox.* tests/test_tox_to_nox.py || die
|
||||
sed -i -e '/tox-to-nox/d' pyproject.toml || die
|
||||
# remove upper bounds from dependencies
|
||||
sed -i -e 's:<[0-9.]*,::' pyproject.toml || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Flexible test automation for Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/wntrblm/nox/
|
||||
https://pypi.org/project/nox/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/wntrblm/nox/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorlog-2.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/virtualenv-20.14.1[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/py[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# remove upper bounds from dependencies
|
||||
sed -i -e 's:<[0-9.]*,::' pyproject.toml || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO: conda?
|
||||
'tests/test_sessions.py::TestSessionRunner::test__create_venv_options[nox.virtualenv.CondaEnv.create-conda-CondaEnv]'
|
||||
)
|
||||
|
||||
case ${EPYTHON} in
|
||||
pypy3)
|
||||
EPYTEST_DESELECT+=(
|
||||
# hardcoded CPython assumption
|
||||
tests/test_tox_to_nox.py::test_skipinstall
|
||||
tests/test_tox_to_nox.py::test_trivial
|
||||
tests/test_tox_to_nox.py::test_usedevelop
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -o tmp_path_retention_policy=all
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
DIST numpy-1.26.4.tar.gz 15786129 BLAKE2B ee759d3a857111bc494d5e989a7b005375d942b2a89cda69be4a3bd7c6cb195003fd2a8a0535f1858d8977ff688b0ec36360dcba9c3160206eedce5e28f191ef SHA512 f7121ab4099fa0686f9c095d456baa4a5869d651d7b7a06385f885f329cf08f11024b5df5e7b4ee705970062a8102ec4f709512eabbfd5c9fccce4ef83b9c208
|
||||
DIST numpy-2.0.0.tar.gz 18326228 BLAKE2B e3d1084b79e0e55cd9087bb34dc116e6c9d6ab14a416a07f727b9f5d5a9db236ecf74a53b7e758d078781c5e565e5557912962f2ddbfff7251ec5b231fabe01d SHA512 cd5612ce2db4be87afa8479c508c256c9ff7f1b15a6b010eb06ba962759cc26552b512ec82711680bab1ebedeb06dfc8d7bff9cec63c94efacaadd719448b287
|
||||
DIST numpy-2.0.0rc2.tar.gz 18323588 BLAKE2B e2d5d03594d0cba360d4e85207818d15a0761f37cc3fb366f8f9f8bdd97743fe0cf0d09a34319c8b6af29b2bc1fc32a7f5be30a5fa2bdebffe455baff05caf7e SHA512 f86b27264c5274823aa11cbedf17c08f81f9acd05430bf40cccbbe8dcff523410629795ca5927d7f8e6c152272b274d777b64f547d23f50d11ae9fd656fd773d
|
||||
|
||||
@@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=meson-python
|
||||
PYTHON_COMPAT=( python3_{10..13} pypy3 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
FORTRAN_NEEDED=lapack
|
||||
|
||||
inherit distutils-r1 flag-o-matic fortran-2 pypi
|
||||
|
||||
DESCRIPTION="Fast array and numerical python library"
|
||||
HOMEPAGE="
|
||||
https://numpy.org/
|
||||
https://github.com/numpy/numpy/
|
||||
https://pypi.org/project/numpy/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
# +lapack because the internal fallbacks are pretty slow. Building without blas
|
||||
# is barely supported anyway, see bug #914358.
|
||||
IUSE="+lapack"
|
||||
|
||||
RDEPEND="
|
||||
lapack? (
|
||||
>=virtual/cblas-3.8
|
||||
>=virtual/lapack-3.8
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
>=dev-build/meson-1.1.0
|
||||
>=dev-python/cython-3.0.6[${PYTHON_USEDEP}]
|
||||
lapack? (
|
||||
virtual/pkgconfig
|
||||
)
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/cffi-1.14.0[${PYTHON_USEDEP}]
|
||||
' 'python*')
|
||||
dev-python/charset-normalizer[${PYTHON_USEDEP}]
|
||||
>=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# bug #922457
|
||||
filter-lto
|
||||
# https://github.com/numpy/numpy/issues/25004
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure_all() {
|
||||
DISTUTILS_ARGS=(
|
||||
-Dallow-noblas=$(usex !lapack true false)
|
||||
-Dblas=$(usev lapack cblas)
|
||||
-Dlapack=$(usev lapack lapack)
|
||||
# TODO: cpu-* options
|
||||
)
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Very disk-and-memory-hungry
|
||||
lib/tests/test_io.py::TestSaveTxt::test_large_zip
|
||||
lib/tests/test_io.py::TestSavezLoad::test_closing_fid
|
||||
lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load
|
||||
|
||||
# Precision problems
|
||||
_core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals
|
||||
|
||||
# Runs the whole test suite recursively, that's just crazy
|
||||
core/tests/test_mem_policy.py::test_new_policy
|
||||
|
||||
typing/tests/test_typing.py
|
||||
# Uses huge amount of memory
|
||||
core/tests/test_mem_overlap.py
|
||||
'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
|
||||
)
|
||||
|
||||
if [[ $(uname -m) == armv8l ]]; then
|
||||
# Degenerate case of arm32 chroot on arm64, bug #774108
|
||||
EPYTEST_DESELECT+=(
|
||||
core/tests/test_cpu_features.py::Test_ARM_Features::test_features
|
||||
)
|
||||
fi
|
||||
|
||||
case ${EPYTHON} in
|
||||
python3.13)
|
||||
EPYTEST_DESELECT+=(
|
||||
_core/tests/test_nditer.py::test_iter_refcount
|
||||
_core/tests/test_limited_api.py::test_limited_api
|
||||
f2py/tests/test_f2py2e.py::test_gh22819_cli
|
||||
)
|
||||
;&
|
||||
python3.12)
|
||||
EPYTEST_DESELECT+=(
|
||||
# flaky
|
||||
f2py/tests/test_crackfortran.py
|
||||
f2py/tests/test_data.py::TestData::test_crackedlines
|
||||
f2py/tests/test_data.py::TestDataF77::test_crackedlines
|
||||
f2py/tests/test_f2py2e.py::test_gen_pyf
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
if ! has_version -b "~${CATEGORY}/${P}[${PYTHON_USEDEP}]" ; then
|
||||
# depends on importing numpy.random from system namespace
|
||||
EPYTEST_DESELECT+=(
|
||||
'random/tests/test_extending.py::test_cython'
|
||||
)
|
||||
fi
|
||||
|
||||
rm -rf numpy || die
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest --pyargs numpy
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( LICENSE.txt README.md THANKS.txt )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_12 )
|
||||
PYTHON_COMPAT=( python3_{12..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Make asynchat available for Python 3.12 onwards"
|
||||
HOMEPAGE="
|
||||
https://github.com/simonrob/pyasynchat
|
||||
https://github.com/simonrob/pyasynchat/
|
||||
https://pypi.org/project/pyasynchat/
|
||||
"
|
||||
|
||||
@@ -18,9 +18,12 @@ LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86"
|
||||
|
||||
RDEPEND=">=dev-python/pyasyncore-1.0.2[${PYTHON_USEDEP}]"
|
||||
RDEPEND="
|
||||
>=dev-python/pyasyncore-1.0.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
python_test() {
|
||||
# Can't use d_e_t unittest (bug #926964)
|
||||
eunittest tests
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
From 321d5d8c7fa5965cb4c933eae8371113d40f9932 Mon Sep 17 00:00:00 2001
|
||||
From: facelessuser <faceless.shop@gmail.com>
|
||||
Date: Sun, 5 May 2024 06:50:56 -0600
|
||||
Subject: [PATCH] Update tests to account for latest Ruff and Pygments updates
|
||||
|
||||
- Fix warning in Ruff
|
||||
- Fix test expectations of Pygments lexer output
|
||||
|
||||
Fixes #2378
|
||||
---
|
||||
tests/test_extensions/test_highlight.py | 8 ++++----
|
||||
tests/test_extensions/test_inlinehilite.py | 4 ++--
|
||||
3 files changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/tests/test_extensions/test_highlight.py b/tests/test_extensions/test_highlight.py
|
||||
index 2b020a8a2..4d4433c80 100644
|
||||
--- a/tests/test_extensions/test_highlight.py
|
||||
+++ b/tests/test_extensions/test_highlight.py
|
||||
@@ -23,10 +23,10 @@ def test_guess(self):
|
||||
```
|
||||
''',
|
||||
'''
|
||||
- <div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">test</span>
|
||||
+ <div class="highlight"><pre><span></span><code><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
|
||||
<span class="n">test</span><span class="o">.</span><span class="n">test</span><span class="p">()</span>
|
||||
</code></pre></div>
|
||||
- ''',
|
||||
+ ''', # noqa: E501
|
||||
True
|
||||
)
|
||||
|
||||
@@ -52,10 +52,10 @@ def test_guess_block(self):
|
||||
```
|
||||
''',
|
||||
'''
|
||||
- <div class="highlight"><pre><span></span><code><span class="kn">import</span> <span class="nn">test</span>
|
||||
+ <div class="highlight"><pre><span></span><code><span class="kn">import</span><span class="w"> </span><span class="nn">test</span>
|
||||
<span class="n">test</span><span class="o">.</span><span class="n">test</span><span class="p">()</span>
|
||||
</code></pre></div>
|
||||
- ''',
|
||||
+ ''', # noqa: E501
|
||||
True
|
||||
)
|
||||
|
||||
diff --git a/tests/test_extensions/test_inlinehilite.py b/tests/test_extensions/test_inlinehilite.py
|
||||
index 3cb853070..c82baa6dc 100644
|
||||
--- a/tests/test_extensions/test_inlinehilite.py
|
||||
+++ b/tests/test_extensions/test_inlinehilite.py
|
||||
@@ -224,7 +224,7 @@ def test_guessing(self):
|
||||
|
||||
self.check_markdown(
|
||||
r'`import module`.',
|
||||
- r'<p><code class="inlinehilite"><span class="kn">import</span> <span class="nn">module</span></code>.</p>'
|
||||
+ r'<p><code class="inlinehilite"><span class="kn">import</span><span class="w"> </span><span class="nn">module</span></code>.</p>' # noqa: E501
|
||||
)
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ def test_guessing_inline(self):
|
||||
|
||||
self.check_markdown(
|
||||
r'`import module`.',
|
||||
- r'<p><code class="inlinehilite"><span class="kn">import</span> <span class="nn">module</span></code>.</p>'
|
||||
+ r'<p><code class="inlinehilite"><span class="kn">import</span><span class="w"> </span><span class="nn">module</span></code>.</p>' # noqa: E501
|
||||
)
|
||||
|
||||
def test_no_guessing_block(self):
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -31,15 +31,10 @@ BDEPEND="
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
# broken on pypy3; unfortunately, the parametrization is based
|
||||
# on indexes and these are pretty random, so we need to remove it
|
||||
# entirely
|
||||
# TODO: restore it when pypy with a fix is in Gentoo
|
||||
# https://github.com/pypy/pypy/issues/4920
|
||||
rm "tests/extensions/superfences/superfences (normal).txt" || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
PATCHES=(
|
||||
# https://github.com/facelessuser/pymdown-extensions/pull/2379
|
||||
"${FILESDIR}/${P}-test.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
DIST python-recurring-ical-events-2.1.3.gh.tar.gz 329303 BLAKE2B c034fa558629bb8b3c6a901278d14a91826c3dfc805f6960936cd6dc1b219aff027615b05501c85767ab554112f6edf2a2467ced220bd92a7ac493673ca02ffe SHA512 1852b5ed09d1c531ac969aac338893e0409a54d6b0d59e15dbdcbe2a5f97f111c1c01272fa5df640d26c1a12fbc5f284e35c3e10aed0f16a842fe8a6a54462a7
|
||||
DIST python-recurring-ical-events-2.2.0.gh.tar.gz 332176 BLAKE2B 85eb127e4c8e505f21c135e9241353aee33ae9a5087fb0fb2c2bf9b6a0e913f36a5077569c76c3b92d196e506d8c2be83806a2f8e8554b957a7ee84a1145f316 SHA512 ba5a3b22728d73a392e071d0b1b5363ebf94f25dbe00728fe944d1c7dbb2998b90550756b3ac5e8c51ef310ee269b90f1345ac8380ab8a89bfb7b24f5797ae4c
|
||||
DIST python-recurring-ical-events-2.2.1.gh.tar.gz 332458 BLAKE2B 337823e2a98c43015ffd7e848ab4fe43429f787ceb8ff262dca9d73668a785d6245f9e64779c900f1a84a2d7713832621d42044309f38c44bba79fc2853d066f SHA512 1bd6337b5b8670b2c587d54eae26291c381adba76c38e21a937db8a16480d9b4c6eaddda6660fd0c345f67e38ed4f7cfe9e528ecce3686bce9659f4ef30d278c
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=python-${P}
|
||||
DESCRIPTION="Repeat ICalendar events by RRULE, RDATE and EXDATE"
|
||||
HOMEPAGE="
|
||||
https://github.com/niccokunzmann/python-recurring-ical-events/
|
||||
https://pypi.org/project/recurring-ical-events/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/niccokunzmann/python-recurring-ical-events/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/icalendar-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/icalendar-5.0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2023.3[${PYTHON_USEDEP}]
|
||||
<dev-python/x-wr-timezone-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/x-wr-timezone-0.0.5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
test/test_readme.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# a test checking if tzdata package is installed that is apparently
|
||||
# needed for other tests, except it isn't
|
||||
test/test_zoneinfo_issue_57.py::test_zoneinfo_must_be_installed_if_it_is_possible
|
||||
)
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 2023-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=python-${P}
|
||||
DESCRIPTION="Repeat ICalendar events by RRULE, RDATE and EXDATE"
|
||||
HOMEPAGE="
|
||||
https://github.com/niccokunzmann/python-recurring-ical-events/
|
||||
https://pypi.org/project/recurring-ical-events/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/niccokunzmann/python-recurring-ical-events/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/icalendar-6[${PYTHON_USEDEP}]
|
||||
>=dev-python/icalendar-5.0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytz-2023.3[${PYTHON_USEDEP}]
|
||||
<dev-python/x-wr-timezone-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/x-wr-timezone-0.0.5[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_IGNORE=(
|
||||
test/test_readme.py
|
||||
)
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# a test checking if tzdata package is installed that is apparently
|
||||
# needed for other tests, except it isn't
|
||||
test/test_zoneinfo_issue_57.py::test_zoneinfo_must_be_installed_if_it_is_possible
|
||||
)
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
DIST requests-credssp-2.0.0.tar.gz 15225 BLAKE2B 3cd2a6bafcef5803d89ab13c42385709308998187eda514a598d262ab5e8c94bc3c0e9b9bf3756de1454d570012863a01f650b4fc6e3a17fb2845d8e52f0bf3b SHA512 d11a76bc9577f3054e5955aad513ee27ff2cf3a70414a1d4a81e721a7b40510d45fa33abc5957724ead6c04958a009153f670e154f38f32f2331cc14dd44ee27
|
||||
DIST requests-credssp-2.0.0.gh.tar.gz 15225 BLAKE2B 3cd2a6bafcef5803d89ab13c42385709308998187eda514a598d262ab5e8c94bc3c0e9b9bf3756de1454d570012863a01f650b4fc6e3a17fb2845d8e52f0bf3b SHA512 d11a76bc9577f3054e5955aad513ee27ff2cf3a70414a1d4a81e721a7b40510d45fa33abc5957724ead6c04958a009153f670e154f38f32f2331cc14dd44ee27
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -15,7 +15,7 @@ HOMEPAGE="
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/jborean93/${PN}/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Copyright 2021-2023 Gentoo Authors
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..12} )
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_COMMIT="877acddfd5ac5ae8b4a4592d045e74e108477643"
|
||||
@@ -14,12 +15,12 @@ HOMEPAGE="https://github.com/avakar/speg/"
|
||||
SRC_URI="https://github.com/avakar/speg/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
|
||||
S=${WORKDIR}/${PN}-${MY_COMMIT}
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc ~riscv x86"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
RDEPEND="
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
@@ -33,6 +33,12 @@
|
||||
|
||||
#--- END OF EXAMPLES ---
|
||||
|
||||
# Michał Górny <mgorny@gentoo.org> (2024-06-17)
|
||||
# A compatibility shim for ancient versions of flake8. Upstream project
|
||||
# is gone. No revdeps.
|
||||
# Removal on 2024-07-17. Bug #934466.
|
||||
dev-python/flake8-polyfill
|
||||
|
||||
# Hans de Graaff <graaff@gentoo.org> (2024-06-17)
|
||||
# Obsolete slot with failing tests. Use the newer slot instead. No
|
||||
# reverse dependencies. Masked for removal on 2024-07-17.
|
||||
|
||||
Reference in New Issue
Block a user