Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/appdirs/files/, dev-python/appdirs/
Date: Sun, 27 Feb 2022 18:36:00
Message-Id: 1645986833.32bedc00aa47fec1f57f77d74378e1436d9f545d.mgorny@gentoo
1 commit: 32bedc00aa47fec1f57f77d74378e1436d9f545d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 18:33:53 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 18:33:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32bedc00
7
8 dev-python/appdirs: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/appdirs/appdirs-1.4.4-r1.ebuild | 24 -------------------
13 .../appdirs/files/appdirs-1.4.4-distutils.patch | 28 ----------------------
14 2 files changed, 52 deletions(-)
15
16 diff --git a/dev-python/appdirs/appdirs-1.4.4-r1.ebuild b/dev-python/appdirs/appdirs-1.4.4-r1.ebuild
17 deleted file mode 100644
18 index 40b01efb70d6..000000000000
19 --- a/dev-python/appdirs/appdirs-1.4.4-r1.ebuild
20 +++ /dev/null
21 @@ -1,24 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -# note the patch below
28 -DISTUTILS_USE_SETUPTOOLS=no
29 -PYTHON_COMPAT=( python3_{7..10} pypy3 )
30 -
31 -inherit distutils-r1
32 -
33 -DESCRIPTION="Module for determining appropriate platform-specific dirs"
34 -HOMEPAGE="https://github.com/ActiveState/appdirs"
35 -SRC_URI="https://github.com/ActiveState/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
36 -
37 -LICENSE="MIT"
38 -SLOT="0"
39 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
40 -
41 -PATCHES=( "${FILESDIR}"/${PN}-1.4.4-distutils.patch )
42 -
43 -python_test() {
44 - "${PYTHON}" test/test_api.py -v || die "Tests fail with ${EPYTHON}"
45 -}
46
47 diff --git a/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch b/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch
48 deleted file mode 100644
49 index 73b871889a0b..000000000000
50 --- a/dev-python/appdirs/files/appdirs-1.4.4-distutils.patch
51 +++ /dev/null
52 @@ -1,28 +0,0 @@
53 -From 231643d6865c89f304990bb7f5dc9066f3daeb95 Mon Sep 17 00:00:00 2001
54 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
55 -Date: Wed, 13 May 2020 08:50:29 +0200
56 -Subject: [PATCH] Install via distutils to break cyclic dep with setuptools
57 -
58 ----
59 - setup.py | 5 +----
60 - 1 file changed, 1 insertion(+), 4 deletions(-)
61 -
62 -diff --git a/setup.py b/setup.py
63 -index 7c582f6..fdb8005 100644
64 ---- a/setup.py
65 -+++ b/setup.py
66 -@@ -1,10 +1,7 @@
67 - #!/usr/bin/env python
68 - import os
69 - # appdirs is a dependency of setuptools, so allow installing without it.
70 --try:
71 -- from setuptools import setup
72 --except ImportError:
73 -- from distutils.core import setup
74 -+from distutils.core import setup
75 - import ast
76 -
77 -
78 ---
79 -2.26.2
80 -