From 7c39594c40aa041667586bfbc92b6f30d6a4ef4a Mon Sep 17 00:00:00 2001 From: Serhii A Date: Wed, 5 Feb 2025 12:56:15 +0100 Subject: [PATCH] Release 1.2.1 (#1247) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Release 1.2.1 * Update HISTORY.rst Co-authored-by: Andrey Rakhmatullin * Fix tests (#1248) * Fix tests * Fix the TestLocalTZOffset test * Setup tests for minimum deps * Run pre-commit --------- Co-authored-by: Adrián Chaves * Add #1248 to History rst * .bumpversion.cfg → pyproject.toml, and have it set the release date * Undo version change to be made by bump-my-version * Update HISTORY.rst Co-authored-by: Adrián Chaves * Use CODECOV_TOKEN. --------- Co-authored-by: Andrey Rakhmatullin Co-authored-by: Adrián Chaves Co-authored-by: Andrey Rakhmatullin --- .bumpversion.cfg | 6 ------ .github/workflows/main.yml | 4 +++- HISTORY.rst | 24 ++++++++++++++++++++++++ pyproject.toml | 14 ++++++++++++++ 4 files changed, 41 insertions(+), 7 deletions(-) delete mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 04ad3049a..000000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[bumpversion] -current_version = 1.2.0 -commit = True -tag = True - -[bumpversion:file:dateparser/__init__.py] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d3977cf1e..30c94dbbe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,4 +47,6 @@ jobs: - name: Run tests run: tox -e ${{ matrix.toxenv || 'py' }} - name: Upload coverage.xml to codecov - uses: codecov/codecov-action@v4.0.1 + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/HISTORY.rst b/HISTORY.rst index 5dd7c67ee..9465b3784 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,30 @@ History ======= +1.2.1 (unreleased) +------------------ + +Fixes: + +- Fix PytzUsageWarning (#1109) +- Fix date_parser with prefer_month_of_year wrong results (#1224) +- Fix skipped day when UTC and tz are different days (#1183) + +Improvements: + +- Avoid repeated loop over timezones (#1238) +- Proofread README.rst (#1234) +- Check for derived types for configuration (#1223) +- Parse some abbreviated strings as relative dates (#1219) +- Migrate from hijri-converter to hijridate (#1211) +- Fixed ClusterFuzz build error by adding dateparser.data as a binary (#1208) +- Fix an issue detected by OSSFuzz (#1203) +- Support two-digit years in non-Gregorian calendars (#1187) +- Refactored CI to run extras separately and test minimum versions of dependencies, replaced flake8 with ruff, fixed tests (#1248) +- Set minimum versions for dependencies (#1248) +- Limited ``numpy`` to 1.x when installing ``dateparser[fasttext]`` (#1248) + + 1.2.0 (2023-11-17) ------------------ diff --git a/pyproject.toml b/pyproject.toml index 4c90b4713..b13bcd770 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +[tool.bumpversion] +current_version = "1.2.0" +commit = true +tag = true + +[[tool.bumpversion.files]] +filename = "dateparser/__init__.py" + +[[tool.bumpversion.files]] +filename = 'HISTORY.rst' +search = "\\(unreleased\\)$" +replace = "({now:%Y-%m-%d})" +regex = true + [tool.ruff] exclude = ["date_translation_data"]