diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/six |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/six')
-rw-r--r-- | dev-python/six/Manifest | 9 | ||||
-rw-r--r-- | dev-python/six/files/1.10.0-no-setuptools.patch | 22 | ||||
-rw-r--r-- | dev-python/six/files/1.9.0-mapping.patch | 12 | ||||
-rw-r--r-- | dev-python/six/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/six/six-1.10.0.ebuild | 65 | ||||
-rw-r--r-- | dev-python/six/six-1.11.0.ebuild | 39 |
6 files changed, 159 insertions, 0 deletions
diff --git a/dev-python/six/Manifest b/dev-python/six/Manifest new file mode 100644 index 000000000000..675662725029 --- /dev/null +++ b/dev-python/six/Manifest @@ -0,0 +1,9 @@ +AUX 1.10.0-no-setuptools.patch 545 SHA256 02d3be746002fff940528270efce49b6d51025eef3f6cff5f75d799101127cb0 SHA512 f1d5c25815fb9e2ecfccaecef52383d468163feff0391214650f109560282ce2eff51513a60824a15ccc3a5af09fe0411b387314978af9a1f51fccc387521ffe WHIRLPOOL e7093ab60a1297ca5a29e1b800a99013be7fc9ca4e9388f901d61bc0eb85eaa0f782f26a09671eccf8f5711c18d6f87fc659738125dbd7bf5c77c1697951f5ea +AUX 1.9.0-mapping.patch 561 SHA256 0379b9cf39254db964f48ca52c6b721929ab17f2a0996f217db1fcfd01289070 SHA512 92d5bb1643264a04d5faf36bed16379e8844648a31739921bd97e2dd88e34a9b302c37a12a15a64aceb3d26c53f7cdbcbde2ce8d289a7a43f692af47bf05f58c WHIRLPOOL d9f919ac9057f416ce3c79b86eb8b33e07159a8297a2f1b6fb795861cbb744c4c8b6f50c6b7d4d41b4a96b009e4733534fa2ff54de995de1a959042e8c38206f +DIST six-1.10.0.tar.gz 29630 SHA256 105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a SHA512 9a53b7bc8f7e8b358c930eaecf91cc5639176a699830153f586780c3e6d637f1bd31349a69c383574f99da19cb3a36524e7733a318f3572b27aefb69c6409c2e WHIRLPOOL aad2fc7438b0df029bf477a783161dc169795c355be1281f1fe7aa4eb959eae5abf3bc96d097a221e0e5ad0b0494c29025bbe99bc28ff0c29ae1776e8691a70a +DIST six-1.11.0.tar.gz 29860 SHA256 70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9 SHA512 33f246a2e987141e17e5edad9d3537cf3aba0cbdd0bc2a907ea52ce0d674b1474f29c3dd5cc26605fd960396054b189ca5f501708333cad234c223131483fe24 WHIRLPOOL 08e33e1742d69558faa67fad1807b567595aa4c838bb643c993bcb88661246a0f14974ff89d1f9d25842212bfaeac0cb3a69272deacb8872b9ca3fb2f55570b9 +EBUILD six-1.10.0.ebuild 1823 SHA256 e1b6c9d6b2fb0049ca606570cca61e264a454739fb1a0a437ef4d33f3a70ac72 SHA512 258b5e8d0d9221d916260a1c2053b90224109933d3c87054588c2253910fcfb177e4bc329da491987eb88d7d7ff85b13a0057127c285855c2b896ba9ed8b9f51 WHIRLPOOL a021d06f28d0df18cdee3bbb848c758574ae36d69c31f72e8375de5e7fa49bc9783f3f4ee589f511e9ee7b94344b64e14cbd8cda741fa2f56891d4842a6eb580 +EBUILD six-1.11.0.ebuild 1095 SHA256 a6aa44063bc7fdb29c3e930748695e03451d25dbb9048af4d48d2523529e2269 SHA512 87da6beb6dab97b5f20c6c84a69a7fc23a5f005958dd413ef299281db273691a6d97a3822619b12b5ca1bd47d36d0a9ba6ffa5c5c39703831709a660d61f16c5 WHIRLPOOL 7e8a261398432538d4accb316e34d0f69e582fcef50686076c003fd86abe06d95771f91dd6bd6932edd7bc260673627644e6a3b45b8b8dee5cb9333301ebc34b +MISC ChangeLog 8947 SHA256 d3a119aace105921374185a467d3a742333228531a42764ed0a78bc62c821bd4 SHA512 cedc06f5593d8a2afdaf100e027ac1c14777fc0eee38e3a27d37a70f2130671c1f4c2315351863a5e37159282bf650466c94881ef37a1532ad98349c26747305 WHIRLPOOL 0e98fcef0240877282a14166874a4825f7575a63911bdf852e55863d129509a140f9fa3af33688678f32a690c8f7642fafed8603e783993a50af3d0037e8f376 +MISC ChangeLog-2015 8432 SHA256 f8702aa8815c9560e6ac791a0529133fba0550b856902065bc1c1050820f7a1b SHA512 b2795ad91e3be336a8af5b8199b22dfe9d3b8947578255f1dcb8f5a795574d852b7d7091e92eab7a6bf5e19f30a0c8e847c48ad4129d99f152e269b9a3360049 WHIRLPOOL 90ec283742f3afdf9b37e994931218fd0ebcaea89b8d018604598081257fb1209fcfa87ad9b642e1dcbefc57b49484d42090842893bb81354b8d95a76a3cf524 +MISC metadata.xml 371 SHA256 6ea4fc6d9ab2b7a3e2c8f9b3d71d0b8a572e71eaf12b715fe52deada60dcc0c5 SHA512 8171125815ab60f7c9a2756367ee6532fd862c5f411ff828b6555e4e21e6d43672f2c764f92134f6625abb161380bdbb739af259ba88c974cf3583f35af76a91 WHIRLPOOL 99972abe648415461046d57e7c70f3b7943b5632017ee4712dc959d1bf2e26a2a1f3ab23c1a4d13868efa6c15aaf153722c3c9b5674c339ab1506514b2b88a56 diff --git a/dev-python/six/files/1.10.0-no-setuptools.patch b/dev-python/six/files/1.10.0-no-setuptools.patch new file mode 100644 index 000000000000..d4309181902a --- /dev/null +++ b/dev-python/six/files/1.10.0-no-setuptools.patch @@ -0,0 +1,22 @@ +Force distutils to avoid depending on setuptools + +distutils and setuptools have differing behavior in regard to egg-info +directories versus files, so we need to ensure that no automagic behavior +occurs here. + +We cannot hard-depend on setuptools due to a circular dependency. + +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -1,9 +1,6 @@ + from __future__ import with_statement + +-try: +- from setuptools import setup +-except ImportError: +- from distutils.core import setup ++from distutils.core import setup + + import six + diff --git a/dev-python/six/files/1.9.0-mapping.patch b/dev-python/six/files/1.9.0-mapping.patch new file mode 100644 index 000000000000..4423eacbbba3 --- /dev/null +++ b/dev-python/six/files/1.9.0-mapping.patch @@ -0,0 +1,12 @@ +Patch prevents downloading non essential .inv files during the doc build +diff -ur six-1.5.2.orig/documentation/conf.py six-1.5.2/documentation/conf.py +--- a/documentation/conf.py 2013-09-15 21:52:34.000000000 +0800 ++++ b/documentation/conf.py 2014-01-07 18:19:24.958916446 +0800 +@@ -211,7 +211,3 @@ + [u"Benjamin Peterson"], 1) + ] + +-# -- Intersphinx --------------------------------------------------------------- +- +-intersphinx_mapping = {"py2" : ("https://docs.python.org/2/", None), +- "py3" : ("https://docs.python.org/3/", None)} diff --git a/dev-python/six/metadata.xml b/dev-python/six/metadata.xml new file mode 100644 index 000000000000..2d3e4a72698e --- /dev/null +++ b/dev-python/six/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">six</remote-id> + <remote-id type="github">benjaminp/six</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/six/six-1.10.0.ebuild b/dev-python/six/six-1.10.0.ebuild new file mode 100644 index 000000000000..950dd2975ff8 --- /dev/null +++ b/dev-python/six/six-1.10.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python 2 and 3 compatibility library" +HOMEPAGE="https://github.com/benjaminp/six https://pypi.python.org/pypi/six" +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 ~s390 ~sh sparc x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc test" + +DEPEND=" + doc? ( dev-python/sphinx ) + test? ( >=dev-python/pytest-2.2.0[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}"/1.10.0-no-setuptools.patch + "${FILESDIR}"/1.9.0-mapping.patch +) + +python_prepare_all() { + # https://bitbucket.org/gutworth/six/issues/139/ + sed \ + -e 's:test_assertCountEqual:_&:g' \ + -e 's:test_assertRegex:_&:g' \ + -e 's:test_assertRaisesRegex:_&:g' \ + -i test_six.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C documentation html +} + +python_test() { + py.test -v || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( documentation/_build/html/ ) + distutils-r1_python_install_all +} + +# Remove pkg_preinst in the next version bump +pkg_preinst() { + # https://bugs.gentoo.org/585146 + cd "${HOME}" || die + + _cleanup() { + local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())") + local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info" + if [[ -d ${egginfo} ]]; then + echo rm -r "${egginfo}" + rm -r "${egginfo}" || die "Failed to remove egg-info directory" + fi + } + python_foreach_impl _cleanup +} diff --git a/dev-python/six/six-1.11.0.ebuild b/dev-python/six/six-1.11.0.ebuild new file mode 100644 index 000000000000..62c67ff19017 --- /dev/null +++ b/dev-python/six/six-1.11.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="Python 2 and 3 compatibility library" +HOMEPAGE="https://github.com/benjaminp/six https://pypi.python.org/pypi/six" +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 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx ) + test? ( >=dev-python/pytest-2.2.0[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}"/1.9.0-mapping.patch +) + +python_compile_all() { + use doc && emake -C documentation html +} + +python_test() { + py.test -v || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( documentation/_build/html/. ) + distutils-r1_python_install_all +} |