Skip to content

Commit

Permalink
devel/py-hatch: Allow build with py-hatchling 1.22.0+
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change

Obtained from:	pypa/hatch@5271279
  • Loading branch information
sunpoet committed Mar 31, 2024
1 parent f9f97b2 commit 47f7525
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devel/py-hatch/Makefile
@@ -1,5 +1,6 @@
PORTNAME= hatch
PORTVERSION= 1.9.4
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -15,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.3.0:devel/py-hatch-vcs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>=1.21.0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=8.0.6:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>=0<1.22.0:devel/py-hatchling@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}httpx>=0.22.0:www/py-httpx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hyperlink>=21.0.0:www/py-hyperlink@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}keyring>=23.5.0,1:security/py-keyring@${PY_FLAVOR} \
Expand Down
24 changes: 24 additions & 0 deletions devel/py-hatch/files/patch-hatchling
@@ -0,0 +1,24 @@
Obtained from: https://github.com/pypa/hatch/commit/5271279ae85a45ef42ce91bba3b226133ed92e71

--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
+++ pyproject.toml
@@ -39,7 +39,7 @@ dependencies = [
]
dependencies = [
"click>=8.0.6",
- "hatchling<1.22",
+ "hatchling",
"httpx>=0.22.0",
"hyperlink>=21.0.0",
"keyring>=23.5.0",
--- src/hatch/cli/build/__init__.py.orig 2020-02-02 00:00:00 UTC
+++ src/hatch/cli/build/__init__.py
@@ -57,7 +57,7 @@ def build(app: Application, location, targets, hooks_o
from hatch.config.constants import AppEnvVars
from hatch.utils.fs import Path
from hatch.utils.structures import EnvVars
- from hatchling.builders.constants import BuildEnvVars
+ from hatchling.builders.constants import EDITABLES_REQUIREMENT, BuildEnvVars
from hatchling.builders.plugin.interface import BuilderInterface

path = str(Path(location).resolve()) if location else None

0 comments on commit 47f7525

Please sign in to comment.