mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
dev-python/appdirs: Remove redundant versions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST appdirs-1.4.3.tar.gz 9641 BLAKE2B edd7f6372e25279f6ba0f36cda595649cab7e69430e22bfdfd1bb5aa8d566a4a2fbf24c281adf80ab3eafea93f0f4f79b396688134395c3e5565476f24db75df SHA512 787f551ef5af355bbc77ffb3059553fab77614cce466b4145e4b55fecb8553d329f8748865fd69005d13451a9b11229a65721095a122db83a8433a2661503dfc
|
||||
DIST appdirs-1.4.4.tar.gz 9840 BLAKE2B cb9466f4a7f7c1d6f5b6d7ca031820ec4d3450afcaa8ba571e35387c3109ede4e2afbf2c1141a9d01d13798f55524d5efd3fa12546a9378abbda405353938d79 SHA512 4c0e1e8dcd3f91b8b2d215b3f1e2ffaa85137fe054d07d3a2d442b1419e3b44e96fdea1620bd000bd3f4744f71b71f07280094f073df0ff008fac902af614656
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# note the patch below
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} 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 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.4.3-distutils.patch )
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
[[ ${PV} == 1.4.3 ]] || 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,25 +0,0 @@
|
||||
Force setup.py to use distutils in order to break setuptools cyclic dependency.
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -3,10 +3,7 @@
|
||||
import os
|
||||
import os.path
|
||||
# appdirs is a dependency of setuptools, so allow installing without it.
|
||||
-try:
|
||||
- from setuptools import setup
|
||||
-except ImportError:
|
||||
- from distutils.core import setup
|
||||
+from distutils.core import setup
|
||||
import appdirs
|
||||
|
||||
tests_require = []
|
||||
@@ -45,8 +42,6 @@
|
||||
Programming Language :: Python :: Implementation :: CPython
|
||||
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