summaryrefslogtreecommitdiff
path: root/dev-python/Frozen-Flask/files/Frozen-Flask-1.0.1-hatchling.patch
blob: f2c433b0b84fc4cec9fb6ff2380235a5c482eddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 8b2bd9f75deef895e3c9f076419b22a7b1fa63aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 14 Dec 2023 15:54:39 +0100
Subject: [PATCH] Fix finding packages witch hatchling >= 1.19.0

Explicitly specify the package name to install, in order to fix
compatibility with `hatchling >= 1.19.0`.  Starting with this version
(though Frozen-Flask is affected since 1.20.0, due to a bug
in hatchling), it is necessary to explicitly select packages if they
do not

As of hatchling >= 1.19.0, it is necessary to explicitly specify
`packages` to use if they do not fit the default heuristics (i.e. are
disjoint from the project name).

Since the package is now specified explicitly, the `exclude` rules are
no longer necessary.
---
 pyproject.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 2fdfefc..fcf6c1d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -52,7 +52,7 @@ path = 'flask_frozen/__init__.py'
 exclude = ['.*']
 
 [tool.hatch.build.targets.wheel]
-exclude = ['docs', 'tests']
+packages = ['flask_frozen']
 
 [tool.hatch.envs.doc]
 features = ['doc']