pantry/projects/pypa.io/hatch/package.yml

34 lines
767 B
YAML
Raw Normal View History

distributable:
2024-03-11 17:28:53 +03:00
# Make sure you're either building from a fully intact git repository
url: git+https://github.com/pypa/hatch.git
ref: ${{version.tag}}
versions:
github: pypa/hatch
strip: /hatchling-v/
dependencies:
2024-03-11 17:28:53 +03:00
pkgx.sh: ^1
runtime:
env:
2024-03-11 17:28:53 +03:00
PYTHONPATH: ${{prefix}}/venv/lib/python3/site-packages:$PYTHONPATH
build:
2024-03-11 17:28:53 +03:00
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:
2024-03-11 17:28:53 +03:00
- hatch env create
- python -c 'import hatchling'