Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scandir/, profiles/, dev-python/scandir/files/
Date: Sat, 18 Mar 2023 16:04:46
Message-Id: 1679155468.618bfbe7d912eebdc4e2dcc6c9638de120ae987b.soap@gentoo
1 commit: 618bfbe7d912eebdc4e2dcc6c9638de120ae987b
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 18 16:04:28 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 18 16:04:28 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618bfbe7
7
8 dev-python/scandir: treeclean
9
10 Closes: https://bugs.gentoo.org/828921
11 Closes: https://bugs.gentoo.org/895198
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 dev-python/scandir/Manifest | 1 -
15 .../scandir/files/scandir-1.10.0-python3.9.patch | 62 ----------------------
16 dev-python/scandir/metadata.xml | 16 ------
17 dev-python/scandir/scandir-1.10.0-r3.ebuild | 26 ---------
18 profiles/package.mask | 7 ---
19 5 files changed, 112 deletions(-)
20
21 diff --git a/dev-python/scandir/Manifest b/dev-python/scandir/Manifest
22 deleted file mode 100644
23 index 4e7260a6434e..000000000000
24 --- a/dev-python/scandir/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST scandir-1.10.0.tar.gz 33311 BLAKE2B 47576618c41a477ff7bab9daecf2e4719ed0c497a25fd68b4bacae073fc418f9fc51503812af726d1d124f07cccfb418ae09c196cf7ce283abf5d3bbc36b7e09 SHA512 42a570320018ffff2172ada67002334446c73c53813b36d63558d3854ded2fac0b266fcaf399cf9a735ceba110636b6901683fb26cde1e286ff476bc37e3d335
28
29 diff --git a/dev-python/scandir/files/scandir-1.10.0-python3.9.patch b/dev-python/scandir/files/scandir-1.10.0-python3.9.patch
30 deleted file mode 100644
31 index c8683c1c6b9b..000000000000
32 --- a/dev-python/scandir/files/scandir-1.10.0-python3.9.patch
33 +++ /dev/null
34 @@ -1,62 +0,0 @@
35 -https://github.com/benhoyt/scandir/commit/3396aa4155ffde8600a0e9ca50d5872569169b5d
36 -
37 -From 3396aa4155ffde8600a0e9ca50d5872569169b5d Mon Sep 17 00:00:00 2001
38 -From: Ben Hoyt <benhoyt@×××××.com>
39 -Date: Mon, 24 Jan 2022 08:44:07 +1300
40 -Subject: [PATCH] Add Python 3.10 to tests (#137)
41 -MIME-Version: 1.0
42 -Content-Type: text/plain; charset=UTF-8
43 -Content-Transfer-Encoding: 8bit
44 -
45 -Fix PyStructSequence_UnnamedField build issues on Python 3.9/3.10
46 -
47 -_scandir.c:663:7: error: conflicting type qualifiers for ‘PyStructSequence_UnnamedField’
48 - 663 | char *PyStructSequence_UnnamedField = "unnamed field";
49 - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50 -In file included from /usr/local/include/python3.10/Python.h:127,
51 - from _scandir.c:14:
52 -/usr/local/include/python3.10/structseq.h:22:27: note: previous declaration of ‘PyStructSequence_UnnamedField’ was here
53 - 22 | extern const char * const PyStructSequence_UnnamedField;
54 - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 -
56 -Fixes https://github.com/benhoyt/scandir/pull/137
57 ----
58 - _scandir.c | 10 +++++-----
59 - scandir.py | 2 +-
60 - 3 files changed, 7 insertions(+), 7 deletions(-)
61 -
62 -diff --git a/_scandir.c b/_scandir.c
63 -index 6cc28c8..433483f 100644
64 ---- a/_scandir.c
65 -+++ b/_scandir.c
66 -@@ -660,7 +660,7 @@ _pystat_fromstructstat(STRUCT_STAT *st)
67 - return v;
68 - }
69 -
70 --char *PyStructSequence_UnnamedField = "unnamed field";
71 -+static char *scandir_unnamed_field = "unnamed field";
72 -
73 - PyDoc_STRVAR(stat_result__doc__,
74 - "stat_result: Result from stat, fstat, or lstat.\n\n\
75 -@@ -681,7 +681,7 @@ static PyStructSequence_Field stat_result_fields[] = {
76 - {"st_uid", "user ID of owner"},
77 - {"st_gid", "group ID of owner"},
78 - {"st_size", "total size, in bytes"},
79 -- /* The NULL is replaced with PyStructSequence_UnnamedField later. */
80 -+ /* The NULL is replaced with scandir_unnamed_field later. */
81 - {NULL, "integer time of last access"},
82 - {NULL, "integer time of last modification"},
83 - {NULL, "integer time of last change"},
84 -@@ -1817,9 +1817,9 @@ init_scandir(void)
85 - if (!billion)
86 - INIT_ERROR;
87 -
88 -- stat_result_desc.fields[7].name = PyStructSequence_UnnamedField;
89 -- stat_result_desc.fields[8].name = PyStructSequence_UnnamedField;
90 -- stat_result_desc.fields[9].name = PyStructSequence_UnnamedField;
91 -+ stat_result_desc.fields[7].name = scandir_unnamed_field;
92 -+ stat_result_desc.fields[8].name = scandir_unnamed_field;
93 -+ stat_result_desc.fields[9].name = scandir_unnamed_field;
94 - PyStructSequence_InitType(&StatResultType, &stat_result_desc);
95 - structseq_new = StatResultType.tp_new;
96 - StatResultType.tp_new = statresult_new;
97
98 diff --git a/dev-python/scandir/metadata.xml b/dev-python/scandir/metadata.xml
99 deleted file mode 100644
100 index 525e3bfdcccb..000000000000
101 --- a/dev-python/scandir/metadata.xml
102 +++ /dev/null
103 @@ -1,16 +0,0 @@
104 -<?xml version="1.0" encoding="UTF-8"?>
105 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
106 -<pkgmetadata>
107 - <maintainer type="project">
108 - <email>python@g.o</email>
109 - <name>Python</name>
110 - </maintainer>
111 - <maintainer type="person">
112 - <email>monsieurp@g.o</email>
113 - <name>Patrice Clement</name>
114 - </maintainer>
115 - <upstream>
116 - <remote-id type="pypi">scandir</remote-id>
117 - <remote-id type="github">benhoyt/scandir</remote-id>
118 - </upstream>
119 -</pkgmetadata>
120
121 diff --git a/dev-python/scandir/scandir-1.10.0-r3.ebuild b/dev-python/scandir/scandir-1.10.0-r3.ebuild
122 deleted file mode 100644
123 index 3110d3be206b..000000000000
124 --- a/dev-python/scandir/scandir-1.10.0-r3.ebuild
125 +++ /dev/null
126 @@ -1,26 +0,0 @@
127 -# Copyright 1999-2023 Gentoo Authors
128 -# Distributed under the terms of the GNU General Public License v2
129 -
130 -EAPI=8
131 -
132 -DISTUTILS_USE_PEP517=setuptools
133 -# Do NOT add Python 3.11 without verifying the C extension is actually built
134 -# and installed for it!
135 -PYTHON_COMPAT=( python3_{9..10} )
136 -
137 -inherit distutils-r1 pypi
138 -
139 -DESCRIPTION="A better directory iterator and faster os.walk()"
140 -HOMEPAGE="https://github.com/benhoyt/scandir"
141 -
142 -LICENSE="BSD"
143 -SLOT="0"
144 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
145 -
146 -PATCHES=(
147 - "${FILESDIR}"/${P}-python3.9.patch
148 -)
149 -
150 -python_test() {
151 - "${EPYTHON}" test/run_tests.py -v || die "tests failed under ${EPYTHON}"
152 -}
153
154 diff --git a/profiles/package.mask b/profiles/package.mask
155 index 90fd97817a23..b5068fbb2d18 100644
156 --- a/profiles/package.mask
157 +++ b/profiles/package.mask
158 @@ -263,13 +263,6 @@ app-eselect/eselect-opencascade
159 # Removal on 2023-03-21. Bug #895342.
160 dev-python/flask-script
161
162 -# Sam James <sam@g.o> (2023-02-18)
163 -# Backport to Python 3.5(!) hence irrelevant for newer versions of Python
164 -# where os.scandir() and os.walk() improvements were integrated in the stdlib.
165 -# Incompatible with Python 3.11. No reverse dependencies.
166 -# Removal on 2023-03-18. bug #895198
167 -dev-python/scandir
168 -
169 # Michał Górny <mgorny@g.o> (2023-02-17)
170 # Merged into dev-python/pytest-cov in 2020. No revdeps left.
171 # Removal on 2023-03-19. Bug #895120.