diff options
Diffstat (limited to 'dev-python/isort')
-rw-r--r-- | dev-python/isort/Manifest | 5 | ||||
-rw-r--r-- | dev-python/isort/files/isort-4.3.21_p1-tests.patch | 36 | ||||
-rw-r--r-- | dev-python/isort/isort-4.3.15.ebuild | 2 | ||||
-rw-r--r-- | dev-python/isort/isort-4.3.21_p2.ebuild | 32 |
4 files changed, 73 insertions, 2 deletions
diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest index 97115a4e3cfd..2e06ebff4a71 100644 --- a/dev-python/isort/Manifest +++ b/dev-python/isort/Manifest @@ -1,5 +1,8 @@ +AUX isort-4.3.21_p1-tests.patch 1301 BLAKE2B c56ffa6dad9605def443bd1f714cd3a88e77b79aa5095a428c29a2420ca0308b88ede5070d827fcd5ac5815895f9dcfa846dfd2d983640134343e89b2079ef37 SHA512 6e32001e2f3fdc97da37f82dbe37ab293b1a7489d5c533f276583161028384da623bc3ea51e90e7440a866c28c6828eed272e27821a3f101d0e3e635f809efd0 DIST isort-4.2.5.tar.gz 36361 BLAKE2B 7133ab999200412bc880a5413de81ff0b7718383eaf7f50dd1ca12da4d7ee24f8d47af60e7416ca6898a32074779c4f293d897a0f7d62c2539b10a686484c121 SHA512 ddc8e859bb421e4179315d74896958c8279394d42a75494db5dc22c58422994aa249b63c03645626a021ccf9142941bde51ad400256ab1c6be29da8110375f40 DIST isort-4.3.15.tar.gz 67949 BLAKE2B e78960518928cd74c15733bbc14bf066798ecbcc3e906754c10e352e7b88843451a1d0616d1b450100c77e95974f863951d640c9568277e867fcdfba8f44abdb SHA512 a5774d4f3c49c978e9043e52681e80011591422e60178d72074142725d9d7fa5065553686fd42bffe9e71b38b2b5bdaaa6f20e32cd8dbe33beb9431c397d78e5 +DIST isort-4.3.21_p2.tar.gz 158539 BLAKE2B 316703ca754c939e4af0db4a1060fb13a5164797a672b3faeb585a81fa0c86453fb0f1953b789661588cd0f04267a28837d46a88093a838391f752afa43e9f8b SHA512 fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687 EBUILD isort-4.2.5.ebuild 469 BLAKE2B d3285b6b12cd641d1823945d78829ead7e8d5f7811c0daaac20ddd75650aa4bf80d5924f7579ea67cae090c112a1d75fb3a0b7b93016ea5da30a5c443e23f329 SHA512 07cce8f7c209caca4a8e587ba28cf77a9d40993a9d7b95a9fb3e56574520e07a362a2f7dea4f1b73a6eec967b43121bb6d49ac712074863fc7a7a85b0b61c067 -EBUILD isort-4.3.15.ebuild 471 BLAKE2B ea7b3f05aa2645847824260c89da57ece7f265af4defd4a5689b0aec602f73d33493599c9781fc4d32a317e810ddc9f1b5348c00f05e1fd974265b6299b7654b SHA512 30be4208ab12960fa409f45ee43caa7306b5fb8f59aa52d42e1c440264cd1d0dcc3db45d839e900e9b2e57aec358fb39e06e3796ca4efb24f950f5e1a0d195f5 +EBUILD isort-4.3.15.ebuild 469 BLAKE2B 90af03eb5ff9649c98891d9b0da2c2d8e5187b82a6d5a14c4288d93f074046176b0fc7ec1ac082ae12564ec8eff4d6c5595c95f382ee4ca34484fd19f4336829 SHA512 494b4449c0c7082c1f47bfb0b99c6fc8e7ec7240289ff3ead40781cb592b02058719dff49612c949adf875d2e6ff941fae76caa6ee4c898dd26890a6d6d58943 +EBUILD isort-4.3.21_p2.ebuild 805 BLAKE2B 4d9d319b4eda2fa11e5669b5f3a6ed99c8b304d282b509661e32e7701e83850aa6e43bc33f391e244a12ab605dd859c34cbf543aebfecc0f2848eed668c5ccbb SHA512 ea5db193b7ed28e4c1a7a2302b69a8226eedecfe9d729c226238eb2d2d028bb9e8319200df11b6744399c5a5b791592d532e43dea1016fd9f076f12e5f89c4eb MISC metadata.xml 395 BLAKE2B 2fe78f812b341093dab53962f6c02a341b9c32221d3d318ce839f38ad2280369ca242f831cff95d18120a8104bd5cadfb1e77123872228411514a993b086772a SHA512 27076ca449e7effce88a4295218f20fcf89ba36ca0df51951f50d25b4f8b76945282136b6e972c0220567df3249c2c1fe2e956acfd36a5cf249401c88c721d4a diff --git a/dev-python/isort/files/isort-4.3.21_p1-tests.patch b/dev-python/isort/files/isort-4.3.21_p1-tests.patch new file mode 100644 index 000000000000..9ece5ff6de9b --- /dev/null +++ b/dev-python/isort/files/isort-4.3.21_p1-tests.patch @@ -0,0 +1,36 @@ +diff --git a/test_isort.py b/test_isort.py +index 9d9297c..725b1e1 100644 +--- a/test_isort.py ++++ b/test_isort.py +@@ -1539,6 +1539,7 @@ def test_custom_sections(): + "import p24.shared.media_wiki_syntax as syntax\n") + + ++@pytest.mark.skip("Not going to pull in Django for a couple of tests") + def test_glob_known(): + """Ensure that most specific placement control match wins""" + test_input = ("import os\n" +@@ -2599,6 +2600,7 @@ def test_new_lines_are_preserved(): + os.remove(n_newline.name) + + ++@pytest.mark.skip("Not going to pull in Django for a couple of tests") + def test_requirements_finder(tmpdir): + subdir = tmpdir.mkdir('subdir').join("lol.txt") + subdir.write("flask") +@@ -2675,6 +2677,7 @@ deal = {editable = true, git = "https://github.com/orsinium/deal.git"} + """ + + ++@pytest.mark.skip("Not going to pull in Django for a couple of tests") + def test_pipfile_finder(tmpdir): + pipfile = tmpdir.join('Pipfile') + pipfile.write(PIPFILE) +@@ -2979,6 +2982,7 @@ def test_skip_paths_issue_938(tmpdir): + assert b'skipped 1' in results.lower() + + ++@pytest.mark.skipif(sys.version_info[0] == 2, reason="Broken on Python 2") + def test_standard_library_deprecates_user_issue_778(): + test_input = ('import os\n' + '\n' diff --git a/dev-python/isort/isort-4.3.15.ebuild b/dev-python/isort/isort-4.3.15.ebuild index 9360a2c72994..b018acbee5ad 100644 --- a/dev-python/isort/isort-4.3.15.ebuild +++ b/dev-python/isort/isort-4.3.15.ebuild @@ -12,4 +12,4 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" diff --git a/dev-python/isort/isort-4.3.21_p2.ebuild b/dev-python/isort/isort-4.3.21_p2.ebuild new file mode 100644 index 000000000000..c55537150d53 --- /dev/null +++ b/dev-python/isort/isort-4.3.21_p2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) + +inherit distutils-r1 + +MY_PV="${PV//_p/-}" + +DESCRIPTION="A python utility/library to sort imports" +HOMEPAGE="https://pypi.org/project/isort/" +SRC_URI="https://github.com/timothycrosley/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/pipfile[${PYTHON_USEDEP}] + virtual/python-futures[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/backports-functools-lru-cache[${PYTHON_USEDEP}]' -2) +" +BDEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/isort-4.3.21_p1-tests.patch" +) + +distutils_enable_tests pytest |