pantry/projects/github.com/Ousret/charset_normalizer/package.yml
Jacob Heider bf15c045be
fix(normalizer)
use bkpyvenv
2024-02-04 16:33:33 -05:00

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'