mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
bf15c045be
use bkpyvenv
30 lines
834 B
YAML
30 lines
834 B
YAML
distributable:
|
|
url: git+https://github.com/Ousret/charset_normalizer.git
|
|
ref: ${{version.tag}}
|
|
|
|
versions:
|
|
github: Ousret/charset_normalizer
|
|
|
|
dependencies:
|
|
python.org: '>=3.11'
|
|
|
|
runtime:
|
|
env:
|
|
PYTHONPATH: ${{prefix}}/venv/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
|
|
|
|
build:
|
|
- bkpyvenv stage {{prefix}} {{version}}
|
|
- ${{prefix}}/venv/bin/pip install .
|
|
- bkpyvenv seal {{prefix}} normalizer
|
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
|
working-directory: ${{prefix}}/venv/lib
|
|
|
|
provides:
|
|
- bin/normalizer
|
|
|
|
test:
|
|
- python -c 'import charset_normalizer; print(charset_normalizer.__version__)' | grep {{version}}
|
|
- normalizer --version | grep {{version}}
|
|
- echo "Hello, World!" > test.txt
|
|
- normalizer test.txt | grep 'English'
|