1 |
commit: 619386f88d5172f5965feec648e5be439f6f8c05 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 11:44:37 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 13:18:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=619386f8 |
7 |
|
8 |
dev-python/sqlalchemy: Bump to 1.4.34 |
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.34.ebuild | 77 ++++++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index 54fa49a8494e..a8231818fc7b 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST SQLAlchemy-1.3.24.tar.gz 6353598 BLAKE2B 6eb92b20fa3412a1f1398e18e902e3338320973287afa4a37477ec28d47e7422a19c3a60e6290a6da7b23512c0d818a26400958d02097def778c917f098bb3db SHA512 4f5f0a23e80e1cebe541f8748a7e794e8964d986252803b3289a7cea732ad22557e00221775332e2766b6ff16ad5d9069223f441f8880ca6d0c47011f15fee5b |
22 |
DIST SQLAlchemy-1.4.31.tar.gz 7999646 BLAKE2B 4c394aaa4bc5636cc90f06017466c227b5e16fc54c3a9a42b18cc13906640e4710146325e870598f8905074bf6dad42ea524febc029b1dd5f063e978ebc9a442 SHA512 e54261fcf992845b2e6be47d23f530aec28c7517e6741b1b6a101b9888d3dc3162c1eeab0acc1edb33f56f1360bae3cdccdbcbff0e1e88e477c93d0cd910c17c |
23 |
DIST SQLAlchemy-1.4.32.tar.gz 8077546 BLAKE2B 8eb0b617cdc147da21722f3e9b7c9c0659c9bc02f0530c724a7c8afafa9ea018c0558b58baa0387d84627115d474e87996fe8c7768ac53d55a0c817bc8f167b7 SHA512 e9bc125cb531182c97c9588bc7b87028ec334efe63d81d0bee0e7f74b0ce88ac183236298a05cdac42f3a0241b543528bf6f225d199e4bf6d8199caca63581bd |
24 |
+DIST SQLAlchemy-1.4.34.tar.gz 8133799 BLAKE2B ec8b14bf4df2d9188805bf49aac394d5944e234099bcb9f20cbbb4114c757bee5933d1fd7025e6eda01bf7be6603cae83ff751928783134031ddf1ccf5d36da7 SHA512 c3158dc2c52dd865d98b84ce4cf0adde38300504d5f5ff61f953927baf8f2264d53255f6e83e2ce2f720529f1e8b3e57e684d56a57fd6a0881bd4f1ba10b373f |
25 |
|
26 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.34.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.34.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1bb418de0bfe |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sqlalchemy/sqlalchemy-1.4.34.ebuild |
31 |
@@ -0,0 +1,77 @@ |
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 ~hppa ~ia64 ~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 |
+ local EPYTEST_DESELECT=() |
76 |
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( |
77 |
+ test/ext/test_associationproxy.py::ProxyHybridTest::test_msg_fails_on_cls_access |
78 |
+ ) |
79 |
+ |
80 |
+ # upstream's test suite is horribly hacky; it relies on disabling |
81 |
+ # the warnings plugin and turning warnings into errors; this also |
82 |
+ # means that any DeprecationWarnings from third-party plugins cause |
83 |
+ # everything to explode |
84 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
85 |
+ local -x PYTEST_PLUGINS= |
86 |
+ # upstream automagically depends on xdist when it is importable |
87 |
+ if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then |
88 |
+ PYTEST_PLUGINS+=xdist.plugin |
89 |
+ fi |
90 |
+ epytest |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ if use examples; then |
95 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
96 |
+ dodoc -r examples |
97 |
+ fi |
98 |
+ |
99 |
+ distutils-r1_python_install_all |
100 |
+} |
101 |
+ |
102 |
+pkg_postinst() { |
103 |
+ optfeature "asyncio support" dev-python/greenlet |
104 |
+ optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \ |
105 |
+ dev-python/mysql-connector-python |
106 |
+ optfeature "mssql support" dev-python/pymssql |
107 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
108 |
+} |