diff options
Diffstat (limited to 'dev-python/sqlalchemy')
-rw-r--r-- | dev-python/sqlalchemy/Manifest | 12 | ||||
-rw-r--r-- | dev-python/sqlalchemy/files/sqlalchemy-0.7-logging.handlers.patch | 12 | ||||
-rw-r--r-- | dev-python/sqlalchemy/files/sqlalchemy-pytest-deprecation.patch | 67 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-0.7.10.ebuild | 67 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-1.2.18.ebuild | 70 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild | 14 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-1.3.3.ebuild | 2 | ||||
-rw-r--r-- | dev-python/sqlalchemy/sqlalchemy-1.3.4.ebuild | 64 |
8 files changed, 81 insertions, 227 deletions
diff --git a/dev-python/sqlalchemy/Manifest b/dev-python/sqlalchemy/Manifest index 8e1fb5360cf6..d098976e7d23 100644 --- a/dev-python/sqlalchemy/Manifest +++ b/dev-python/sqlalchemy/Manifest @@ -1,12 +1,6 @@ -AUX sqlalchemy-0.7-logging.handlers.patch 466 BLAKE2B d29b41491882359d22219da4257593e904d0775fa533c338f207b64f7e8b8f5f1b725cdafd3093cdb0de5123b9315a502fdc9db355e6c025f8267b2b1e519cb0 SHA512 a09af91fdd6a1cc9f219c9b45fbe2fa5d9a675d2c2dc769545af52fda44ced40f673426975a09dd943e6ba5087cf0c0caa771c106e0eb755c3ed97c4ddc267fa -DIST SQLAlchemy-0.7.10.tar.gz 3541639 BLAKE2B 641532caccb6fea333198ba0c5064f7714ff75348c00dc762da24211fe6ff210c9e335a5b31ad5429e14b26804bafde6d597203aacddbd98d949d1315851d348 SHA512 631bc4ffb419defa531a66d82449fe48f93c88371ba0b8ab4217d900a0d1d90efe9699d8a9048d5c2ed33948c6d2f7cae46452ee45d442914018f3361e804367 -DIST SQLAlchemy-1.2.18.tar.gz 5675143 BLAKE2B 2e0a54d16b64801cb60b619c39dfba64d3b1705ac43a89f6a3873c9fd1bb9af02d38d1026f309eb3d33ad20265da8b3731d7d7092bec8fa035e4d696d74f1d5f SHA512 a3074e0f7b9a307937f02ad030811413f3c92b7edcc4f1c6eda7c94c1178708f8c920840385a9b33c7952e224fe46dc73223aee00123e863abf6d1d446aebdb2 +AUX sqlalchemy-pytest-deprecation.patch 2695 BLAKE2B d71c791e39a6caf9d8e67dc61ede490749ee7774c8719238b9291dfdd1e0fd591f278baaa47b7b61b4729b9aa1017bebd2b2d6dee4d15a47b2ad6d1f3829ca0e SHA512 709c0f80bfef99a1ef42446cad94a9518535b07697de21a7b4a83ce22a2fd30df495747e8ce31dfed21291f8ffc56867ccc0b0eff4b38de41ef26c99685a46d1 DIST SQLAlchemy-1.3.11.tar.gz 6007784 BLAKE2B c889ea28ae08fcb83d338ab01a64533142428ee91a6c11b9a7f2116f99161c066e66f49d76bdd2c7600f1a7f86a2add217f49dda4cf97566a875f28d3d4b24be SHA512 c691539db4edd62af749087728dfd424010bfb3ca2cc8503a4b96c1625d059d4c2a748b9a35cc870cc99ca9df61966cce406f9b570b25e55c3632a99b8621e74 DIST SQLAlchemy-1.3.3.tar.gz 5864870 BLAKE2B d109e0daf0afdeaba946c4b18d14428c108ff15041876c9a35cf8e5783f9b9a1896e69760b249c53af35e4575e66f4b59c855b4a244d7f6569fadfb52c5a400d SHA512 f8e0f580ba5cc7eaed985e5a3af8cdcc2dddddcd64bdf02b247242eeab542b5666a93d46166b5edb4b28af3b89df44bccfa92d5bf94cc0e173dbcd369ae6487c -DIST SQLAlchemy-1.3.4.tar.gz 5877278 BLAKE2B 1200da89ce6ad077cc93c58a4e41f856a2222618b3570badf3bd8543d70659e0313e4add0ef779e98654dbd60f8445ae6839830ac15e72d9c0fa259eac328251 SHA512 6f29aeeceafcd996bbfc781b79dcbe0bbc681f1214cdab2d52b140bbae8492a633defa97dcc720db7a6d423b062834b0805e965e6183f88f99648a8f8f8a73dd -EBUILD sqlalchemy-0.7.10.ebuild 1594 BLAKE2B a17f6b8adedf40005bfdc2f3e39601083cd16e29d84c9f73332427e51d9ba38516b3f2952b66ec6dc8ea7ef59cec8569860400b04ad6217b15ecdb5878714443 SHA512 c723bcf5317afbf83fea22e43d96ceebeb25fac6d8d93642e63f2890743441fe55901e739db15b7f8457e1d9688e72ac04823ff64f3539b9768bf7c13c2b7324 -EBUILD sqlalchemy-1.2.18.ebuild 1802 BLAKE2B 789909dc2066de95c5baed9a4005f891519ea9261ede10ba04f1eb0bc71c329376ca5b40535b2125b00d0bbb58965de49239853ff11015e73f62babb8ac81223 SHA512 b2510a9e392c2fb08f0788e4282efdbf59ea1007e80455116c08633983aaad978fe9bdfa17cde28d2603407c55be7a64107ce076372da6a8a5cc86b7c50b5a46 -EBUILD sqlalchemy-1.3.11.ebuild 1530 BLAKE2B ab1d2b2f0288d1da6a71ae6038fca40dba1242093a298fc175d186e0dd45d3eb2763e0ee607d7eaf694511c07e6a302cf903b0007604c9a21caad679da9f438c SHA512 03c98c853d19f2c37126622ba48e210cbb6989caffeb4d816f63b15bdfa9edb0a90c5bb1140cbaa00429c8c4ce8567504fe2a969d0182855b97ff2ef55d200d6 -EBUILD sqlalchemy-1.3.3.ebuild 1634 BLAKE2B 5cf87b184c1c9cba2149a14e7f711fe22f8b1de5bebd1f0571d2f2d48ff0a0a9ee13057e5615f6f163a8b918c6089791047fb4ead0e7a04f26852861ef406b6b SHA512 6c3d1286491aa54e80f1eede55119ca7683c5ac3020d35ad4ec126361b4b3b156787a5e63f0a6dc722c1b2f416f71d49ca4bd4d55b8fd10f1a2c140b68bd0d3f -EBUILD sqlalchemy-1.3.4.ebuild 1646 BLAKE2B b37d8915694008971306941eb64c51423dc45493c2e9a6b66aef5036b5c25d011a3d04736c8abbde22c4654aabd3c6156ff51b32c4c010cb2c9182c65d304e96 SHA512 88623532cd2609a83fca57a0f583be9c1e3e3a4a721834f7bd14f2f2174942d75f4e32d40fd128594565bde44b45ab760ed5a5b97d5b3a50ccc9f9a9391036ec +EBUILD sqlalchemy-1.3.11.ebuild 1597 BLAKE2B 5249e620fb57fb233de665afefc7b5a1386328d9f593803a7b635d3cacb5231ee73653f9ecca62eee76abdc1e32b6d0e902c158b54dc26562565fa66bcb4fd62 SHA512 917441c2a4621ee1e96a7b42cf889983a4d6be002acb5b7d474e609543747c1e3e3621cc680c47a361109b5ae31a1f5a314b0815449eb01875f00942cd7f95ff +EBUILD sqlalchemy-1.3.3.ebuild 1631 BLAKE2B 170cdf4e5bd1710cfc78a8ccde24f2027339e40225d4f7a17e0c428ddacd577fac5cbe7712902aa4aa540bec49013890a5718b1a8c6f0f4f9e67806ad949f002 SHA512 e4cc7fa64088e031d15d0765211b3c92b475cc50d10da7d0f3094e624631679dde611c4cf3ddce2b96d983b157ca2e8463477e7e87a834b54eb9973ebc662a1d MISC metadata.xml 313 BLAKE2B 71212a9a3076b472b488bdb4e12fef98e16881a32a8383c5fa6a9008353d2e043dfe64cb536ecef145ba74ba77ef3a6c43d705d5072d1b56e11eacfadd1d0edd SHA512 ef6298f9e38312117a0d1ab1e63f2fb21ae51ff149053603c19437b90d954827858579ab8f021cb52919aff4474a27f5a598d8515a7e5a9f2e7e35aee53c5326 diff --git a/dev-python/sqlalchemy/files/sqlalchemy-0.7-logging.handlers.patch b/dev-python/sqlalchemy/files/sqlalchemy-0.7-logging.handlers.patch deleted file mode 100644 index 122ae43fe338..000000000000 --- a/dev-python/sqlalchemy/files/sqlalchemy-0.7-logging.handlers.patch +++ /dev/null @@ -1,12 +0,0 @@ -https://bitbucket.org/sqlalchemy/sqlalchemy/pull-request/41 ---- a/test/engine/test_execute.py -+++ b/test/engine/test_execute.py -@@ -9,7 +9,7 @@ - import sqlalchemy as tsa - from test.lib import testing, engines - from test.lib.engines import testing_engine --import logging -+import logging, logging.handlers - from sqlalchemy.dialects.oracle.zxjdbc import ReturningParam - from sqlalchemy.engine import base, default - from sqlalchemy.engine.base import Connection, Engine diff --git a/dev-python/sqlalchemy/files/sqlalchemy-pytest-deprecation.patch b/dev-python/sqlalchemy/files/sqlalchemy-pytest-deprecation.patch new file mode 100644 index 000000000000..ee09a7312e6a --- /dev/null +++ b/dev-python/sqlalchemy/files/sqlalchemy-pytest-deprecation.patch @@ -0,0 +1,67 @@ +From 993e6449e3f5f3532f6f5426b824718435ce6c6d Mon Sep 17 00:00:00 2001 +From: Mike Bayer <mike_mp@zzzcomputing.com> +Date: Thu, 12 Mar 2020 19:44:37 -0400 +Subject: [PATCH] Dont raise on pytest deprecation warnings + +py.test 5.4.0 emits deprecation warnings for pytest.Class. +make sure we don't raise for these, and log the code that will +be used for 5.4.0 when we bump requirements. + +Fixes: #5201 +Change-Id: I83e0402c4a6b2365a63b58d052c6989df3a37328 +--- + lib/sqlalchemy/testing/plugin/pytestplugin.py | 13 +++++++++++++ + lib/sqlalchemy/testing/warnings.py | 9 +++++++++ + 3 files changed, 29 insertions(+) + +diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py +index c39f9f32e..f2e7d706f 100644 +--- a/lib/sqlalchemy/testing/plugin/pytestplugin.py ++++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py +@@ -160,6 +160,11 @@ def pytest_collection_modifyitems(session, config, items): + if sub_cls is not test_class.cls: + per_cls_dict = rebuilt_items[test_class.cls] + ++ # in pytest 5.4.0 ++ # for inst in pytest.Class.from_parent( ++ # test_class.parent.parent, name=sub_cls.__name__ ++ # ).collect(): ++ + for inst in pytest.Class( + sub_cls.__name__, parent=test_class.parent.parent + ).collect(): +@@ -188,6 +193,14 @@ def pytest_collection_modifyitems(session, config, items): + def pytest_pycollect_makeitem(collector, name, obj): + + if inspect.isclass(obj) and plugin_base.want_class(name, obj): ++ ++ # in pytest 5.4.0 ++ # return [ ++ # pytest.Class.from_parent(collector, ++ # name=parametrize_cls.__name__) ++ # for parametrize_cls in _parametrize_cls(collector.module, obj) ++ # ] ++ + return [ + pytest.Class(parametrize_cls.__name__, parent=collector) + for parametrize_cls in _parametrize_cls(collector.module, obj) +diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py +index cc11e556c..6b42c98cb 100644 +--- a/lib/sqlalchemy/testing/warnings.py ++++ b/lib/sqlalchemy/testing/warnings.py +@@ -34,6 +34,15 @@ def setup_filters(): + # ignore 2.0 warnings unless we are explicitly testing for them + warnings.filterwarnings("ignore", category=sa_exc.RemovedIn20Warning) + ++ try: ++ import pytest ++ except ImportError: ++ pass ++ else: ++ warnings.filterwarnings( ++ "once", category=pytest.PytestDeprecationWarning ++ ) ++ + + def assert_warnings(fn, warning_msgs, regex=False): + """Assert that each of the given warnings are emitted by fn. diff --git a/dev-python/sqlalchemy/sqlalchemy-0.7.10.ebuild b/dev-python/sqlalchemy/sqlalchemy-0.7.10.ebuild deleted file mode 100644 index 900e011459cf..000000000000 --- a/dev-python/sqlalchemy/sqlalchemy-0.7.10.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -# py3 appears underdone, -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 eutils flag-o-matic - -MY_PN="SQLAlchemy" -MY_P="${MY_PN}-${PV/_}" - -DESCRIPTION="Python SQL toolkit and Object Relational Mapper" -HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm hppa ia64 ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="doc examples mssql mysql postgres +sqlite test" -RESTRICT="!test? ( test )" - -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - mssql? ( dev-python/pymssql ) - mysql? ( dev-python/mysql-python ) - postgres? ( >=dev-python/psycopg-2 ) - sqlite? ( - >=dev-db/sqlite-3.3.13 )" -DEPEND="${RDEPEND} - test? ( - >=dev-db/sqlite-3.3.13 - >=dev-python/nose-0.10.4[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( "${FILESDIR}/${PN}-0.7-logging.handlers.patch" ) - -python_prepare_all() { - # Disable tests hardcoding function call counts specific to Python versions. - rm -fr test/aaa_profiling - distutils-r1_python_prepare_all -} - -python_configure_all() { - append-flags -fno-strict-aliasing -} - -python_test() { - "${PYTHON}" sqla_nose.py || die -} - -python_install_all() { - distutils-r1_python_install_all - - if use doc; then - pushd doc > /dev/null - rm -fr build - dohtml -r [a-z]* _images _static - popd > /dev/null - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r examples - fi -} diff --git a/dev-python/sqlalchemy/sqlalchemy-1.2.18.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.2.18.ebuild deleted file mode 100644 index 7673c028bc66..000000000000 --- a/dev-python/sqlalchemy/sqlalchemy-1.2.18.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 ) -PYTHON_REQ_USE="sqlite?" - -inherit distutils-r1 eutils flag-o-matic - -MY_PN="SQLAlchemy" -MY_P="${MY_PN}-${PV/_beta/b}" - -DESCRIPTION="Python SQL toolkit and Object Relational Mapper" -HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" -IUSE="doc examples +sqlite test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="test? ( sqlite )" - -RDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}]" - -DEPEND=" - ${RDEPEND} - test? ( - >=dev-python/pytest-2.5.2[${PYTHON_USEDEP}] - !~dev-python/pytest-3.9.1[${PYTHON_USEDEP}] - !~dev-python/pytest-3.9.2[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}/${MY_P}" - -python_prepare_all() { - # Disable tests hardcoding function call counts specific to Python versions. - rm -r test/aaa_profiling || die - distutils-r1_python_prepare_all -} - -python_compile() { - if ! python_is_python3; then - local CFLAGS=${CFLAGS} - append-cflags -fno-strict-aliasing - fi - distutils-r1_python_compile -} - -python_test() { - pytest -vv test || die "Testsuite failed under ${EPYTHON}" -} - -python_install_all() { - use doc && HTML_DOCS=( doc/. ) - use examples && dodoc -r examples - - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python - optfeature "mssql support" dev-python/pymssql - optfeature "postgresql support" dev-python/psycopg:2 -} diff --git a/dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild index 838ac1c7939c..51afd67393d6 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.3.11.ebuild @@ -17,20 +17,26 @@ SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" IUSE="doc examples +sqlite test" REQUIRED_USE="test? ( sqlite )" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/mock[${PYTHON_USEDEP}] )" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" S="${WORKDIR}/${MY_P}" distutils_enable_tests pytest python_prepare_all() { + local PATCHES=( + "${FILESDIR}"/sqlalchemy-pytest-deprecation.patch + ) # Disable tests hardcoding function call counts specific to Python versions. rm -r test/aaa_profiling || die distutils-r1_python_prepare_all diff --git a/dev-python/sqlalchemy/sqlalchemy-1.3.3.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.3.3.ebuild index ed1d71da6fbc..d56dd5b0c5b6 100644 --- a/dev-python/sqlalchemy/sqlalchemy-1.3.3.ebuild +++ b/dev-python/sqlalchemy/sqlalchemy-1.3.3.ebuild @@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" IUSE="doc examples +sqlite test" RESTRICT="!test? ( test )" diff --git a/dev-python/sqlalchemy/sqlalchemy-1.3.4.ebuild b/dev-python/sqlalchemy/sqlalchemy-1.3.4.ebuild deleted file mode 100644 index 33bf1df96d82..000000000000 --- a/dev-python/sqlalchemy/sqlalchemy-1.3.4.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) -PYTHON_REQ_USE="sqlite?" - -inherit distutils-r1 eutils flag-o-matic - -MY_PN="SQLAlchemy" -MY_P="${MY_PN}-${PV/_beta/b}" - -DESCRIPTION="Python SQL toolkit and Object Relational Mapper" -HOMEPAGE="http://www.sqlalchemy.org/ https://pypi.org/project/SQLAlchemy/" -SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" -IUSE="doc examples +sqlite test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="test? ( sqlite )" - -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}/${MY_P}" - -python_prepare_all() { - # Disable tests hardcoding function call counts specific to Python versions. - rm -r test/aaa_profiling || die - distutils-r1_python_prepare_all -} - -python_compile() { - if ! python_is_python3; then - local CFLAGS=${CFLAGS} - append-cflags -fno-strict-aliasing - fi - distutils-r1_python_compile -} - -python_test() { - pytest -vv test || die "Testsuite failed under ${EPYTHON}" -} - -python_install_all() { - use doc && HTML_DOCS=( doc/. ) - use examples && dodoc -r examples - - distutils-r1_python_install_all -} - -pkg_postinst() { - optfeature "MySQL support" dev-python/mysql-python dev-python/mysql-connector-python - optfeature "mssql support" dev-python/pymssql - optfeature "postgresql support" dev-python/psycopg:2 -} |