diff options
Diffstat (limited to 'dev-python/pymysql')
-rw-r--r-- | dev-python/pymysql/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pymysql/pymysql-1.0.3.ebuild | 118 | ||||
-rw-r--r-- | dev-python/pymysql/pymysql-1.1.0.ebuild | 2 |
3 files changed, 2 insertions, 122 deletions
diff --git a/dev-python/pymysql/Manifest b/dev-python/pymysql/Manifest index 7cb8eb783e9e..2f86e7a60056 100644 --- a/dev-python/pymysql/Manifest +++ b/dev-python/pymysql/Manifest @@ -1,5 +1,3 @@ -DIST PyMySQL-1.0.3.gh.tar.gz 85371 BLAKE2B 4caaf486413b0fd78acc04c6856b044048c5af28e2b8f85125dda83738daeb31f621726babd8ce724b01fc3f297769f09c2c77b60540cb5c66d152c61fd725e8 SHA512 46d56399b02e61b4b31af82f96cfbb6c24e0c18f780c872bde53a818ad74d30dfe8ded1fdac97971433b0e237e1007631a9c0e38ef2cb17b6601c77f624faf8b DIST PyMySQL-1.1.0.gh.tar.gz 90416 BLAKE2B b1f5d38edc1ec93ddbf9f841b3db6bddb8db13bd7a6100de2104f08152e2ce7813f6ea2d09c4bc301a6b83fb3eeb3e4ce0c3b4faf42cec25b5c157ea71d719a1 SHA512 c5b2cc1716707013d06146f22ff6e36ae1e54deb8864226a65c5325bafd476d7c53076ceb5cb35815c1baeb8e0ba8d03230366662f4abc0a304e849d8cb40d34 -EBUILD pymysql-1.0.3.ebuild 2888 BLAKE2B 8073410e0b9d61a14b253fee66e81728a2b61241a28e52fe30b33c01f11e77d3e7f2f5df5abfbe594e86ead0cd7fc83fffce1da47a7e084a752e81622de8a659 SHA512 3650cb077d587723a059f477d83756324eae0763ae05928f718cfcd6bc9cbd43c010e8f01b6d56845449fbbeecc228345d6230b73247f376ad0f1cfb06aed721 -EBUILD pymysql-1.1.0.ebuild 2889 BLAKE2B 5a558d9629e4ef19501219a6d32efa90a37fb97f66eadf83481f3f643cd96ce10077e86d1e8e9aa6f47cd56daef2cf24347955abb5244b358430ea8078311df7 SHA512 3e8f962ec6e8a44183d3cf8afd8be089bdf412b47e02b40388373d2b3563c9af6c732487351f4035edbf60a2ee5c9374bcc49f35b05cdda24c7099a979e15bb3 +EBUILD pymysql-1.1.0.ebuild 2889 BLAKE2B a1d3b9f8282cf991e136a8dfa48dd26978f4eadb8101a44bc87d740546437c27dd7f3b9c9f5f4ba8b2f43b5c257350feb76448fd7ec84c9b01e2f68af7296e6d SHA512 b15082517248d891e2240395e8af90580b78a1ed111e0e1f6c72d4c9d8f5c9d32cd2f55b5d09c2a216686802d0a3b06745b5ddb4e532f1a2790401f83569ad8f MISC metadata.xml 494 BLAKE2B b6e0ceebdd751d98a5bb60a107c94e8e0908559d8894dcfd06974f7910eb4ba13c5c3e1b9f92314b2cb030e51d4fb73dbc987102eee0d8263abf1f3588ecca46 SHA512 ac51ba234d09a327fc9a9e5b5ab826aeb51011597cdbe572411dab53b14a1e44cdf7429f0d2420810730ddd4921ee25c300d8239eb6c9f9aea391901c2252e29 diff --git a/dev-python/pymysql/pymysql-1.0.3.ebuild b/dev-python/pymysql/pymysql-1.0.3.ebuild deleted file mode 100644 index cd202b247cfb..000000000000 --- a/dev-python/pymysql/pymysql-1.0.3.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} pypy3 ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 - -MY_P="PyMySQL-${PV}" -DESCRIPTION="Pure-Python MySQL Driver" -HOMEPAGE=" - https://github.com/PyMySQL/PyMySQL/ - https://pypi.org/project/pymysql/ -" -SRC_URI=" - https://github.com/PyMySQL/PyMySQL/archive/v${PV}.tar.gz - -> ${MY_P}.gh.tar.gz -" -S=${WORKDIR}/${MY_P} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 ~sparc x86" - -# TODO: support other mysql variants -BDEPEND=" - test? ( - dev-db/mariadb[server] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - # Auth tests don't support socket auth - find tests/ -name '*_auth.py' -delete || die - - distutils-r1_src_prepare -} - -src_test() { - local -x USER=$(whoami) - local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}" - - einfo "Creating mysql test instance ..." - mkdir -p "${T}"/mysql || die - mysql_install_db \ - --no-defaults \ - --auth-root-authentication-method=normal \ - --basedir="${EPREFIX}/usr" \ - --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die - - einfo "Starting mysql test instance ..." - # TODO: random port - mysqld \ - --no-defaults \ - --character-set-server=utf8 \ - --bind-address=127.0.0.1 \ - --port=43306 \ - --pid-file="${T}"/mysqld.pid \ - --socket="${T}"/mysqld.sock \ - --datadir="${T}"/mysql 1>"${T}"/mysqld.log 2>&1 & - - # wait for it to start - local i - for (( i = 0; i < 10; i++ )); do - [[ -S ${T}/mysqld.sock ]] && break - sleep 1 - done - [[ ! -S ${T}/mysqld.sock ]] && die "mysqld failed to start" - - einfo "Configuring test mysql instance ..." - - # note: ed25519 was removed since it fails -- upstream README indicates - # it can fail if we used a different server version - mysql -uroot --socket="${T}"/mysqld.sock -s -e ' - CREATE DATABASe test1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; - CREATE DATABASE test2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; - ' || die "Failed to create test databases" - - cat > pymysql/tests/databases.json <<-EOF || die - [{ - "host": "localhost", - "user": "root", - "password": "", - "database": "test1", - "use_unicode": true, - "local_infile": true, - "unix_socket": "${T}/mysqld.sock" - }, { - "host": "localhost", - "user": "root", - "password": "", - "database": "test2", - "unix_socket": "${T}/mysqld.sock" - }] - EOF - - nonfatal distutils-r1_src_test - local ret=${?} - - einfo "Stopping mysql test instance ..." - pkill -F "${T}"/mysqld.pid || die - - [[ ${ret} -ne 0 ]] && die -} - -python_test() { - local EPYTEST_DESELECT=( - # requires some dialog plugin - pymysql/tests/test_connection.py::TestAuthentication::testDialogAuthThreeAttemptsQuestionsInstallPlugin - pymysql/tests/test_connection.py::TestAuthentication::testDialogAuthTwoQuestionsInstallPlugin - ) - - epytest -} diff --git a/dev-python/pymysql/pymysql-1.1.0.ebuild b/dev-python/pymysql/pymysql-1.1.0.ebuild index ca93a8c02c02..78327ee2fc28 100644 --- a/dev-python/pymysql/pymysql-1.1.0.ebuild +++ b/dev-python/pymysql/pymysql-1.1.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit distutils-r1 |