fix(normalizer)

use bkpyvenv
This commit is contained in:
Jacob Heider 2024-02-04 16:33:33 -05:00
parent 24a48493a0
commit bf15c045be
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB

View file

@ -10,12 +10,14 @@ dependencies:
runtime:
env:
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
PYTHONPATH: ${{prefix}}/venv/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
build:
- python -m pip install --prefix={{prefix}} .
- 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}}/lib
working-directory: ${{prefix}}/venv/lib
provides:
- bin/normalizer
@ -24,4 +26,4 @@ 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'
- normalizer test.txt | grep 'English'