diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f8911965..5a29e96e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -29,7 +29,7 @@ jobs: - name: Update pip, setuptools, wheel, build and twine run: | python -m pip install --upgrade pip - pip install setuptools wheel build + python -m pip install setuptools wheel build - name: Build Wheel env: CHARSET_NORMALIZER_USE_MYPYC: '0' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd1ea4d2..291034b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,9 @@ jobs: python-version: '3.11' - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Type checking (Mypy) run: | mypy --strict charset_normalizer @@ -56,13 +56,13 @@ jobs: allow-prereleases: true - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build --no-isolation - pip install ./dist/*.whl + python -m pip install ./dist/*.whl - name: Run tests run: | pytest @@ -84,13 +84,13 @@ jobs: python-version: '3.11' - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build - pip install ./dist/*.whl + python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git @@ -101,41 +101,41 @@ jobs: run: | python ./bin/coverage.py --coverage 95 - integration_test: - - needs: - - tests - - name: 🔗 Integration Tests - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - name: Set up Python - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 - with: - python-version: '3.11' - - name: Install dependencies - run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - - name: Remove Chardet & Charset-Normalizer - run: | - pip uninstall -y chardet - pip uninstall -y charset-normalizer - - name: Install the package - run: | - python -m build - pip install ./dist/*.whl - - name: Clone the complete dataset - run: | - git clone https://github.com/Ousret/char-dataset.git - - name: Start the Flask server - run: | - python ./bin/serve.py & - - name: Integration Tests with Requests - run: | - python ./bin/integration.py +# integration_test: +# +# needs: +# - tests +# +# name: 🔗 Integration Tests +# runs-on: ubuntu-latest +# +# steps: +# - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 +# - name: Set up Python +# uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 +# with: +# python-version: '3.11' +# - name: Install dependencies +# run: | +# pip install -U pip setuptools +# pip install -r dev-requirements.txt +# - name: Remove Chardet & Charset-Normalizer +# run: | +# pip uninstall -y chardet +# pip uninstall -y charset-normalizer +# - name: Install the package +# run: | +# python -m build +# pip install ./dist/*.whl +# - name: Clone the complete dataset +# run: | +# git clone https://github.com/Ousret/char-dataset.git +# - name: Start the Flask server +# run: | +# python ./bin/serve.py & +# - name: Integration Tests with Requests +# run: | +# python ./bin/integration.py chardet_bc: @@ -150,13 +150,13 @@ jobs: python-version: '3.11' - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build - pip install ./dist/*.whl + python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git @@ -189,14 +189,14 @@ jobs: allow-prereleases: true - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Install the package env: CHARSET_NORMALIZER_USE_MYPYC: '1' run: | - pip install . + python -m pip install . - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git @@ -223,13 +223,13 @@ jobs: python-version: '3.11' - name: Install dependencies run: | - pip install -U pip setuptools - pip install -r dev-requirements.txt - pip uninstall -y charset-normalizer + python -m pip install -U pip setuptools + python -m pip install -r dev-requirements.txt + python -m pip uninstall -y charset-normalizer - name: Install the package run: | python -m build - pip install ./dist/*.whl + python -m pip install ./dist/*.whl - name: Clone the complete dataset run: | git clone https://github.com/Ousret/char-dataset.git diff --git a/CHANGELOG.md b/CHANGELOG.md index eec7d1cb..12a27fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,10 @@ All notable changes to charset-normalizer will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [3.3.1](https://github.com/Ousret/charset_normalizer/compare/3.3.0...3.3.1) (2023-10-??) +## [3.3.1](https://github.com/Ousret/charset_normalizer/compare/3.3.0...3.3.1) (2023-10-22) ### Changed -- Optional mypyc compilation upgraded to version 1.6.0 for Python >= 3.8 +- Optional mypyc compilation upgraded to version 1.6.1 for Python >= 3.8 - Improved the general detection reliability based on reports from the community ## [3.3.0](https://github.com/Ousret/charset_normalizer/compare/3.2.0...3.3.0) (2023-09-30) diff --git a/build-requirements.txt b/build-requirements.txt index 33cc0a2c..9313e962 100644 --- a/build-requirements.txt +++ b/build-requirements.txt @@ -1,6 +1,6 @@ # in the meantime we migrate to pyproject.toml # this represent the minimum requirement to build (for the optional speedup) -mypy==1.6.0; python_version >= '3.8' +mypy==1.6.1; python_version >= '3.8' mypy==1.4.1; python_version < '3.8' build==0.10.0 wheel==0.41.2 diff --git a/dev-requirements.txt b/dev-requirements.txt index 57e3cc6f..32b07197 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,7 +7,7 @@ build==0.10.0 wheel==0.41.2 black==23.3.0 -mypy==1.6.0; python_version >= '3.8' +mypy==1.6.1; python_version >= '3.8' mypy==1.4.1; python_version < '3.8' Flask==2.2.3 pytest==7.4.2