* [gentoo-commits] repo/proj/guru:master commit in: dev-python/pyodbc/
@ 2021-10-09 6:44 Arthur Zamarin
0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2021-10-09 6:44 UTC (permalink / raw
To: gentoo-commits
commit: c8f470549bb5d76acdcfefeb2a3dfdbad824c065
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Oct 9 02:52:52 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 9 02:52:52 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8f47054
dev-python/pyodbc: enable py3.10, py3.9, pypy3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pyodbc/pyodbc-4.0.32.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pyodbc/pyodbc-4.0.32.ebuild b/dev-python/pyodbc/pyodbc-4.0.32.ebuild
index a2bd0483d..f74d56693 100644
--- a/dev-python/pyodbc/pyodbc-4.0.32.ebuild
+++ b/dev-python/pyodbc/pyodbc-4.0.32.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_8 )
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/pyodbc/
@ 2021-10-13 22:12 Haelwenn Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Haelwenn Monnier @ 2021-10-13 22:12 UTC (permalink / raw
To: gentoo-commits
commit: baca1bcdcf4a880afc9b4092376ad40637c50734
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Oct 9 19:56:28 2021 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sat Oct 9 19:56:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=baca1bcd
dev-python/pyodbc: remove pypy3 implementation
Closes: https://bugs.gentoo.org/817245
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/pyodbc/pyodbc-4.0.32.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/pyodbc/pyodbc-4.0.32.ebuild b/dev-python/pyodbc/pyodbc-4.0.32.ebuild
index f74d56693..0fa84fc25 100644
--- a/dev-python/pyodbc/pyodbc-4.0.32.ebuild
+++ b/dev-python/pyodbc/pyodbc-4.0.32.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_COMPAT=( python3_{8..10} ) # pypy3 https://github.com/mkleehammer/pyodbc/issues/915
inherit distutils-r1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/pyodbc/
@ 2024-05-14 22:50 Julien Roy
0 siblings, 0 replies; 3+ messages in thread
From: Julien Roy @ 2024-05-14 22:50 UTC (permalink / raw
To: gentoo-commits
commit: aa142ff479f52bcd224ccb965f36ca695c3c4347
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Tue May 14 22:09:52 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue May 14 22:09:52 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aa142ff4
dev-python/pyodbc: bump to 5.1.0, add python 3.12 support
Closes: https://bugs.gentoo.org/928260
Closes: https://bugs.gentoo.org/931410
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
dev-python/pyodbc/Manifest | 2 +-
dev-python/pyodbc/pyodbc-4.0.35.ebuild | 53 ----------------------------
dev-python/pyodbc/pyodbc-5.1.0.ebuild | 64 ++++++++++++++++++++++++++++++++++
3 files changed, 65 insertions(+), 54 deletions(-)
diff --git a/dev-python/pyodbc/Manifest b/dev-python/pyodbc/Manifest
index d705d9525a..2159c38d9e 100644
--- a/dev-python/pyodbc/Manifest
+++ b/dev-python/pyodbc/Manifest
@@ -1 +1 @@
-DIST pyodbc-4.0.35.tar.gz 273300 BLAKE2B cda55c3f880f5b8e243090a8150095e323bce5a28006d6105d8fcf4724a1f4219314591a4e53fc38844607d7714dffa5a221cd89c08dd5725aec251ca1977a18 SHA512 63b5191f5b57379e4767f94ecc83f80c73a3d40e7479753ccd7ff5ca27961be526bbf5ec169f9ca17c2ef7bd521507898be9b95110e290c4c69e1974c4c053f2
+DIST pyodbc-5.1.0.tar.gz 115450 BLAKE2B 8080db700abb952ae60045825f76e73a3d4a42f13c05e48eeb06574d5535f34345aa8bf2710730430229cb31b3d73c9fcb250d8d0fddabf94ecfcb24518bf931 SHA512 78817864d30048eed0c670a30e1cc66bc72edd6c21d069a5cc5831ed180b25a5b30d2bf2313628431943defbae66c2df96e90781ef17bb8929622b9f49cfcaab
diff --git a/dev-python/pyodbc/pyodbc-4.0.35.ebuild b/dev-python/pyodbc/pyodbc-4.0.35.ebuild
deleted file mode 100644
index 8925127fd8..0000000000
--- a/dev-python/pyodbc/pyodbc-4.0.35.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# No pypy3 support: https://github.com/mkleehammer/pyodbc/issues/915
-PYTHON_COMPAT=( python3_{10..11} )
-DISTUTILS_USE_PEP517=setuptools
-inherit databases edo distutils-r1 optfeature pypi
-
-DESCRIPTION="Python ODBC library"
-HOMEPAGE="
- https://pypi.org/project/pyodbc/
- https://github.com/mkleehammer/pyodbc
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="mssql"
-
-RDEPEND=">=dev-db/unixODBC-2.3.0"
-DEPEND="${RDEPEND}"
-BDEPEND="
- test? (
- ${DATABASES_DEPEND[mysql]}
- dev-db/myodbc:8.0
- )
-"
-
-distutils_enable_tests pytest
-
-python_test() {
- edo ${EPYTHON} tests3/run_tests.py -vv \
- --mysql "DRIVER=/usr/$(get_libdir)/myodbc-8.0/libmyodbc8a.so;SERVER=localhost;PORT=44444;DATABASE=test"
-}
-
-src_test() {
- emysql --start 44444
- distutils-r1_src_test
- emysql --stop
-}
-
-src_install() {
- distutils-r1_src_install
- rm "${D}/usr/pyodbc.pyi" || die
-}
-
-pkg_postinst() {
- optfeature "MS SQL Server support" dev-db/freetds-0.64[odbc]
- optfeature "MySQL support" dev-db/myodbc
- optfeature "PostgreSQL support" dev-db/psqlodbc
-}
diff --git a/dev-python/pyodbc/pyodbc-5.1.0.ebuild b/dev-python/pyodbc/pyodbc-5.1.0.ebuild
new file mode 100644
index 0000000000..f34c842921
--- /dev/null
+++ b/dev-python/pyodbc/pyodbc-5.1.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} ) #py3.13 doesn't compile
+
+inherit databases distutils-r1 optfeature pypi
+
+DESCRIPTION="Python ODBC library"
+HOMEPAGE="
+ https://pypi.org/project/pyodbc/
+ https://github.com/mkleehammer/pyodbc
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="mssql"
+
+RDEPEND=">=dev-db/unixODBC-2.3.0"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ test? (
+ ${DATABASES_DEPEND[mysql]}
+ dev-db/myodbc:8.0
+ )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # Broken test, generates a string longer than 4000 characters
+ tests/mysql_test.py::test_varchar
+)
+
+EPYTEST_IGNORE=(
+ # No easy way to run an SqlServer during tests
+ tests/sqlserver_test.py
+)
+
+python_test() {
+ export PYODBC_MYSQL="DRIVER=/usr/$(get_libdir)/myodbc-8.0/libmyodbc8a.so;SERVER=localhost;PORT=44444;DATABASE=test"
+ export PYODBC_POSTGRESQL="DRIVER=/usr/$(get_libdir)/psqlodbcw.so;SERVER=localhost;PORT=44445;DATABASE=test;UID=postgres"
+ epytest
+}
+
+src_test() {
+ emysql --start 44444
+ epostgres --start 44445
+ psql -U postgres -h 127.0.0.1 -p 44445 <<EOF
+CREATE DATABASE test OWNER postgres
+EOF
+ distutils-r1_src_test
+ epostgres --stop
+ emysql --stop
+}
+
+pkg_postinst() {
+ optfeature "MySQL support" dev-db/myodbc
+ optfeature "PostgreSQL support" dev-db/psqlodbc
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-14 22:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-13 22:12 [gentoo-commits] repo/proj/guru:master commit in: dev-python/pyodbc/ Haelwenn Monnier
-- strict thread matches above, loose matches on Subject: below --
2024-05-14 22:50 Julien Roy
2021-10-09 6:44 Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox