diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c5d050d3..71b3913c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: with: python-version: '${{ matrix.python-version }}' - name: Install language-pack-fr - run: sudo apt-get install language-pack-fr + run: sudo apt-get update && sudo apt-get install language-pack-fr - name: Install python dependencies run: pip install tox - name: tox diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..77a416bd6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.x" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/.gitignore b/.gitignore index afa82848f..669c9f718 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.py[cod] +.python-version # C extensions *.so @@ -47,6 +48,7 @@ docs/_build # Editors *.swp .idea +.vscode/ # Other raw_data diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index dabd1b87b..ecd87fd65 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -89,7 +89,7 @@ tests, including testing other Python versions with tox:: $ tox - To get flake8 and tox, just pip install them into your virtualenv. (Note that we use ``max-line-length = 100`` for flake8, this is configured in ``setup.cfg`` file.) + To get ``tox``, just ``pip install`` it into your virtualenv. In addition to tests, ``tox`` checks for code style and maximum line length (119 characters). 6. Commit your changes and push your branch to GitHub:: @@ -169,7 +169,7 @@ language, you must: :hidden: template - + Updating the List of Supported Languages and Locales ---------------------------------------------------- diff --git a/HISTORY.rst b/HISTORY.rst index 09f1de667..a0c1a9473 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,50 @@ History ======= +1.1.1 (2022-03-17) +------------------ + +Improvements: + +- Fixed issue with regex library by pinning dependencies to an earlier version (< 2022.3.15, #1046). +- Extended support for Russian language dates starting with lowercase (#999). +- Allowed to use_given_order for languages too (#997). +- Fixed link to settings section (#1018). +- Defined UTF-8 encoding for Windows (#998). +- Fixed directories creation error in CLI utils (#1022). + + +1.1.0 (2021-10-04) +------------------ + +New features: + +* Support language detection based on ``langdetect``, ``fastText``, or a + custom implementation (see #932) +* Add support for 'by