mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(normalizer)
use bkpyvenv
This commit is contained in:
parent
24a48493a0
commit
bf15c045be
|
@ -10,12 +10,14 @@ dependencies:
|
||||||
|
|
||||||
runtime:
|
runtime:
|
||||||
env:
|
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:
|
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}}
|
- 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:
|
provides:
|
||||||
- bin/normalizer
|
- bin/normalizer
|
||||||
|
@ -24,4 +26,4 @@ test:
|
||||||
- python -c 'import charset_normalizer; print(charset_normalizer.__version__)' | grep {{version}}
|
- python -c 'import charset_normalizer; print(charset_normalizer.__version__)' | grep {{version}}
|
||||||
- normalizer --version | grep {{version}}
|
- normalizer --version | grep {{version}}
|
||||||
- echo "Hello, World!" > test.txt
|
- echo "Hello, World!" > test.txt
|
||||||
- normalizer test.txt | grep 'English'
|
- normalizer test.txt | grep 'English'
|
||||||
|
|
Loading…
Reference in a new issue