forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/django-js-asset: Fix building with hatchling-1.19
Closes: https://bugs.gentoo.org/919785 Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
dev-python/django-js-asset/files/django-js-asset-2.1.0-hatchling.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 440ad305e76a0a948e0df54eb9b92b59c1ac9cb9 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]> | ||
Date: Tue, 12 Dec 2023 18:17:50 +0100 | ||
Subject: [PATCH] Fix building with hatchling-1.19 | ||
|
||
Explicitly specify package name, as hatchling-1.19 now does not include | ||
packages that do not match the project name by default, and raises | ||
an error instead. | ||
--- | ||
pyproject.toml | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/pyproject.toml b/pyproject.toml | ||
index cf963d8..478d8fc 100644 | ||
--- a/pyproject.toml | ||
+++ b/pyproject.toml | ||
@@ -42,6 +42,9 @@ tests = [ | ||
[project.urls] | ||
Homepage = "https://github.com/matthiask/django-js-asset/" | ||
|
||
+[tool.hatch.build.targets.wheel] | ||
+packages = ["js_asset"] | ||
+ | ||
[tool.hatch.version] | ||
path = "js_asset/__init__.py" | ||
|
||
-- | ||
2.43.0 | ||
|