From 5da50108f6c2af516ddd658b81b99bf859a5f4a6 Mon Sep 17 00:00:00 2001 From: Sami Virpioja Date: Wed, 6 Sep 2023 09:51:39 +0300 Subject: [PATCH] remove py3.6 support and tests --- .github/workflows/ci.yml | 4 ---- README.md | 2 +- docs/CONTRIBUTING.md | 5 +++-- docs/installation.md | 2 +- requirements-py36.txt | 24 ------------------------ setup.py | 2 +- 6 files changed, 6 insertions(+), 33 deletions(-) delete mode 100644 requirements-py36.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d332686..c0b8889 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,10 +20,6 @@ jobs: os: [ubuntu-latest] python-version: ["3.7", "3.8", "3.9", "3.10"] requirements-file: ["requirements.txt"] - include: - - os: ubuntu-20.04 - python-version: "3.6" - requirements-file: "requirements-py36.txt" runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 375d593..13c91e6 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Install from source: ### Troubleshooting -OpusFilter should generally work fine on Python 3.6 to 3.10. In the case of troubles, try installing the exact versions in `requirements.txt`: +OpusFilter should generally work fine on Python 3.7 to 3.10. In the case of troubles, try installing the exact versions in `requirements.txt`: * `pip install -r requirements.txt` diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 5e08bdf..8a7ab74 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -5,7 +5,7 @@ issues page. We are also happy to consider pull requests. There are a few rules for pull requests: * Make a pull request to the `develop` branch instead of `master`. -* The code should support at least Python versions from 3.6 to 3.8. +* The code should support at least Python versions from 3.7 to 3.10. * Please follow [PEP 8](https://www.python.org/dev/peps/pep-0008/). Exception: The maximum line length is 127 characters instead of 79. * Especially for new features, please include test cases for unit testing. @@ -19,7 +19,8 @@ work, if you have VariKN and eflomal set up as instructed - `pytest` skips the respective tests if not.) GitHub workflows defined in the project run automatically `flake8` -checks and unit testing with `pytest` using Python 3.6, 3.7, and 3.8. +checks and unit testing with `pytest` using Python 3.7, 3.8, 3.9, and +3.10. Especially for larger contributions, consider using a code analysis tool like [Pylint](https://github.com/PyCQA/pylint). Install it diff --git a/docs/installation.md b/docs/installation.md index 9213b11..f2f2033 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -12,7 +12,7 @@ Install from source: Note that all required libraries are not available to install via PyPI on Windows OS. On Linux and MacOS, it should work directly for Python -versions from 3.6 to 3.10. +versions from 3.7 to 3.10. ## Required libraries diff --git a/requirements-py36.txt b/requirements-py36.txt deleted file mode 100644 index 833f1e3..0000000 --- a/requirements-py36.txt +++ /dev/null @@ -1,24 +0,0 @@ -setuptools==59.6.0 -setuptools_scm==6.4.2 -opustools -jieba>=0.42 -beautifulsoup4>=4.8.2 -graphviz>=0.16 -langid==1.1.6 -matplotlib>=3.3.0 -opus-fast-mosestokenizer==0.0.8.3 -pandas>=1.0.0 -pycld2==0.41 -xxhash==3.2.0 -rapidfuzz>=2.0.5 -regex>=2019.11.1 -requests>=2.22.0 -ruamel.yaml>=0.15.0 -scikit-learn>=0.24.0 -sentence-splitter==1.4 -tqdm>=4.38.0 -fasttext==0.9.2 -mecab-python3==1.0.5 -unidic-lite==1.0.8 -subword-nmt==0.3.8 -Morfessor==2.0.6 diff --git a/setup.py b/setup.py index 92c25f6..f567c42 100644 --- a/setup.py +++ b/setup.py @@ -84,5 +84,5 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ), - python_requires=">=3.6", + python_requires=">=3.7", )