From 24a48493a0a32e8bf5d236a470f296b0d334a863 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:25:28 +0200 Subject: [PATCH] +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 --- .../Ousret/charset_normalizer/package.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 projects/github.com/Ousret/charset_normalizer/package.yml diff --git a/projects/github.com/Ousret/charset_normalizer/package.yml b/projects/github.com/Ousret/charset_normalizer/package.yml new file mode 100644 index 00000000..56a55872 --- /dev/null +++ b/projects/github.com/Ousret/charset_normalizer/package.yml @@ -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' \ No newline at end of file