1 |
commit: 4352dec3805e291b38311262ce85354d0b6d485e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 30 07:17:25 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 30 12:22:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4352dec3 |
7 |
|
8 |
dev-python/sqlalchemy: Bump to 1.4.12 |
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.12.ebuild | 66 ++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest |
17 |
index cace5abe242..c6d71f6f6ca 100644 |
18 |
--- a/dev-python/sqlalchemy/Manifest |
19 |
+++ b/dev-python/sqlalchemy/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST SQLAlchemy-1.3.24.tar.gz 6353598 BLAKE2B 6eb92b20fa3412a1f1398e18e902e3338320973287afa4a37477ec28d47e7422a19c3a60e6290a6da7b23512c0d818a26400958d02097def778c917f098bb3db SHA512 4f5f0a23e80e1cebe541f8748a7e794e8964d986252803b3289a7cea732ad22557e00221775332e2766b6ff16ad5d9069223f441f8880ca6d0c47011f15fee5b |
22 |
DIST SQLAlchemy-1.4.11.tar.gz 7551299 BLAKE2B 65f560223f1f1656ec90a2b46b5447e92908cb7a8124f1a16f59ae04e5c22b9c4b7a30cbc0d1c8ebf31d31f544619223bdff0546fcfe6124195c4430bc8167c5 SHA512 28d5da109d754183e7f1887c652c47cd7162afec285a44ed6bc51566dc40d43cdb8cd1794f93f31b2e085488025f04243613d500936c220aaab3aedb75fb6dcd |
23 |
+DIST SQLAlchemy-1.4.12.tar.gz 7583069 BLAKE2B a3097c53ba1c8e979c3eab712e51da39214710e174a90cdabd5f5588fcb01d2d45436e8019a1026780474e2fde7663495cffa411c58b255e847aa584a38ca26a SHA512 5863e4982c260d39e79db3a8fffd7ca6710b7f6ab0f73f9ddb09860e27d679fe2c92e0eaab9fe6914b38be4390c0eb685adef6624b06874fb43d96027b545659 |
24 |
|
25 |
diff --git a/dev-python/sqlalchemy/sqlalchemy-1.4.12.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.4.12.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..35866923996 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sqlalchemy/sqlalchemy-1.4.12.ebuild |
30 |
@@ -0,0 +1,66 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( pypy3 python3_{7..9} ) |
37 |
+PYTHON_REQ_USE="sqlite?" |
38 |
+ |
39 |
+inherit distutils-r1 multiprocessing optfeature |
40 |
+ |
41 |
+MY_PN="SQLAlchemy" |
42 |
+MY_P="${MY_PN}-${PV/_beta/b}" |
43 |
+ |
44 |
+DESCRIPTION="Python SQL toolkit and Object Relational Mapper" |
45 |
+HOMEPAGE="https://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" |
46 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" |
47 |
+S="${WORKDIR}/${MY_P}" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
52 |
+IUSE="examples +sqlite test" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ $(python_gen_cond_dep ' |
56 |
+ dev-python/importlib_metadata[${PYTHON_USEDEP}] |
57 |
+ ' python3_7 pypy3) |
58 |
+" |
59 |
+# Use pytest-xdist to speed up tests |
60 |
+BDEPEND=" |
61 |
+ test? ( |
62 |
+ $(python_gen_impl_dep sqlite) |
63 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+distutils_enable_tests pytest |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # remove optional/partial dep on greenlet, greenlet is not very portable |
71 |
+ sed -i -e '/greenlet/d' setup.cfg || die |
72 |
+ |
73 |
+ distutils-r1_src_prepare |
74 |
+} |
75 |
+ |
76 |
+python_test() { |
77 |
+ # Disable tests hardcoding function call counts specific to Python versions. |
78 |
+ epytest --ignore test/aaa_profiling \ |
79 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
80 |
+} |
81 |
+ |
82 |
+python_install_all() { |
83 |
+ if use examples; then |
84 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
85 |
+ dodoc -r examples |
86 |
+ fi |
87 |
+ |
88 |
+ distutils-r1_python_install_all |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ optfeature "MySQL support" dev-python/mysqlclient dev-python/pymysql \ |
93 |
+ dev-python/mysql-connector-python |
94 |
+ optfeature "mssql support" dev-python/pymssql |
95 |
+ optfeature "postgresql support" dev-python/psycopg:2 |
96 |
+} |