diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/appdirs | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/appdirs')
| -rw-r--r-- | dev-python/appdirs/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/appdirs/appdirs-1.4.3-r1.ebuild | 37 | ||||
| -rw-r--r-- | dev-python/appdirs/appdirs-1.4.4.ebuild | 24 | ||||
| -rw-r--r-- | dev-python/appdirs/files/appdirs-1.4.3-distutils.patch | 25 | ||||
| -rw-r--r-- | dev-python/appdirs/files/appdirs-1.4.4-distutils.patch | 28 | ||||
| -rw-r--r-- | dev-python/appdirs/metadata.xml | 22 |
6 files changed, 138 insertions, 0 deletions
diff --git a/dev-python/appdirs/Manifest b/dev-python/appdirs/Manifest new file mode 100644 index 000000000000..a48eab520dc9 --- /dev/null +++ b/dev-python/appdirs/Manifest @@ -0,0 +1,2 @@ +DIST appdirs-1.4.3.tar.gz 9641 BLAKE2B edd7f6372e25279f6ba0f36cda595649cab7e69430e22bfdfd1bb5aa8d566a4a2fbf24c281adf80ab3eafea93f0f4f79b396688134395c3e5565476f24db75df SHA512 787f551ef5af355bbc77ffb3059553fab77614cce466b4145e4b55fecb8553d329f8748865fd69005d13451a9b11229a65721095a122db83a8433a2661503dfc +DIST appdirs-1.4.4.tar.gz 9840 BLAKE2B cb9466f4a7f7c1d6f5b6d7ca031820ec4d3450afcaa8ba571e35387c3109ede4e2afbf2c1141a9d01d13798f55524d5efd3fa12546a9378abbda405353938d79 SHA512 4c0e1e8dcd3f91b8b2d215b3f1e2ffaa85137fe054d07d3a2d442b1419e3b44e96fdea1620bd000bd3f4744f71b71f07280094f073df0ff008fac902af614656 diff --git a/dev-python/appdirs/appdirs-1.4.3-r1.ebuild b/dev-python/appdirs/appdirs-1.4.3-r1.ebuild new file mode 100644 index 000000000000..fd8ec908ad0d --- /dev/null +++ b/dev-python/appdirs/appdirs-1.4.3-r1.ebuild @@ -0,0 +1,37 @@ +# 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 +} diff --git a/dev-python/appdirs/appdirs-1.4.4.ebuild b/dev-python/appdirs/appdirs-1.4.4.ebuild new file mode 100644 index 000000000000..76734e15ac07 --- /dev/null +++ b/dev-python/appdirs/appdirs-1.4.4.ebuild @@ -0,0 +1,24 @@ +# 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,9} 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.4-distutils.patch ) + +python_test() { + "${PYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch b/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch new file mode 100644 index 000000000000..e5245f255fef --- /dev/null +++ b/dev-python/appdirs/files/appdirs-1.4.3-distutils.patch @@ -0,0 +1,25 @@ +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', diff --git a/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch b/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch new file mode 100644 index 000000000000..73b871889a0b --- /dev/null +++ b/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch @@ -0,0 +1,28 @@ +From 231643d6865c89f304990bb7f5dc9066f3daeb95 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 13 May 2020 08:50:29 +0200 +Subject: [PATCH] Install via distutils to break cyclic dep with setuptools + +--- + setup.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 7c582f6..fdb8005 100644 +--- a/setup.py ++++ b/setup.py +@@ -1,10 +1,7 @@ + #!/usr/bin/env python + import os + # 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 ast + + +-- +2.26.2 + diff --git a/dev-python/appdirs/metadata.xml b/dev-python/appdirs/metadata.xml new file mode 100644 index 000000000000..4ea5129bb2a7 --- /dev/null +++ b/dev-python/appdirs/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> + <maintainer type="project"> + <email>openstack@gentoo.org</email> + <name>Openstack</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">appdirs</remote-id> + <remote-id type="github">ActiveState/appdirs</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
