From 39fcd539b9eeb7df75bccad136265b5f001d1a3c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 15:36:38 +0000 Subject: gentoo auto-resync : 16:12:2022 - 15:36:37 --- dev-python/autopep8/Manifest | 4 ++- dev-python/autopep8/autopep8-2.0.1.ebuild | 47 +++++++++++++++++++++++++++++++ dev-python/autopep8/autopep8-9999.ebuild | 15 +++------- 3 files changed, 54 insertions(+), 12 deletions(-) create mode 100644 dev-python/autopep8/autopep8-2.0.1.ebuild (limited to 'dev-python/autopep8') diff --git a/dev-python/autopep8/Manifest b/dev-python/autopep8/Manifest index 1253b5326240..9b1167dc8fba 100644 --- a/dev-python/autopep8/Manifest +++ b/dev-python/autopep8/Manifest @@ -1,5 +1,7 @@ AUX autopep8-1.6.0-lib2to3-deprecation-pytest.patch 1094 BLAKE2B fbca6a4c342f525cf20487551133d9a0279a00ed0de4439d3fe73736afaa70c4ae3d3ba2c2960d87423d2b6b98fb08f6c3604e17c9078dc9880f91cf090509fc SHA512 7f4204495c5ca0acfb3cf411c17cf4cdf6e340d84ff4a8a494ff33494923813e73b8bf55db975bd4f6c0fed1abb7669bb77c89be1512e9d8629cbb5898999440 DIST autopep8-2.0.0.tar.gz 117507 BLAKE2B 8722b19454f47d0b960e3cc0e18ff3d6150ead009630047ecd1ce9001ea6f6d68595f80d7ad1087bddd2993e95d0634d63495b1d43dee095d114535bf632d1bf SHA512 883b79f7011a374a2ef88073a45748268a20449a3bc8da519c036c71700352dd8c4accc60fcb592f1a53ceac06984fcbe6ede8a272bc718c2b79873be5f35dd8 +DIST autopep8-2.0.1.tar.gz 115905 BLAKE2B 9dde8d702a0b21fb1457e08120dca805e2b46e3e5284e5d98932ff93afc4c0ac8dbc60215f35b64d4a308d6748df1411c2979d8fa1f4949b1dbe213bf19de9dc SHA512 cc0e8e5b7228ba9b37adaa3b2689a5e1ad04eb84366c5300d7a220b1593a64e4f1dc332750f8ca53935dec6a3ea1d07cae5615373e44da357a980d9763bbc3f1 EBUILD autopep8-2.0.0.ebuild 989 BLAKE2B 147f30d3cfe824ad8ac33f34ecff17b32203034b56f63e3aba39be0e32983449da09840572b16b91604c536097a125757ac2f62b5387b0cf87ccd53eb5c1f647 SHA512 ef719e5563f67d785387ac328171264d177923ffb94ce9f79df45e8b8b3bc64c5c8c9f492656507ca320c86a043590a99bc84198bd0a4b7b85c297a100527bf0 -EBUILD autopep8-9999.ebuild 993 BLAKE2B e44338622be5c634bef3e9705dff71aa9b18baa8aabd4b03c33d1511dbf4ac439c0ffdae349063d4dcabb4ced39575b9e43db38db2b2d1a988033f4b0e392f8e SHA512 ee5a7a8bd87d997de74edb88ff1b8537d9ebff952e9ebe175fb542d713c2aee0268a1ce4b5208d3df8b0dfd97051abd0008b02e08f86f1a49e376018341ff253 +EBUILD autopep8-2.0.1.ebuild 1177 BLAKE2B 02232c8ed1df7a6c792c57b1a082d8a5a733ea360e97b2ca0d986b16e81b3de012fb8500eaa19a37b50301b3eb91427e718290e2116b92cb97a416fcd0c96ab2 SHA512 4f29624da0a3207d0676b730f6d9a1f0fe979c348567c01acc9b207c73180e4e99cc2037dcb56047a62e568d5d9f1126ed3794d0af6e3b8e77b6cf20d5ac75b3 +EBUILD autopep8-9999.ebuild 840 BLAKE2B 1f653ab03a68735e4fa9d35ff641880fce14789a6b6026d4e30e58f92bd8988a5baf7a53083c2d8d6796596d777f97686b661e30f4985228e47ff3321fee3e32 SHA512 32d549d587c3913425858f4f90ffc5e8028b68c3fbf25c28ee5c04dec6c364ab67e6bd87855ba0f2213e8e822b62a7fa958e9ebb79a8c1e1612ef125771cda64 MISC metadata.xml 404 BLAKE2B e9442968d195e1605d55b880cf29f4a2945f67c57c0d7d0325e19c0ccf60cac0ac3e68115a0285f87068482163f537abc1d75bddfdc6ae860c8c52c375147fdc SHA512 3e0b8a6ee869086166bb670a73189ca681729276cc7897666127b7e25b3a252aa2e80da5fd4dbb43d101a439d12f146ba0ba61bebf30a87a97f1030325f1aeab diff --git a/dev-python/autopep8/autopep8-2.0.1.ebuild b/dev-python/autopep8/autopep8-2.0.1.ebuild new file mode 100644 index 000000000000..e54d2fef8e1a --- /dev/null +++ b/dev-python/autopep8/autopep8-2.0.1.ebuild @@ -0,0 +1,47 @@ +# 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} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Automatically formats Python code to conform to the PEP 8 style guide" +HOMEPAGE=" + https://github.com/hhatto/autopep8/ + https://pypi.org/project/autopep8/ +" +if [[ ${PV} == *9999* ]]; then + EGIT_REPO_URI="https://github.com/hhatto/${PN}.git" + inherit git-r3 +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + >=dev-python/pycodestyle-2.10[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( + # fails due to deprecation warnings + test/test_autopep8.py::CommandLineTests::test_in_place_no_modifications_no_writes + test/test_autopep8.py::CommandLineTests::test_in_place_no_modifications_no_writes_with_empty_file + ) + + epytest +} diff --git a/dev-python/autopep8/autopep8-9999.ebuild b/dev-python/autopep8/autopep8-9999.ebuild index b201d023a72a..ed142ae0e692 100644 --- a/dev-python/autopep8/autopep8-9999.ebuild +++ b/dev-python/autopep8/autopep8-9999.ebuild @@ -26,17 +26,10 @@ LICENSE="MIT" SLOT="0" RDEPEND=" - >=dev-python/pycodestyle-2.9.1[${PYTHON_USEDEP}] - dev-python/tomli[${PYTHON_USEDEP}] + >=dev-python/pycodestyle-2.10[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) " distutils_enable_tests pytest - -EPYTEST_DESELECT=( - # test require in source build - test/test_autopep8.py::SystemTests::test_e101_skip_innocuous -) - -PATCHES=( - "${FILESDIR}"/autopep8-1.6.0-lib2to3-deprecation-pytest.patch -) -- cgit v1.2.3