1 |
commit: 13dce2e706799c43aeb8cc4cfeb1b08b42e407bd |
2 |
Author: Matthew Bakhtiari <dev <AT> mtbk <DOT> me> |
3 |
AuthorDate: Sat May 15 08:29:49 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 1 00:27:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13dce2e7 |
7 |
|
8 |
dev-python/pluginbase: add python3.9 support |
9 |
|
10 |
Closes: https://bugs.gentoo.org/789264 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Matthew <dev <AT> mtbk.me> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/20814 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
.../files/pluginbase-1.0.0-python3.9.patch | 120 +++++++++++++++++++++ |
17 |
dev-python/pluginbase/pluginbase-1.0.0.ebuild | 6 +- |
18 |
2 files changed, 124 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/pluginbase/files/pluginbase-1.0.0-python3.9.patch b/dev-python/pluginbase/files/pluginbase-1.0.0-python3.9.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..8c83198dae3 |
23 |
--- /dev/null |
24 |
+++ b/dev-python/pluginbase/files/pluginbase-1.0.0-python3.9.patch |
25 |
@@ -0,0 +1,120 @@ |
26 |
+From ad876a1282423c5e677392814eec09d826fd311e Mon Sep 17 00:00:00 2001 |
27 |
+From: Matthew Bakhtiari <dev@××××.me> |
28 |
+Date: Mon, 10 May 2021 05:47:33 +0200 |
29 |
+Subject: [PATCH 1/5] Add python 3.8 and 3.9 support |
30 |
+ |
31 |
+--- |
32 |
+ setup.py | 2 ++ |
33 |
+ 1 file changed, 2 insertions(+) |
34 |
+ |
35 |
+diff --git a/setup.py b/setup.py |
36 |
+index 012827f..ef63b70 100644 |
37 |
+--- a/setup.py |
38 |
++++ b/setup.py |
39 |
+@@ -37,6 +37,8 @@ |
40 |
+ 'Programming Language :: Python :: 3.5', |
41 |
+ 'Programming Language :: Python :: 3.6', |
42 |
+ 'Programming Language :: Python :: 3.7', |
43 |
++ 'Programming Language :: Python :: 3.8', |
44 |
++ 'Programming Language :: Python :: 3.9', |
45 |
+ 'Programming Language :: Python :: Implementation :: PyPy', |
46 |
+ 'Environment :: Plugins', |
47 |
+ 'Intended Audience :: Developers', |
48 |
+ |
49 |
+From 28d1baa81ac17c2281c8ca439ca0444910740ae5 Mon Sep 17 00:00:00 2001 |
50 |
+From: Matthew Bakhtiari <dev@××××.me> |
51 |
+Date: Mon, 10 May 2021 05:49:53 +0200 |
52 |
+Subject: [PATCH 2/5] Remove deprecated yield_fixture |
53 |
+ |
54 |
+--- |
55 |
+ tests/conftest.py | 2 +- |
56 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
57 |
+ |
58 |
+diff --git a/tests/conftest.py b/tests/conftest.py |
59 |
+index a43b8cf..e20513b 100644 |
60 |
+--- a/tests/conftest.py |
61 |
++++ b/tests/conftest.py |
62 |
+@@ -20,7 +20,7 @@ def source(base): |
63 |
+ identifier='demo') |
64 |
+ |
65 |
+ |
66 |
+-@××××××.yield_fixture(scope='function', autouse=True) |
67 |
++@××××××.fixture(scope='function', autouse=True) |
68 |
+ def run_garbage_collection(): |
69 |
+ gc.collect() |
70 |
+ try: |
71 |
+ |
72 |
+From 95edc820811dac75a5f8d11697cbe197b4024efb Mon Sep 17 00:00:00 2001 |
73 |
+From: Matthew Bakhtiari <dev@××××.me> |
74 |
+Date: Mon, 10 May 2021 06:26:32 +0200 |
75 |
+Subject: [PATCH 3/5] Remove deprecated tests |
76 |
+ |
77 |
+--- |
78 |
+ tox.ini | 2 +- |
79 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
80 |
+ |
81 |
+diff --git a/tox.ini b/tox.ini |
82 |
+index dbea2bd..678eff6 100644 |
83 |
+--- a/tox.ini |
84 |
++++ b/tox.ini |
85 |
+@@ -1,5 +1,5 @@ |
86 |
+ [tox] |
87 |
+-envlist = py26,py27,py33,py34,py35,py36,pypy |
88 |
++envlist = py27,py34,py35,py36,py37,py38,py39,pypy |
89 |
+ |
90 |
+ [testenv] |
91 |
+ commands = make test |
92 |
+ |
93 |
+From 06ab2ca2ee843e62a1a6bf26ef2d118995a4f210 Mon Sep 17 00:00:00 2001 |
94 |
+From: Matthew Bakhtiari <dev@××××.me> |
95 |
+Date: Mon, 10 May 2021 06:32:07 +0200 |
96 |
+Subject: [PATCH 4/5] Remove old versions from travis.yml |
97 |
+ |
98 |
+--- |
99 |
+ .travis.yml | 5 +++-- |
100 |
+ 1 file changed, 3 insertions(+), 2 deletions(-) |
101 |
+ |
102 |
+diff --git a/.travis.yml b/.travis.yml |
103 |
+index 743a38a..739db3e 100644 |
104 |
+--- a/.travis.yml |
105 |
++++ b/.travis.yml |
106 |
+@@ -1,11 +1,12 @@ |
107 |
+ language: python |
108 |
+ python: |
109 |
+- - "2.6" |
110 |
+ - "2.7" |
111 |
+- - "3.3" |
112 |
+ - "3.4" |
113 |
+ - "3.5" |
114 |
+ - "3.6" |
115 |
++ - "3.7" |
116 |
++ - "3.8" |
117 |
++ - "3.9" |
118 |
+ - "pypy" |
119 |
+ |
120 |
+ install: |
121 |
+ |
122 |
+From 382037ce6cd81e2767143db744d1049081051ce3 Mon Sep 17 00:00:00 2001 |
123 |
+From: Matthew Bakhtiari <dev@××××.me> |
124 |
+Date: Mon, 10 May 2021 06:37:02 +0200 |
125 |
+Subject: [PATCH 5/5] Remove old versions from setup.py |
126 |
+ |
127 |
+--- |
128 |
+ setup.py | 2 -- |
129 |
+ 1 file changed, 2 deletions(-) |
130 |
+ |
131 |
+diff --git a/setup.py b/setup.py |
132 |
+index ef63b70..8f9f4e6 100644 |
133 |
+--- a/setup.py |
134 |
++++ b/setup.py |
135 |
+@@ -29,10 +29,8 @@ |
136 |
+ classifiers=[ |
137 |
+ 'License :: OSI Approved :: BSD License', |
138 |
+ 'Programming Language :: Python', |
139 |
+- 'Programming Language :: Python :: 2.6', |
140 |
+ 'Programming Language :: Python :: 2.7', |
141 |
+ 'Programming Language :: Python :: 3', |
142 |
+- 'Programming Language :: Python :: 3.3', |
143 |
+ 'Programming Language :: Python :: 3.4', |
144 |
+ 'Programming Language :: Python :: 3.5', |
145 |
+ 'Programming Language :: Python :: 3.6', |
146 |
|
147 |
diff --git a/dev-python/pluginbase/pluginbase-1.0.0.ebuild b/dev-python/pluginbase/pluginbase-1.0.0.ebuild |
148 |
index 0524feaefd6..4a3320d7185 100644 |
149 |
--- a/dev-python/pluginbase/pluginbase-1.0.0.ebuild |
150 |
+++ b/dev-python/pluginbase/pluginbase-1.0.0.ebuild |
151 |
@@ -1,9 +1,9 @@ |
152 |
-# Copyright 1999-2020 Gentoo Authors |
153 |
+# Copyright 1999-2021 Gentoo Authors |
154 |
# Distributed under the terms of the GNU General Public License v2 |
155 |
|
156 |
EAPI=7 |
157 |
|
158 |
-PYTHON_COMPAT=( python3_{7,8} ) |
159 |
+PYTHON_COMPAT=( python3_{7..9} ) |
160 |
|
161 |
inherit distutils-r1 |
162 |
|
163 |
@@ -24,6 +24,8 @@ DEPEND="${RDEPEND} |
164 |
test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
165 |
" |
166 |
|
167 |
+PATCHES="${FILESDIR}/${P}-python3.9.patch" |
168 |
+ |
169 |
python_prepare_all() { |
170 |
sed -e "s/, 'sphinx.ext.intersphinx'//" \ |
171 |
-i docs/conf.py || die |