diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-10-17 12:30:59 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-10-17 12:30:59 +0000 |
| commit | 599638a180ce034db585470c3d4db00240261c43 (patch) | |
| tree | 18b76b70112b19325353d7cbb94b513c1b91f47c /dev-python | |
| parent | 631582d895f1910e51702d7f6b843da8b98f6e23 (diff) | |
| download | baldeagleos-repo-599638a180ce034db585470c3d4db00240261c43.tar.gz baldeagleos-repo-599638a180ce034db585470c3d4db00240261c43.tar.xz baldeagleos-repo-599638a180ce034db585470c3d4db00240261c43.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/alembic/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/alembic/alembic-1.4.3.ebuild | 45 | ||||
| -rw-r--r-- | dev-python/alembic/files/alembic-1.4.3-pytest6.patch | 66 | ||||
| -rw-r--r-- | dev-python/bitarray/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/bitarray/bitarray-1.6.0.ebuild (renamed from dev-python/bitarray/bitarray-1.5.2.ebuild) | 0 | ||||
| -rw-r--r-- | dev-python/python-editor/python-editor-1.0.4-r1.ebuild (renamed from dev-python/python-editor/python-editor-1.0.4.ebuild) | 6 |
6 files changed, 114 insertions, 6 deletions
diff --git a/dev-python/alembic/Manifest b/dev-python/alembic/Manifest index 13fd1fccd5e2..1e0a60fc54a4 100644 --- a/dev-python/alembic/Manifest +++ b/dev-python/alembic/Manifest @@ -1 +1,2 @@ DIST alembic-1.4.2.tar.gz 1092045 BLAKE2B 5f4001a756aacbb4db509669bc0d4d7c59c38e2983c433283243efa97bf28a22e38bcfd28a4bc72573e8ab78d6590e78f4e12a5b9dd08b60cf5a84520b955056 SHA512 82bdfe442c19033aa2b802ec49edd13ed265c00a2b5a048490a83ffa8e53587c56a90b64d554e746a9189923419c528482cb7a7c950c210e0de47b32fa7c270e +DIST alembic-1.4.3.tar.gz 1108131 BLAKE2B d9c8b6d6aebce7a45194dd6c654f4a2627714a5c1f7cb7a1cf80ed8c3fe861e3bb7857811128787ddd6c093b4370784b40cddb385cfbd30f6134d537fe949d2d SHA512 925d8957fd9008d041737a9e79ec8d7a4c5deba1976e980362d355a75348c1638d783d9d48234a5bc3b2dc3f2f09dcb281d0c80ae0f0c5bc32e176c3dfa05463 diff --git a/dev-python/alembic/alembic-1.4.3.ebuild b/dev-python/alembic/alembic-1.4.3.ebuild new file mode 100644 index 000000000000..e23abf58a0b1 --- /dev/null +++ b/dev-python/alembic/alembic-1.4.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7,8,9} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="database migrations tool, written by the author of SQLAlchemy" +HOMEPAGE="https://github.com/sqlalchemy/alembic" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc" + +RDEPEND=" + >=dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + >=dev-python/python-editor-0.3[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] +" + +PATCHES=( + # https://github.com/sqlalchemy/alembic/commit/8690940976544f368dad31cfbc46d9e1426b2ce1 + "${FILESDIR}/${P}-pytest6.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # suite passes all if run from source. The residual fail & error are quite erroneous + rm tests/test_script_consumption.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/. ) + + distutils-r1_python_install_all +} diff --git a/dev-python/alembic/files/alembic-1.4.3-pytest6.patch b/dev-python/alembic/files/alembic-1.4.3-pytest6.patch new file mode 100644 index 000000000000..ecf21a7ca58f --- /dev/null +++ b/dev-python/alembic/files/alembic-1.4.3-pytest6.patch @@ -0,0 +1,66 @@ +From 8690940976544f368dad31cfbc46d9e1426b2ce1 Mon Sep 17 00:00:00 2001 +From: Mike Bayer <mike_mp@zzzcomputing.com> +Date: Sat, 26 Sep 2020 21:05:53 -0400 +Subject: [PATCH] Support pytest 6.x + +pytest has removed support for pytest.Class(..parent) +and we need to use from_parent. + +Also works around new issue for 6.1.0 + +References: https://github.com/pytest-dev/pytest/issues/7807 + +Change-Id: Ia5fed9b22e76c99f71489283acee207f996f52a4 +--- + alembic/__init__.py | 2 +- + alembic/testing/plugin/pytestplugin.py | 10 ++-------- + tox.ini | 4 ++-- + 3 files changed, 5 insertions(+), 11 deletions(-) + + sys.modules["alembic.migration"] = migration + sys.modules["alembic.environment"] = environment +diff --git a/alembic/testing/plugin/pytestplugin.py b/alembic/testing/plugin/pytestplugin.py +index 1c8be05..ba3d35b 100644 +--- a/alembic/testing/plugin/pytestplugin.py ++++ b/alembic/testing/plugin/pytestplugin.py +@@ -33,16 +33,10 @@ def pytest_configure(config): + 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) +- # ] ++ ctor = getattr(pytest.Class, "from_parent", pytest.Class) + + return [ +- pytest.Class(parametrize_cls.__name__, parent=collector) ++ ctor(name=parametrize_cls.__name__, parent=collector) + for parametrize_cls in _parametrize_cls(collector.module, obj) + ] + elif ( +diff --git a/tox.ini b/tox.ini +index ed233ee..f144754 100644 +--- a/tox.ini ++++ b/tox.ini +@@ -7,7 +7,7 @@ SQLA_REPO = {env:SQLA_REPO:git+https://github.com/sqlalchemy/sqlalchemy.git} + [testenv] + cov_args=--cov=alembic --cov-report term --cov-report xml + +-deps=pytest!=3.9.1,!=3.9.2 ++deps=pytest>4.6 + pytest-xdist + mock + sqla11: {[tox]SQLA_REPO}@rel_1_1 +@@ -30,7 +30,7 @@ usedevelop= + # only use --dropfirst option if we're *not* using -n; + # if -n is used, we're working in brand new DBs anyway + setenv= +- BASECOMMAND=python -m pytest ++ BASECOMMAND=python -m pytest --rootdir {toxinidir} + WORKERS=-n4 + sqla079: WORKERS=--dropfirst + cov: COVERAGE={[testenv]cov_args} diff --git a/dev-python/bitarray/Manifest b/dev-python/bitarray/Manifest index dd8416459a5b..da9211f99826 100644 --- a/dev-python/bitarray/Manifest +++ b/dev-python/bitarray/Manifest @@ -1,2 +1,2 @@ -DIST bitarray-1.5.2.tar.gz 53846 BLAKE2B d98e9a52c8942a66ec42d88cbc8a72926f748d201971d71dff3e11c10d44703e31a4c8e5121822afc52b961798069897ce887d04c58809d0116d21855a60679c SHA512 25090da4008738bce0536545d013ad209a836a481f75818bf39b55cfaa51b0b2b366c1daefba6291e7fcfe8047aa668700fba55c3a7658702613075da9994647 DIST bitarray-1.5.3.tar.gz 54371 BLAKE2B a1284639681bd5a5c19ca92557762fd5d2de90890bf7206dc8efc73a7b395e8212fdbef7fdca8c1e08784587bfc7ff3e931145e3734d659bc7a82cf347d1d558 SHA512 9f9cb2f0b8e7b66f062877079c043e1ded484a42e49b6926bc5cb019eda386c666ec1f1047a39d73306b23c3d5620373c9a7a79b1e67427ec668721eec432796 +DIST bitarray-1.6.0.tar.gz 55186 BLAKE2B 7e9126d49be871651a481b1c97063cb5efba1b111703af0d541186f2e8e5edbd18841c427a2e19349eb3600a9a33af8e77388f0fa11a02438dea6217ae1b5f04 SHA512 2439b2659e80de84ca37faeb58fbaa7e0ed070e6435b6db21adf5b24c551780f5803264540edb18172a81a990325c0c9705f6516ea4ce93f8266dfd74c75040d diff --git a/dev-python/bitarray/bitarray-1.5.2.ebuild b/dev-python/bitarray/bitarray-1.6.0.ebuild index 8cac921fd9e3..8cac921fd9e3 100644 --- a/dev-python/bitarray/bitarray-1.5.2.ebuild +++ b/dev-python/bitarray/bitarray-1.6.0.ebuild diff --git a/dev-python/python-editor/python-editor-1.0.4.ebuild b/dev-python/python-editor/python-editor-1.0.4-r1.ebuild index cd4c54e03632..2a6ab156117b 100644 --- a/dev-python/python-editor/python-editor-1.0.4.ebuild +++ b/dev-python/python-editor/python-editor-1.0.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{5,6,7,8,9} ) +PYTHON_COMPAT=( python3_{5,6,7,8,9} pypy3 ) inherit distutils-r1 DESCRIPTION="Programmatically open an editor, capture the result." @@ -13,7 +13,3 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 x86" -IUSE="" - -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" -RDEPEND="dev-python/six[${PYTHON_USEDEP}]" |
