From d6f9cbfa6d22d74fa7057875dd5f61f612e1567a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 11 Mar 2024 10:28:53 -0400 Subject: [PATCH] fix(hatch) use `bkpyvenv` --- projects/pypa.io/hatch/package.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/projects/pypa.io/hatch/package.yml b/projects/pypa.io/hatch/package.yml index f9b65eab..fa7eeacf 100644 --- a/projects/pypa.io/hatch/package.yml +++ b/projects/pypa.io/hatch/package.yml @@ -1,5 +1,5 @@ distributable: - # Make sure you're either building from a fully intact git repository + # Make sure you're either building from a fully intact git repository url: git+https://github.com/pypa/hatch.git ref: ${{version.tag}} @@ -8,19 +8,26 @@ versions: strip: /hatchling-v/ dependencies: - python.org: ~3.12 + pkgx.sh: ^1 runtime: env: - PYTHONPATH: ${{prefix}}/lib/python3.12/site-packages:$PYTHONPATH + PYTHONPATH: ${{prefix}}/venv/lib/python3/site-packages:$PYTHONPATH build: - python -m pip install --prefix={{prefix}} . + dependencies: + python.org: ~3.12 + script: + - bkpyvenv stage {{prefix}} {{version}} + - ${{prefix}}/venv/bin/pip install . + - bkpyvenv seal {{prefix}} hatch hatchling + - run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}} + working-directory: ${{prefix}}/venv/lib provides: - bin/hatch - bin/hatchling test: - - hatch env create 2>&1 | grep 'Creating environment' + - hatch env create - python -c 'import hatchling'