bump packaging-19.1
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
DIST packaging-19.0.tar.gz 48608 BLAKE2B 595ae32f958727dd1b03a25bd2db66805b91ebe043239b262de56a6e595710ad380e373fa2d6e142372549a32519e6bbbc6ad8d393d7072d0ff6d7f019cec1ad SHA512 aa55b6fbca764e7de2992e294b7be9dc90b25f88b64ba0cd2d1d93042402d4360b4c2cdc134a94b083da0c0bc83de8fa7185c0856bcc96fa25828c10a793fba7
|
||||
DIST packaging-19.1.tar.gz 57886 BLAKE2B e1a92ffd93773447b2b077ca7738a633c70e48b0f302abb5d90410ea3ae860dfa5e1a3f04901e85f53a10903d548b90c894c2ba71587bb475b910fa0571f82b6 SHA512 1dec7f49c325801eb85b11432f8a316d228bb1881a04ac546f5556d60f5fa33f8085d0e91bbd5abfeb30bfcb05ec0532ed75a977dc996e256b4dc8c27c10e79b
|
||||
EBUILD packaging-19.0.ebuild 1445 BLAKE2B 5d7a9a7e1bbcae06df7cf2002263a9e59154b7d5661a2a0b47487fadcfb5c47785fc3dca7c88c6cba0133a60009635777877d6762ae3e46e7d81c0c47866b1fb SHA512 a6bd31766b3c7f84d641952104768c3d75f6705ae07758f3bc66851547058ca26bbc8a372d8cc90bfebc6ad46ede85140e6a42ae92b2f3366a924655e0f36b52
|
||||
EBUILD packaging-19.1.ebuild 1445 BLAKE2B 5d7a9a7e1bbcae06df7cf2002263a9e59154b7d5661a2a0b47487fadcfb5c47785fc3dca7c88c6cba0133a60009635777877d6762ae3e46e7d81c0c47866b1fb SHA512 a6bd31766b3c7f84d641952104768c3d75f6705ae07758f3bc66851547058ca26bbc8a372d8cc90bfebc6ad46ede85140e6a42ae92b2f3366a924655e0f36b52
|
||||
MISC metadata.xml 366 BLAKE2B 62088f9e06b99999bcb0082f1ff6d6e243c8502a7e3f399699cded85fa65395f558e019b08342c73e4f078183cd0732d88058fab8fba984ba0b531c19ff6560c SHA512 f326b75f4603bc9e4455665dd526e381eb1973c8edc319e1d69b824f93ee885931fa29e74f9da8582f5af78a1ddba2fcc2d983fb98cbdc4cfd87b82c7a0f3ba4
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
# 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} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Core utilities for Python packages"
|
||||
HOMEPAGE="https://github.com/pypa/packaging https://pypi.org/project/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 ~x86-fbsd ~amd64-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
|
||||
}
|
||||
Reference in New Issue
Block a user