From 33e845e2ae81bd2fbf1906579d1165d91f9066e4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 30 Jan 2023 08:00:41 +0100 Subject: dev-python/flask-migrate: Bump to 4.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../flask-migrate/flask-migrate-4.0.3.ebuild | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-python/flask-migrate/flask-migrate-4.0.3.ebuild (limited to 'dev-python/flask-migrate/flask-migrate-4.0.3.ebuild') diff --git a/dev-python/flask-migrate/flask-migrate-4.0.3.ebuild b/dev-python/flask-migrate/flask-migrate-4.0.3.ebuild new file mode 100644 index 000000000000..744044d9acbd --- /dev/null +++ b/dev-python/flask-migrate/flask-migrate-4.0.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +MY_P="Flask-Migrate-${PV}" +DESCRIPTION="SQLAlchemy database migrations for Flask applications using Alembic" +HOMEPAGE=" + https://github.com/miguelgrinberg/Flask-Migrate/ + https://pypi.org/project/Flask-Migrate/ +" +SRC_URI=" + https://github.com/miguelgrinberg/Flask-Migrate/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/alembic-1.9.0[${PYTHON_USEDEP}] + >=dev-python/flask-0.9[${PYTHON_USEDEP}] + >=dev-python/flask-sqlalchemy-1.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +python_test() { + local -x PATH=${T}/bin:${PATH} + + mkdir -p "${T}"/bin || die + cat > "${T}"/bin/flask <<-EOF || die + #!/bin/sh + exec ${EPYTHON} -m flask "\${@}" + EOF + chmod +x "${T}"/bin/flask || die + + eunittest +} -- cgit v1.2.3-65-gdbad