mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
dev-python/appdirs: Clean old versions up
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST appdirs-1.4.0.tar.gz 14358 SHA256 8fc245efb4387a4e3e0ac8ebcc704582df7d72ff6a42a53f5600bbb18fdaadc5 SHA512 a16fbad419e593acf1b58a3f8f893d206b3fc1a269757213a34d129e6fc39aa041efacb7964d326b82376373315357c93e85b272f374a096d9a63e73e3ce1dac WHIRLPOOL 0e12bf1875e489fbfb2ed48b125917bb6e176b90051a0afe2b64f431bbd1f5be499b7c0631302513387c440a05b2eb067fefaf54141424c260834cba854b7e6f
|
||||
DIST appdirs-1.4.1.tar.gz 9486 SHA256 b45f2af7f028906134ad368d401bf51952554bcfa389e3c4feee50739dbc1642 SHA512 e228c2e6b7e09ec82997a7b2bf53137ac32d4dc9d085950b84fa03dbcf29b2ddb175fcb93fde7e65629dccd1f1d74c0e77d4b435563a79a7aa5f15ebb276c3bf WHIRLPOOL 38c092b5dbbcc999631ba88107a3321f4a6220c5890c6f8b9e491d8680eb3bc6492f3423133dedcde41990935901ae79edcaad2666207a6560a788a0518e6eaf
|
||||
DIST appdirs-1.4.3.tar.gz 9641 SHA256 5ce44e43c3fd537ce1aaf72141c525aa67032a5af0a14dcf755621e69d72414b SHA512 787f551ef5af355bbc77ffb3059553fab77614cce466b4145e4b55fecb8553d329f8748865fd69005d13451a9b11229a65721095a122db83a8433a2661503dfc WHIRLPOOL 4e88de235789556a220134c9b6cc1741d6fb65070c62e278c94585e3adc464562e3dc259340a8147b33de417e9533b7bc40cc66eb558d04ec3b197f5a092980e
|
||||
|
||||
@@ -1,42 +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="Module for determining appropriate platform-specific dirs"
|
||||
HOMEPAGE="https://github.com/ActiveState/appdirs"
|
||||
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 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# api.doctests is missing in the dist zipfile
|
||||
# and the 'internal' doctest does nothing
|
||||
RESTRICT=test
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-distutils.patch )
|
||||
|
||||
python_test() {
|
||||
cd test || die
|
||||
"${PYTHON}" test.py \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
[[ ${PV} == 1.4.0 ]] || die "Please remove pkg_preinst from the ebuild"
|
||||
pkg_preinst() {
|
||||
_remove_egg_info() {
|
||||
local pyver="$("${PYTHON}" -c 'import sys; print(sys.version[:3])')"
|
||||
local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info"
|
||||
if [[ -d ${egginfo} ]]; then
|
||||
einfo "Removing ${egginfo}"
|
||||
rm -r "${egginfo}" || die
|
||||
fi
|
||||
}
|
||||
python_foreach_impl _remove_egg_info
|
||||
}
|
||||
@@ -1,23 +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="Module for determining appropriate platform-specific dirs"
|
||||
HOMEPAGE="https://github.com/ActiveState/appdirs"
|
||||
SRC_URI="https://github.com/ActiveState/${PN}/archive/${PV}.tar.gz -> ${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-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.4.0-distutils.patch )
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" test/test_api.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
Force setup.py to use distutils in order to break setuptools cyclic dependency.
|
||||
|
||||
--- appdirs-1.4.0/setup.py
|
||||
+++ appdirs-1.4.0/setup.py
|
||||
@@ -2,7 +2,7 @@
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
-from setuptools import setup
|
||||
+from distutils.core import setup
|
||||
import appdirs
|
||||
|
||||
tests_require = []
|
||||
@@ -38,8 +38,6 @@
|
||||
Programming Language :: Python :: 3.2
|
||||
Topic :: Software Development :: Libraries :: Python Modules
|
||||
""".split('\n') if c.strip()],
|
||||
- test_suite='test.test_api',
|
||||
- tests_require=tests_require,
|
||||
keywords='application directory log cache user',
|
||||
author='Trent Mick',
|
||||
author_email='trentm@gmail.com',
|
||||
Reference in New Issue
Block a user