From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- dev-python/flask-security/Manifest | 7 ++- .../files/flask-security-3.4.3-optional-deps.patch | 63 +++++++++++++++++++ .../flask-security/flask-security-3.4.3.ebuild | 73 ++++++++++++++++++++++ .../flask-security/flask-security-3.4.4.ebuild | 73 ++++++++++++++++++++++ dev-python/flask-security/metadata.xml | 1 + 5 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch create mode 100644 dev-python/flask-security/flask-security-3.4.3.ebuild create mode 100644 dev-python/flask-security/flask-security-3.4.4.ebuild (limited to 'dev-python/flask-security') diff --git a/dev-python/flask-security/Manifest b/dev-python/flask-security/Manifest index 14932d47bc64..a15133caf48e 100644 --- a/dev-python/flask-security/Manifest +++ b/dev-python/flask-security/Manifest @@ -1,3 +1,8 @@ +AUX flask-security-3.4.3-optional-deps.patch 2287 BLAKE2B 5cd174499a3fc22e0888850332ccd0798927a3127d6b84b19dae2ae1cbb8c998b6e8e5246a76eb84712d932f80c77316201834ee048c05c2de6e190bf9aafed6 SHA512 08b0ebfadbf126d1c4dfbc51d222f5da797c40bafc11c923eb2a98c3f65778f2f5400e0ced37c5fc6318a7941dd036ae780dbc958980620bd075f0212c0ea49d DIST Flask-Security-3.0.0.tar.gz 160367 BLAKE2B c2e1449dc2807c2c40519fa3afb894157e17ecc9ff3f6dcf5ef0d02839a5988f827afd26c1d31af86d5e240e0ea8bfb8ed86354bb6a83535436b08721cac8f26 SHA512 09b94f0850372513add5c054c07aa465ecb95e8d1c414647e3ebee571ec08c94a29f0c138d092c02a55e242c422bc53f929ca066d671c082dcb29834ac753984 +DIST flask-security-3.4.3.gh.tar.gz 346540 BLAKE2B ab3b037282bc5b7777ceeaaaf869996f471bc3b954f0b2cf6d17ba44d4014c8c3ac8e34618bc7347bbd1cd6b1c649b49407cb05aad9bd748191c08b7326f679a SHA512 23ad8bc91df418361a556827ff8369777f3716dfd1c97fef6237ba9cb07813eac4033eb3fed80e9ebadeab4f2d2a956b5a652bec80825f939a9fc7d817aa3d90 +DIST flask-security-3.4.4.gh.tar.gz 348525 BLAKE2B 77a851c2549be9ce8612e3b186ad2d83d272b277f286885da491f3f0fe99e8836d145749ae137f1e75625c34b2214270ba4d24f1bfaa514012064dd38f083230 SHA512 1c1a4f079199704d7a2a4e11351cd199e3a790f5d0c7f68b240c299e83b129227fac4ca00caf45401efbf14520c1d65d3b710b85e8f53b495283b94a164f97a2 EBUILD flask-security-3.0.0.ebuild 1341 BLAKE2B fda0b3ef0eb3905478e61b3dd9b0728f974e090009af723aef9d5707196a875e992c0603f459cbc6c413ddae9bf4044ab6dbdf2dffe0f3deb5a02260eb28430c SHA512 9baf9297cc339569409cf9403bf9bf986433b236499e758406ecfb56751849fa3d1a2197da8e88f1aa64751224969c32330a6284def06806154f3a378774c90e -MISC metadata.xml 317 BLAKE2B 4889668ab37b857d0e46000d1663eb953b8f54b20e9ea16979d9db73b6d96b3fa8317bbb5cb10d9e4b4cf0268b966531e33b1bc4a9ab9758768120466999e9cd SHA512 4e5d572e3b4c865bd75763af3bf90a1aeae9a74865ed3da3aa8d00956158cf842a7fb8f2ec837bd53fda5e2a3266777c41bc109d64f31fe75a5d219f1dba1ed2 +EBUILD flask-security-3.4.3.ebuild 2137 BLAKE2B 541017d82745dd97953cdb88760b3991613aeb0c1d01e9e5c5cf7d1dfa19aa89fb001d51f439152a68bbd3a99b1c61232a2c1b246be90b8092f0f5a111cb057f SHA512 bf7cca110f94552e6836b424094687ebabf37180196fb461a9c10589f51fe225233d0196ae952b80e262a75fc8df98426f38929ccbfb834236ae3281c26ba55e +EBUILD flask-security-3.4.4.ebuild 2144 BLAKE2B 2aaf0c0290e6121c14325c1f4d158c646028ce871051f96d6027dffa095b035b20547e46cfdd11b9ba37bd8275e782c6eb64df75724f5243753c8dabeb3c47b9 SHA512 c1767593e7d093e61f94a8e36ab995debe7ba352d420412d8eff61a942bf2aff86b9753dfcde8d9487bfb212daa578e67a4c3b31a1b5c2eb3c610e28d980db13 +MISC metadata.xml 341 BLAKE2B e33881ccf51b30de5fa6831f144035f0e895f2e1720ef7ca9360a1196b7d6c587f736d4d868afbdbd6678ea020f41164a41c0ab99069bdddd253b7e5b9d80d04 SHA512 ec87dffdadc946be52ca0a12d9265250f5a0e08e833c0cbd6deda1e8eb70354c2fea0bdfcdbe86fc16072138972881112cc5a5b08f4179b85f89695b5b22f30d diff --git a/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch b/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch new file mode 100644 index 000000000000..484e816908f4 --- /dev/null +++ b/dev-python/flask-security/files/flask-security-3.4.3-optional-deps.patch @@ -0,0 +1,63 @@ +From 8943f49c3e6064839bd1e3c2c73a750b2b476ae3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= +Date: Wed, 15 Jul 2020 09:02:15 +0200 +Subject: [PATCH 1/2] tests: Skip tests requiring specific data backends if not + available + +Skip tests that require a specific database backend if the respective +package is not available. This is mostly intended to make it possible +to test flask-security on Python 3.9 since Pony does not support this +Python version but there is no harm in extending it to other backends. + +Technically, Flask-SQLAlchemy is still required due to other tests. +--- + tests/conftest.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tests/conftest.py b/tests/conftest.py +index 3305d92..a48f480 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -218,6 +218,7 @@ def mongoengine_datastore(request, app, tmpdir, realdburl): + + + def mongoengine_setup(request, app, tmpdir, realdburl): ++ pytest.importorskip('flask_mongoengine') + from flask_mongoengine import MongoEngine + from mongoengine.fields import ( + BooleanField, +@@ -282,6 +283,7 @@ def sqlalchemy_datastore(request, app, tmpdir, realdburl): + + + def sqlalchemy_setup(request, app, tmpdir, realdburl): ++ pytest.importorskip('flask_sqlalchemy') + from flask_sqlalchemy import SQLAlchemy + from flask_security.models import fsqla_v2 as fsqla + +@@ -326,6 +328,7 @@ def sqlalchemy_session_datastore(request, app, tmpdir, realdburl): + + + def sqlalchemy_session_setup(request, app, tmpdir, realdburl): ++ pytest.importorskip('sqlalchemy') + from sqlalchemy import create_engine + from sqlalchemy.orm import scoped_session, sessionmaker, relationship, backref + from sqlalchemy.ext.declarative import declarative_base +@@ -426,6 +429,7 @@ def peewee_datastore(request, app, tmpdir, realdburl): + + + def peewee_setup(request, app, tmpdir, realdburl): ++ pytest.importorskip('peewee') + from peewee import ( + TextField, + DateTimeField, +@@ -522,6 +526,7 @@ def pony_datastore(request, app, tmpdir, realdburl): + + def pony_setup(request, app, tmpdir, realdburl): + ++ pytest.importorskip('pony') + from pony.orm import Database, Optional, Required, Set + from pony.orm.core import SetInstance + +-- +2.27.0 + diff --git a/dev-python/flask-security/flask-security-3.4.3.ebuild b/dev-python/flask-security/flask-security-3.4.3.ebuild new file mode 100644 index 000000000000..3044071d1a63 --- /dev/null +++ b/dev-python/flask-security/flask-security-3.4.3.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Simple security for Flask apps" +HOMEPAGE=" + https://github.com/Flask-Middleware/flask-security/ + https://pypi.org/project/Flask-Security-Too/" +SRC_URI=" + https://github.com/Flask-Middleware/flask-security/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/cachetools[${PYTHON_USEDEP}] + >=dev-python/flask-1.1.1[${PYTHON_USEDEP}] + >=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}] + >=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}] + >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] + >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}] + >=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}] + >=dev-python/passlib-1.7.2[${PYTHON_USEDEP}] + >=dev-python/python-email-validator-1.0.5[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/Babel[${PYTHON_USEDEP}] + test? ( + >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.1.5[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}] + >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] + >=dev-python/flask-mongoengine-0.9.5[${PYTHON_USEDEP}] + >=dev-python/flask-sqlalchemy-2.3[${PYTHON_USEDEP}] + >=dev-python/mongomock-3.19.0[${PYTHON_USEDEP}] + >=dev-python/peewee-3.11.2[${PYTHON_USEDEP}] + >=dev-python/phonenumbers-8.11.1[${PYTHON_USEDEP}] + >=dev-python/psycopg-2.8.4:2[${PYTHON_USEDEP}] + >=dev-python/pymysql-0.9.3[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.2[${PYTHON_USEDEP}] + >=dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/pony-0.7.11[${PYTHON_USEDEP}] + ' python3_{6,7}) + )" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-optional-deps.patch +) + +src_prepare() { + sed -i -e '/setup_requires/d' setup.py || die + sed -e 's:--cov flask_security::' \ + -e 's:--cov-report term-missing::' \ + -e 's:--black::' \ + -e 's:--flake8::' \ + -e 's:--cache-clear::' \ + -i pytest.ini || die + distutils-r1_src_prepare +} + +python_configure_all() { + esetup.py compile_catalog +} diff --git a/dev-python/flask-security/flask-security-3.4.4.ebuild b/dev-python/flask-security/flask-security-3.4.4.ebuild new file mode 100644 index 000000000000..18073cabe061 --- /dev/null +++ b/dev-python/flask-security/flask-security-3.4.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="Simple security for Flask apps" +HOMEPAGE=" + https://github.com/Flask-Middleware/flask-security/ + https://pypi.org/project/Flask-Security-Too/" +SRC_URI=" + https://github.com/Flask-Middleware/flask-security/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/cachetools[${PYTHON_USEDEP}] + >=dev-python/flask-1.1.1[${PYTHON_USEDEP}] + >=dev-python/flask-babelex-0.9.3[${PYTHON_USEDEP}] + >=dev-python/flask-login-0.4.1[${PYTHON_USEDEP}] + >=dev-python/flask-principal-0.4.0[${PYTHON_USEDEP}] + >=dev-python/flask-wtf-0.14.2[${PYTHON_USEDEP}] + >=dev-python/itsdangerous-1.1.0[${PYTHON_USEDEP}] + >=dev-python/passlib-1.7.2[${PYTHON_USEDEP}] + >=dev-python/python-email-validator-1.0.5[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/Babel[${PYTHON_USEDEP}] + test? ( + >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] + >=dev-python/bcrypt-3.1.5[${PYTHON_USEDEP}] + >=dev-python/cryptography-2.3.1[${PYTHON_USEDEP}] + >=dev-python/flask-mail-0.9.1[${PYTHON_USEDEP}] + >=dev-python/flask-mongoengine-0.9.5[${PYTHON_USEDEP}] + >=dev-python/flask-sqlalchemy-2.3[${PYTHON_USEDEP}] + >=dev-python/mongomock-3.19.0[${PYTHON_USEDEP}] + >=dev-python/peewee-3.11.2[${PYTHON_USEDEP}] + >=dev-python/phonenumbers-8.11.1[${PYTHON_USEDEP}] + >=dev-python/psycopg-2.8.4:2[${PYTHON_USEDEP}] + >=dev-python/pymysql-0.9.3[${PYTHON_USEDEP}] + >=dev-python/pyqrcode-1.2[${PYTHON_USEDEP}] + >=dev-python/zxcvbn-4.4.28[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/pony-0.7.11[${PYTHON_USEDEP}] + ' python3_{6,7}) + )" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.3-optional-deps.patch +) + +src_prepare() { + sed -i -e '/setup_requires/d' setup.py || die + sed -e 's:--cov flask_security::' \ + -e 's:--cov-report term-missing::' \ + -e 's:--black::' \ + -e 's:--flake8::' \ + -e 's:--cache-clear::' \ + -i pytest.ini || die + distutils-r1_src_prepare +} + +python_configure_all() { + esetup.py compile_catalog +} diff --git a/dev-python/flask-security/metadata.xml b/dev-python/flask-security/metadata.xml index 2ac97148200c..bd009040dd29 100644 --- a/dev-python/flask-security/metadata.xml +++ b/dev-python/flask-security/metadata.xml @@ -5,6 +5,7 @@ python@gentoo.org Python + Flask-Security -- cgit v1.2.3