From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/packaging/Manifest | 5 +++ .../packaging/files/packaging-16.8-distutils.patch | 14 ++++++ dev-python/packaging/metadata.xml | 12 +++++ dev-python/packaging/packaging-16.8.ebuild | 51 ++++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 dev-python/packaging/Manifest create mode 100644 dev-python/packaging/files/packaging-16.8-distutils.patch create mode 100644 dev-python/packaging/metadata.xml create mode 100644 dev-python/packaging/packaging-16.8.ebuild (limited to 'dev-python/packaging') diff --git a/dev-python/packaging/Manifest b/dev-python/packaging/Manifest new file mode 100644 index 000000000000..9e769e64b82d --- /dev/null +++ b/dev-python/packaging/Manifest @@ -0,0 +1,5 @@ +AUX packaging-16.8-distutils.patch 447 SHA256 a4665d58a0c6e44997e42721443b2ebd7b382a7463aa298b02fe48339f91f4e5 SHA512 080a1af701c81f694beb336e6239661d04932db904cc6c0ea7e9fd2c2d0e9a42ac3690dfd64eee745c12368f222d20d4b2cdd9d578d7a3b7142924f41b1887d3 WHIRLPOOL 53151bb6aa7eb4697427f406082c2e1fab2915ae92aaa7390b44184a24c6333a7eee445bd1dbbe1a29a6a0b0b4a0a2e1177b7dbf305ef602e56738c1edae4c3f +DIST packaging-16.8.tar.gz 44706 SHA256 5d50835fdf0a7edf0b55e311b7c887786504efea1177abd7e69329a8e5ea619e SHA512 d1a7b65472c7c02dd758f0c469d6c6aeea34de7b798613f7fcdf45fcccbeba1e9085cab113fa89b392a60f758f8747d13b1c265c809566990c22e61ca8db49bb WHIRLPOOL 611db9bbba97140abfa8097335cb13de2d548c0af731167c2d5f7236771cad47eaf66231c364611f1e6526464dedef8addaa9f0155bd5902f9008952f064d430 +EBUILD packaging-16.8.ebuild 1464 SHA256 1e72c35d6a49af9819b456bdd96c12b6d507fe445c6b0a1a97b0811ff70283dc SHA512 bb6a69a0843c376d4d3eb4b501a25047e47e7fb3f2e594ab2cfcba38d073c1c8aa4c1ae8aabf66367a2500d1a92839beb666a3c449415023049462fd67725fea WHIRLPOOL 02799bb7889ef9cd629edd2b141de99bf358ea1a3c41539e4e0b7a821ca109b37115148b1e470afd24fa7e70da392fe89ab11acb95276781016375acf51e8ecb +MISC ChangeLog 8604 SHA256 b1eb7763fe3f440e7e45d9fa3feb823453422093a857fd2d71cc552ec4648556 SHA512 a97f313d80b40a0de94f24deb2e04ed7d8ee72f6ea4bb8b5e4118a7e98a9599b05a6b03c26ed97c48c988f8f634323bfd58c5a7fa821f681dfbc0a3f6b668d0d WHIRLPOOL 83b35d687f3d1d24da989a1aedb64dfb9fb5c26eaf895019d3e5ffbe1f7d4bfade621bd0fe61c1abd0392d251f14dea93bcfcd375a69c33c85aa6074fc91780c +MISC metadata.xml 366 SHA256 dadab51670c0df56ef935d9530a45a0cde7c2a4f96ed57e2f684b6405f245f0e SHA512 f326b75f4603bc9e4455665dd526e381eb1973c8edc319e1d69b824f93ee885931fa29e74f9da8582f5af78a1ddba2fcc2d983fb98cbdc4cfd87b82c7a0f3ba4 WHIRLPOOL 8638a60d413feb5c3a7ae434bf204210103b6261daa4f7cbb8b50ecd98ca9d5f851498126ddae56c5f13f6ebc81878ee7d0badc31c646b81498862d705b2f594 diff --git a/dev-python/packaging/files/packaging-16.8-distutils.patch b/dev-python/packaging/files/packaging-16.8-distutils.patch new file mode 100644 index 000000000000..84bbb618a6fe --- /dev/null +++ b/dev-python/packaging/files/packaging-16.8-distutils.patch @@ -0,0 +1,14 @@ +--- a/setup.py ++++ b/setup.py +@@ -13,10 +13,7 @@ import re + # dependency when projects attempt to unbundle stuff from setuptools and pip. + # Though we don't really support that, it makes things easier if we do this and + # should hopefully cause less issues for end users. +-try: +- from setuptools import setup +-except ImportError: +- from distutils.core import setup ++from distutils.core import setup + + + base_dir = os.path.dirname(__file__) diff --git a/dev-python/packaging/metadata.xml b/dev-python/packaging/metadata.xml new file mode 100644 index 000000000000..b995a0f3bbcc --- /dev/null +++ b/dev-python/packaging/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + packaging + pypa/packaging + + diff --git a/dev-python/packaging/packaging-16.8.ebuild b/dev-python/packaging/packaging-16.8.ebuild new file mode 100644 index 000000000000..62edc8ae2a28 --- /dev/null +++ b/dev-python/packaging/packaging-16.8.ebuild @@ -0,0 +1,51 @@ +# 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 pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Core utilities for Python packages" +HOMEPAGE="https://github.com/pypa/packaging https://pypi.python.org/pypi/packaging" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="|| ( Apache-2.0 BSD-2 )" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND=" + >=dev-python/pyparsing-2.1.10[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-16.8-distutils.patch" +) + +python_test() { + py.test --capture=no --strict -v || die +} + +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 +} -- cgit v1.2.3