summaryrefslogtreecommitdiff
path: root/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-16 12:27:20 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-04-16 12:27:20 +0000
commitd883757a75090a9dd237206324832c21283d5ffc (patch)
tree6571798616b82f5536feed386bc3c84f99b70266 /dev-python/pycodestyle/pycodestyle-2.12.1.ebuild
parent87af0fe5fe43bd2a94b9d6f703992e753364d4a5 (diff)
downloadbaldeagleos-repo-d883757a75090a9dd237206324832c21283d5ffc.tar.gz
baldeagleos-repo-d883757a75090a9dd237206324832c21283d5ffc.tar.xz
baldeagleos-repo-d883757a75090a9dd237206324832c21283d5ffc.zip
Adding metadata
Diffstat (limited to 'dev-python/pycodestyle/pycodestyle-2.12.1.ebuild')
-rw-r--r--dev-python/pycodestyle/pycodestyle-2.12.1.ebuild53
1 files changed, 31 insertions, 22 deletions
diff --git a/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild b/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild
index 1b63cd97b62f..e075c86e1edb 100644
--- a/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild
+++ b/dev-python/pycodestyle/pycodestyle-2.12.1.ebuild
@@ -1,36 +1,45 @@
-# Copyright 2020-2024 Liguros Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+
EAPI=8
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )
inherit distutils-r1
DESCRIPTION="Python style guide checker (fka pep8)"
-HOMEPAGE="https://pypi.org/project/pycodestyle/"
-SRC_URI="https://github.com/PyCQA/pycodestyle/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="
+ https://pycodestyle.pycqa.org/en/latest/
+ https://github.com/PyCQA/pycodestyle/
+ https://pypi.org/project/pycodestyle/
+"
+# 2.11.0 broke sdist
+# https://github.com/PyCQA/pycodestyle/issues/1183
+SRC_URI="
+ https://github.com/PyCQA/pycodestyle/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc"
-
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
-
-python_compile_all() {
- use doc && emake -C docs html
-}
+KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+distutils_enable_sphinx docs \
+ dev-python/sphinx-rtd-theme
+distutils_enable_tests pytest
python_test() {
- PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --statistics pycodestyle.py || die
- PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py -v --testsuite=testsuite || die
- PYTHONPATH="${S}" "${PYTHON}" pycodestyle.py --doctest -v || die
- esetup.py test
-}
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local EPYTEST_DESELECT=()
+
+ case ${EPYTHON} in
+ pypy3.11)
+ EPYTEST_DESELECT+=(
+ # https://github.com/pypy/pypy/issues/5234
+ tests/test_api.py::APITestCase::test_check_nullbytes
+ )
+ ;;
+ esac
-python_install_all() {
- use doc && local HTML_DOCS=( docs/_build/html/. )
- distutils-r1_python_install_all
+ epytest
}