summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-11 10:17:09 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-11 11:36:33 +0100
commit8af3f372705cfd84b17a88dbb1eef119c27851b8 (patch)
treecac64c70649620afae119904306b5041a3077e35 /dev-python/Frozen-Flask
parentdev-python/mypy: Bump to 1.7.0 (diff)
downloadgentoo-8af3f372705cfd84b17a88dbb1eef119c27851b8.tar.gz
gentoo-8af3f372705cfd84b17a88dbb1eef119c27851b8.tar.bz2
gentoo-8af3f372705cfd84b17a88dbb1eef119c27851b8.zip
dev-python/Frozen-Flask: Bump to 1.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Frozen-Flask')
-rw-r--r--dev-python/Frozen-Flask/Frozen-Flask-1.0.0.ebuild32
-rw-r--r--dev-python/Frozen-Flask/Manifest1
-rw-r--r--dev-python/Frozen-Flask/files/Frozen-Flask-1.0.0-test-install.patch26
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/Frozen-Flask/Frozen-Flask-1.0.0.ebuild b/dev-python/Frozen-Flask/Frozen-Flask-1.0.0.ebuild
new file mode 100644
index 000000000000..ae51cc6b0c49
--- /dev/null
+++ b/dev-python/Frozen-Flask/Frozen-Flask-1.0.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Freezes a Flask application into a set of static files"
+HOMEPAGE="
+ https://github.com/Frozen-Flask/Frozen-Flask/
+ https://pypi.org/project/Frozen-Flask/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=dev-python/flask-2.0.0[${PYTHON_USEDEP}]
+"
+
+distutils_enable_sphinx docs \
+ dev-python/flask-sphinx-themes
+distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/Frozen-Flask/Frozen-Flask/commit/d3ef9a7315c1742b1d86c32444f5f07e50fa5fbf
+ "${FILESDIR}/${P}-test-install.patch"
+)
diff --git a/dev-python/Frozen-Flask/Manifest b/dev-python/Frozen-Flask/Manifest
index c58d5b858a48..3605194ba815 100644
--- a/dev-python/Frozen-Flask/Manifest
+++ b/dev-python/Frozen-Flask/Manifest
@@ -1 +1,2 @@
DIST Frozen-Flask-0.18.tar.gz 179245 BLAKE2B a82695892aef9b6b4e3aeb91f12f78d7d661f2f2b0efc57c11f64524ed467b85d8d9e0e7b147cb78c3d0a641dfef0f683e0f77cfda560aada79e1b435424c0ce SHA512 6c2e4d900547cc5c0de4af23b96c5b9e1925101fb40f710bedc67ac52c303282aa223f6972f5b9cc813878bb15eb90cb0a007619dd5a9db2dec762f04dcc7ba0
+DIST frozen_flask-1.0.0.tar.gz 101425 BLAKE2B a515c8ca700d166b9c11d2fa8d80634d7ba5581716888fc52db02292cdafbbf8e3b914a4e724b3e61464f83a8c921c9f380d6198ea264bce2dfb5991ea9f1cd7 SHA512 90ee0cbb02e563ac047d7acf7d1e17f4f0797d10d472b1dbc08345c130d79eda8e0aca7ec5b3a5dd7f839f0001ca24b189df118ccb2632ecbeba894b16df5e07
diff --git a/dev-python/Frozen-Flask/files/Frozen-Flask-1.0.0-test-install.patch b/dev-python/Frozen-Flask/files/Frozen-Flask-1.0.0-test-install.patch
new file mode 100644
index 000000000000..3e7dd97c6450
--- /dev/null
+++ b/dev-python/Frozen-Flask/files/Frozen-Flask-1.0.0-test-install.patch
@@ -0,0 +1,26 @@
+From d3ef9a7315c1742b1d86c32444f5f07e50fa5fbf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Fri, 10 Nov 2023 21:15:46 +0100
+Subject: [PATCH] Fix `pyproject.toml` not to install tests as top-level
+ package
+
+Fix the `pyproject.toml` configuration not to install e.g.:
+
+ /usr/lib/python3.11/site-packages/tests
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index aa8b90a..2fdfefc 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -52,7 +52,7 @@ path = 'flask_frozen/__init__.py'
+ exclude = ['.*']
+
+ [tool.hatch.build.targets.wheel]
+-exclude = ['docs']
++exclude = ['docs', 'tests']
+
+ [tool.hatch.envs.doc]
+ features = ['doc']