commit:     285fd0c345a8e424db85e2cbe391107e4b346e25
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 11 06:17:59 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 11 07:56:40 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=285fd0c3

dev-python/flake8: Bump to 4.0.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/flake8/Manifest            |  1 +
 dev-python/flake8/flake8-4.0.0.ebuild | 42 +++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/dev-python/flake8/Manifest b/dev-python/flake8/Manifest
index cecdf99ae1d..c60ccc28e3a 100644
--- a/dev-python/flake8/Manifest
+++ b/dev-python/flake8/Manifest
@@ -1,2 +1,3 @@
 DIST flake8-3.8.4.tar.gz 163583 BLAKE2B 
221234931365912adffec99c7c6761d2f35918222bee902ade4d8009d24f6918c66d23fc4b973fe653152cc6857b62ba859780b0d9de53fb91b7ea0379bee9d0
 SHA512 
51ed09beed50175573e6184b404431b3f89aa6594c40c70ed8288982fe12c2a68992e36d69c99013188f03555bf9fef1ba4f111f8e389cef1e1daa69b41ff5b0
 DIST flake8-3.9.2.tar.gz 164777 BLAKE2B 
1c991296a3e47e4c41f1196fcaf1e7ea059226dfb41657a52fc4f5a9023b54dba21dd99635398e12f37f52f6e498a0a1fb7d87aba0fe7098ebbdfb54dc5598b0
 SHA512 
618fe1b35070b24395e5d4da9fa1b1f6308abf6f85d8de71b8b553f84d70d9cd7d2a6f616fa1418db9a8b5ad3efab038f4e2d7c6020c0c1bdeb8157e666911fd
+DIST flake8-4.0.0.tar.gz 154732 BLAKE2B 
3d469e3e12212051abfeb93943ac8ec310e607c86c06db47b5487544e582f39480e76bc8ea621c5dba6493592eff64b19cb2be9b6b122527c66993415fab15ab
 SHA512 
202b89c9b93f10a09453a215bbcd4260513ee21e4c1b3591088779155a4ca7277a1c274edbb12fcaf33d29ebe9389a3c57ce5aa4e12434f17960dcb0f769680e

diff --git a/dev-python/flake8/flake8-4.0.0.ebuild 
b/dev-python/flake8/flake8-4.0.0.ebuild
new file mode 100644
index 00000000000..8bf1116ff1c
--- /dev/null
+++ b/dev-python/flake8/flake8-4.0.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="A wrapper around PyFlakes, pep8 & mccabe"
+HOMEPAGE="https://gitlab.com/pycqa/flake8 https://pypi.org/project/flake8/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-macos"
+
+# requires.txt inc. mccabe however that creates a circular dep
+RDEPEND="
+       >=dev-python/pyflakes-2.4.0[${PYTHON_USEDEP}]
+       <dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
+       >=dev-python/pycodestyle-2.8.0[${PYTHON_USEDEP}]
+       <dev-python/pycodestyle-2.9.0[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' 
pypy3)
+"
+PDEPEND="
+       >=dev-python/mccabe-0.6.0[${PYTHON_USEDEP}]
+       <dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
+"
+BDEPEND="${RDEPEND}
+       test? (
+               ${PDEPEND}
+       )
+"
+
+distutils_enable_sphinx docs/source dev-python/sphinx-prompt 
dev-python/sphinx_rtd_theme
+distutils_enable_tests --install pytest
+
+src_prepare() {
+       # remove version-limited dep
+       sed -i -e '/importlib-metadata/d' setup.cfg || die
+       distutils-r1_src_prepare
+}

Reply via email to