2024-02-05 00:25:28 +03:00
|
|
|
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:
|
2024-02-05 00:33:33 +03:00
|
|
|
PYTHONPATH: ${{prefix}}/venv/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
|
2024-02-05 00:25:28 +03:00
|
|
|
|
|
|
|
build:
|
2024-02-05 00:33:33 +03:00
|
|
|
- bkpyvenv stage {{prefix}} {{version}}
|
|
|
|
- ${{prefix}}/venv/bin/pip install .
|
|
|
|
- bkpyvenv seal {{prefix}} normalizer
|
2024-02-05 00:25:28 +03:00
|
|
|
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
|
2024-02-05 00:33:33 +03:00
|
|
|
working-directory: ${{prefix}}/venv/lib
|
2024-02-05 00:25:28 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/normalizer
|
|
|
|
|
|
|
|
test:
|
|
|
|
- python -c 'import charset_normalizer; print(charset_normalizer.__version__)' | grep {{version}}
|
|
|
|
- normalizer --version | grep {{version}}
|
|
|
|
- echo "Hello, World!" > test.txt
|
2024-02-05 00:33:33 +03:00
|
|
|
- normalizer test.txt | grep 'English'
|