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