public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/databases/
Date: Wed, 26 May 2021 01:57:57 +0000 (UTC)	[thread overview]
Message-ID: <1621994252.3fc4fdd1f5b1c382817d6e58de487c3f0f26adda.cybertailor@gentoo> (raw)

commit:     3fc4fdd1f5b1c382817d6e58de487c3f0f26adda
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed May 26 01:28:14 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Wed May 26 01:57:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3fc4fdd1

dev-python/databases: add 0.4.3, drop 0.4.1

Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/databases/Manifest                      |  2 +-
 ...tabases-0.4.1.ebuild => databases-0.4.3.ebuild} | 34 +++++++++++-----------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/dev-python/databases/Manifest b/dev-python/databases/Manifest
index 7a97fb822..ede27d281 100644
--- a/dev-python/databases/Manifest
+++ b/dev-python/databases/Manifest
@@ -1 +1 @@
-DIST databases-0.4.1.tar.gz 26359 BLAKE2B e1974e48560b186c4d9f017c3468ccfa425deef8aea6541c17076c1567036eabb16d3267178ca02b5f8e1aaf1cc4b5a0cce1431ed496b1852bb17a9d74b6705c SHA512 9df0bf1597015f120cef44fc270f353b75d712bcc9cc635b55d69892ba1f4ead9402230382a74caaefff75f4fac2d29e79d3014a8658404072e460c5a1d22ce1
+DIST databases-0.4.3.tar.gz 26517 BLAKE2B 38b9f86e42740a723f4022b225913e0e7a2c635eb34793fcbf62efa0917ddb6b7ee3b59cce7f4c8503aef31befb0caea3fb3e655617606296cb8ae1bb4cebfc7 SHA512 aa49f1a33edd3bf9ae7aa203dcef4941d1a1766c930cbe34405caf3dca0801bbca494ec39357591b6339977b86294d32a031bf2020f206436e7d19edc6a8e158

diff --git a/dev-python/databases/databases-0.4.1.ebuild b/dev-python/databases/databases-0.4.3.ebuild
similarity index 58%
rename from dev-python/databases/databases-0.4.1.ebuild
rename to dev-python/databases/databases-0.4.3.ebuild
index 99c8e4e2a..0330e7794 100644
--- a/dev-python/databases/databases-0.4.1.ebuild
+++ b/dev-python/databases/databases-0.4.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{8..9} )
 
 DOCS_BUILDER="mkdocs"
 DOCS_DEPEND="dev-python/mkdocs-material"
@@ -21,28 +21,15 @@ LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-IUSE="doc"
+RDEPEND="<dev-python/sqlalchemy-1.4.0[${PYTHON_USEDEP}]"
 
-# Requires 'TEST_DATABASE_URLS' to be set
-# but to what, there is no documentation on this
-# besides this looks like it requires internet so it will fail anyway
-# To fix this, the whole 'TEST_DATABASE_URLS' stuff should probably be commented out
-# or we download whatever 'TEST_DATABASE_URLS' is supposed to point at and the variable
-# to that local directory
-RESTRICT="test"
-
-RDEPEND=">=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]"
-
-# autoflake, codecov also required for tests?
-DEPEND="test? (
-	dev-python/aiomysql[${PYTHON_USEDEP}]
+BDEPEND="test? (
 	dev-python/aiopg[${PYTHON_USEDEP}]
 	dev-python/aiosqlite[${PYTHON_USEDEP}]
 	dev-python/asyncpg[${PYTHON_USEDEP}]
 	dev-python/psycopg[${PYTHON_USEDEP}]
 	dev-python/pymysql[${PYTHON_USEDEP}]
 	dev-python/starlette[${PYTHON_USEDEP}]
-	dev-python/requests[${PYTHON_USEDEP}]
 )"
 
 distutils_enable_tests pytest
@@ -50,13 +37,26 @@ distutils_enable_tests pytest
 python_prepare_all() {
 	# do not install LICENSE to /usr/
 	sed -i -e '/data_files/d' setup.py || die
+	# fix tests
+	sed -i -e '/databases.backends.mysql/d' tests/test_connection_options.py || die
 
 	distutils-r1_python_prepare_all
 }
 
+python_test() {
+	TEST_DATABASE_URLS="" epytest \
+		--deselect tests/test_connection_options.py::test_mysql_pool_size \
+		--deselect tests/test_connection_options.py::test_mysql_explicit_pool_size \
+		--deselect tests/test_connection_options.py::test_mysql_ssl \
+		--deselect tests/test_connection_options.py::test_mysql_explicit_ssl \
+		--deselect tests/test_connection_options.py::test_mysql_pool_recycle \
+		--deselect tests/test_databases.py \
+		--deselect tests/test_integration.py::test_integration
+}
+
 pkg_postinst() {
 	optfeature "postgresql support" dev-python/asyncpg dev-python/psycopg
-	optfeature "mysql support" dev-python/aiomysql dev-python/pymysql
+	optfeature "mysql support" dev-python/pymysql
 	optfeature "sqlite support" dev-python/aiosqlite
 	optfeature "postgresql+aiopg support" dev-python/aiopg
 }


             reply	other threads:[~2021-05-26  1:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-26  1:57 Anna Vyalkova [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-11-17 22:32 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/databases/ Henri Gasc
2022-11-17 15:38 Anna Vyalkova
2022-11-11 18:55 Anna Vyalkova
2022-11-11 18:50 Anna Vyalkova
2022-07-03 11:40 Andrew Ammerlaan
2022-05-12  9:14 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2022-05-12  9:14 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-12-14  7:14 Anna Vyalkova
2021-06-08 19:21 Anna Vyalkova
2020-12-18 16:26 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-12-18 15:52 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-09-24 12:50 Andrew Ammerlaan
2020-09-24 12:50 Andrew Ammerlaan
2020-05-02 10:00 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-05-02 10:00 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-05-01 15:39 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-05-01 15:36 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-03-19 19:07 Andrew Ammerlaan
2020-03-18 19:13 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1621994252.3fc4fdd1f5b1c382817d6e58de487c3f0f26adda.cybertailor@gentoo \
    --to=cyber+gentoo@sysrq.in \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox