1 |
commit: 3a149525654eb8fefa77a6ed0daf373809cf3b14 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 21 05:10:11 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 21 06:07:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a149525 |
7 |
|
8 |
dev-python/sqlalchemy: Bump to 1.4.31 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sqlalchemy/Manifest | 1 + |
13 |
dev-python/sqlalchemy/sqlalchemy-1.4.31.ebuild | 72 ++++++++++++++++++++++++++ |
14 |
2 files changed, 73 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index 95e29e18190e..e9b39a136c9d 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST SQLAlchemy-1.4.27.tar.gz 7907686 BLAKE2B a9751a82e81bcdcf1bd344f0275c0ff89d |
21 |
DIST SQLAlchemy-1.4.28.tar.gz 7968048 BLAKE2B 1e08eefd5a6abbff5c7f7a09a67eb144e6e863b94c33224808507aa1c4392b0895ab4bd02a091c1b439fca1e0312d1f6c29c605fe5c8699438c9694603502b67 SHA512 26f88df36fd91aea40c1f5e233a3da962d2d28b47f9b3157f537ea1f6bc4dac43f7037025b55511eaaa377ffb05f5c5bd1e1c69596b58c1f193e98f437c0c831 |
22 |
DIST SQLAlchemy-1.4.29.tar.gz 7974880 BLAKE2B 8f9e06168f17ca1cf3f75a00f57fdc0cef0eaf014503233249b4185a5d87dac9870ffabae0c9b93de710f6893231bb020b3b157c29bf672823d3d0b8fa59970c SHA512 40f7b30db6c080061aa2d38c8257c1d9df4cd5a99425becc89ffb339bd764f60c6174fc85fc2dad8be248baf8e78c20b9ac28a5ddff0f58033fa7756517bb50f |
23 |
DIST SQLAlchemy-1.4.30.tar.gz 7997128 BLAKE2B 2ec7490d481b6e605e4f25bb3462be751268acd2e8c70b1c6febb9736d0fc3cfd3f09188a3a3f1860e78fa80e49bd27d68db75c6cbad45a3df6a61c6946d4a26 SHA512 13b80779b30a10af7f173ad162d54d38d807e7372d381f7b96adf2f728ccf20bb6a86d8f8b06ec828e71d0b4aa22d022686d290ea6b03629564f0fb2a80eca80 |
24 |
+DIST SQLAlchemy-1.4.31.tar.gz 7999646 BLAKE2B 4c394aaa4bc5636cc90f06017466c227b5e16fc54c3a9a42b18cc13906640e4710146325e870598f8905074bf6dad42ea524febc029b1dd5f063e978ebc9a442 SHA512 e54261fcf992845b2e6be47d23f530aec28c7517e6741b1b6a101b9888d3dc3162c1eeab0acc1edb33f56f1360bae3cdccdbcbff0e1e88e477c93d0cd910c17c |
25 |
|
26 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.31.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.31.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..aada0fac0e3e |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sqlalchemy/sqlalchemy-1.4.31.ebuild |
31 |
@@ -0,0 +1,72 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( pypy3 python3_{8..10} ) |
39 |
+PYTHON_REQ_USE="sqlite?" |
40 |
+ |
41 |
+inherit distutils-r1 optfeature |
42 |
+ |
43 |
+MY_PN="SQLAlchemy" |
44 |
+MY_P="${MY_PN}-${PV/_beta/b}" |
45 |
+ |
46 |
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper" |
47 |
+HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" |
48 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
49 |
+S="${WORKDIR}/${MY_P}" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
54 |
+IUSE="examples +sqlite test" |
55 |
+ |
56 |
+BDEPEND=" |
57 |
+ test? ( |
58 |
+ $(python_gen_impl_dep sqlite) |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+EPYTEST_IGNORE=( |
65 |
+ # hardcode call counts specific to Python versions |
66 |
+ test/aaa_profiling |
67 |
+) |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ sed -i -e '/greenlet/d' setup.cfg || die |
71 |
+ distutils-r1_src_prepare |
72 |
+} |
73 |
+ |
74 |
+python_test() { |
75 |
+ # upstream's test suite is horribly hacky; it relies on disabling |
76 |
+ # the warnings plugin and turning warnings into errors; this also |
77 |
+ # means that any DeprecationWarnings from third-party plugins cause |
78 |
+ # everything to explode |
79 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
80 |
+ local -x PYTEST_PLUGINS= |
81 |
+ # upstream automagically depends on xdist when it is importable |
82 |
+ if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then |
83 |
+ PYTEST_PLUGINS+=xdist.plugin |
84 |
+ fi |
85 |
+ epytest |
86 |
+} |
87 |
+ |
88 |
+python_install_all() { |
89 |
+ if use examples; then |
90 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
91 |
+ dodoc -r examples |
92 |
+ fi |
93 |
+ |
94 |
+ distutils-r1_python_install_all |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ optfeature "asyncio support" dev-python/greenlet |
99 |
+ optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \ |
100 |
+ dev-python/mysql-connector-python |
101 |
+ optfeature "mssql support" dev-python/pymssql |
102 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
103 |
+} |