mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
d6f9cbfa6d
use `bkpyvenv`
33 lines
767 B
YAML
33 lines
767 B
YAML
distributable:
|
|
# 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:
|
|
pkgx.sh: ^1
|
|
|
|
runtime:
|
|
env:
|
|
PYTHONPATH: ${{prefix}}/venv/lib/python3/site-packages:$PYTHONPATH
|
|
|
|
build:
|
|
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
|
|
- python -c 'import hatchling'
|