dev-python/packaging: delete unnecessary package

This commit is contained in:
Dongsu Park 2021-09-02 17:33:40 +02:00
parent 20700135d2
commit 12a9149d67
7 changed files with 0 additions and 168 deletions

View File

@ -1,3 +0,0 @@
DIST packaging-15.3.tar.gz 34359 SHA256 1e9a6b9ad621bc1dbd3aa8dfff52abc4b44f5c14fbb406731c25cba250a5f61e SHA512 bd59408dc6ea2a4f8cb3a84b4d1e4284148a0f6fb2d3203f90885f608871f1f2315201427d08d2ca7b2d706bc5457c8a521b5edda9187e794522dbb8e46a663c WHIRLPOOL 197e9f26022383bf5962efbd562f1502bd5f0972a782c94f3188961d8d14167c25febee459ad5b3a731bafaf3f7e53e5b051d383382c169b58aff1cb521442f3
DIST packaging-16.6.tar.gz 44194 SHA256 a335d0778b77d3525875dfe66c2b880529e3bbde08e1a6604710ac36f851021a SHA512 221bedd71f942516be77e8146f5b64d5fcfd5aeeb20a7d2f76dcf4aa0164595192e6bb5a829965cefb149ebf523560e57cf09214801b1bceb395b9f59a4cd993 WHIRLPOOL cee4ce64142c1ec3d8ae1c3547e6b840959ffe1c3c08833b61f316f531b0d0fdb751908618762fae40cd5a9d29205a99a8cacefd30ada8a7216186ac116dc3b2
DIST packaging-16.8.tar.gz 44706 SHA256 5d50835fdf0a7edf0b55e311b7c887786504efea1177abd7e69329a8e5ea619e SHA512 d1a7b65472c7c02dd758f0c469d6c6aeea34de7b798613f7fcdf45fcccbeba1e9085cab113fa89b392a60f758f8747d13b1c265c809566990c22e61ca8db49bb WHIRLPOOL 611db9bbba97140abfa8097335cb13de2d548c0af731167c2d5f7236771cad47eaf66231c364611f1e6526464dedef8addaa9f0155bd5902f9008952f064d430

View File

@ -1,24 +0,0 @@
Force setup.py to use distutils
Bug: https://bugs.gentoo.org/563534
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
from __future__ import absolute_import, division, print_function
import os
-import setuptools
+from distutils.core import setup
base_dir = os.path.dirname(__file__)
@@ -31,7 +31,7 @@ with open(os.path.join(base_dir, "CHANGELOG.rst")) as f:
long_description = "\n".join([long_description, f.read()])
-setuptools.setup(
+setup(
name=about["__title__"],
version=about["__version__"],

View File

@ -1,14 +0,0 @@
--- 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__)

View File

@ -1,12 +0,0 @@
<?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">packaging</remote-id>
<remote-id type="github">pypa/packaging</remote-id>
</upstream>
</pkgmetadata>

View File

@ -1,31 +0,0 @@
# 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="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"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~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=""
DEPEND="${RDEPEND}
test? (
dev-python/pretend[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}"/${P}-distutils.patch )
python_test() {
py.test --capture=no --strict -v || die
}

View File

@ -1,33 +0,0 @@
# 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 ~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=""
DEPEND="${RDEPEND}
test? (
dev-python/pretend[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)
"
PDEPEND="
dev-python/pyparsing[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
python_test() {
py.test --capture=no --strict -v || die
}

View File

@ -1,51 +0,0 @@
# 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
}