+github.com/Ousret/charset normalizer (#5115)

* new file:   projects/github.com/Ousret/charset_normalizer/package.yml

* modified:   projects/github.com/Ousret/charset_normalizer/package.yml
This commit is contained in:
Andrew 2024-02-04 23:25:28 +02:00 committed by GitHub
parent 5a3c22ca70
commit 24a48493a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,27 @@
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}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH
build:
- python -m pip install --prefix={{prefix}} .
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: ${{prefix}}/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'