From 6de58f572257088d4248a6a3a1d2a426df534a02 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 29 Feb 2024 21:27:06 -0500 Subject: [PATCH 1/5] Update classifiers to include Python 3.12 --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 7a1df362..95b0a60b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,6 +33,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Software Development :: Libraries [options] From 9c7524a92600282488fbb85c7f1d6af10ce4ad15 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 29 Feb 2024 21:39:34 -0500 Subject: [PATCH 2/5] Fix MANIFEST.in pattern --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 6690af4b..91caf998 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include LICENSE NEWS zonefile_metadata.json updatezinfo.py pyproject.toml -recursive-include tests/ +recursive-include tests/ * global-exclude __pycache__ global-exclude *.py[co] From fe02d0218c00c907c6d8546dc3dce7fe7bb0588c Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 29 Feb 2024 21:44:22 -0500 Subject: [PATCH 3/5] Run towncrier with Python 3.11 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f1b3fe5d..c0c0027c 100644 --- a/tox.ini +++ b/tox.ini @@ -104,7 +104,7 @@ commands = python -m sphinx -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/do [testenv:news] description = Invoke towncrier to update the NEWS file -basepython = python3.7 +basepython = python3.11 passenv = * deps = towncrier commands = From edd3fd4565616f7c92567c1daa957ee52df221a4 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 29 Feb 2024 21:44:01 -0500 Subject: [PATCH 4/5] Update NEWS file --- NEWS | 34 ++++++++++++++++++++++++++++++++++ changelog.d/1007.feature.rst | 6 ------ changelog.d/1167.doc.rst | 3 --- changelog.d/1174.misc.rst | 1 - changelog.d/1211.misc.rst | 1 - changelog.d/1284.bugfix.rst | 1 - changelog.d/1286.misc.rst | 1 - changelog.d/1342.data.rst | 1 - 8 files changed, 34 insertions(+), 14 deletions(-) delete mode 100644 changelog.d/1007.feature.rst delete mode 100644 changelog.d/1167.doc.rst delete mode 100644 changelog.d/1174.misc.rst delete mode 100644 changelog.d/1211.misc.rst delete mode 100644 changelog.d/1284.bugfix.rst delete mode 100644 changelog.d/1286.misc.rst delete mode 100644 changelog.d/1342.data.rst diff --git a/NEWS b/NEWS index 446979dd..a135f40c 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,37 @@ +Version 2.9.0 (2024-02-29) +========================== + +Data updates +------------ + +- Updated tzdata version to 2024a. (gh pr #1342) + + +Features +-------- + +- Made all ``dateutil`` submodules lazily imported using `PEP 562 + `_. On Python 3.7+, things like + ``import dateutil; dateutil.tz.gettz("America/New_York")`` will now work + without explicitly importing ``dateutil.tz``, with the import occurring behind + the scenes on first use. The old behavior remains on Python 3.6 and earlier. + Fixed by Orson Adams. (gh issue #771, gh pr #1007) + + +Bugfixes +-------- + +- Removed a call to ``datetime.utcfromtimestamp``, which is deprecated as of Python 3.12. Reported by Hugo van Kemenade (gh pr #1284), fixed by Thomas Grainger (gh pr #1285). + + +Documentation changes +--------------------- + +- Added note into docs and tests where relativedelta would return last day of the month + only if the same day on a different month resolves to a date that doesn't exist. + Reported by @hawkEye-01 (gh issue #1167). Fixed by @Mifrill (gh pr #1168) + + Version 2.8.2 (2021-07-08) ========================== diff --git a/changelog.d/1007.feature.rst b/changelog.d/1007.feature.rst deleted file mode 100644 index 33a7f553..00000000 --- a/changelog.d/1007.feature.rst +++ /dev/null @@ -1,6 +0,0 @@ -Made all ``dateutil`` submodules lazily imported using `PEP 562 -`_. On Python 3.7+, things like -``import dateutil; dateutil.tz.gettz("America/New_York")`` will now work -without explicitly importing ``dateutil.tz``, with the import occurring behind -the scenes on first use. The old behavior remains on Python 3.6 and earlier. -Fixed by Orson Adams. (gh issue #771, gh pr #1007) diff --git a/changelog.d/1167.doc.rst b/changelog.d/1167.doc.rst deleted file mode 100644 index 36def3b5..00000000 --- a/changelog.d/1167.doc.rst +++ /dev/null @@ -1,3 +0,0 @@ -Added note into docs and tests where relativedelta would return last day of the month -only if the same day on a different month resolves to a date that doesn't exist. -Reported by @hawkEye-01 (gh issue #1167). Fixed by @Mifrill (gh pr #1168) \ No newline at end of file diff --git a/changelog.d/1174.misc.rst b/changelog.d/1174.misc.rst deleted file mode 100644 index c048aabd..00000000 --- a/changelog.d/1174.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Added Python 3.10 to the test matrix and Trove classifiers. Fixed by @hugovk (gh pr #1174) diff --git a/changelog.d/1211.misc.rst b/changelog.d/1211.misc.rst deleted file mode 100644 index 76dfe5f4..00000000 --- a/changelog.d/1211.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Test with Python 3.11-dev. Reported and fixed by Hugo van Kemenade (gh pr #1211). diff --git a/changelog.d/1284.bugfix.rst b/changelog.d/1284.bugfix.rst deleted file mode 100644 index 01f48a74..00000000 --- a/changelog.d/1284.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Removed a call to ``datetime.utcfromtimestamp``, which is deprecated as of Python 3.12. Reported by Hugo van Kemenade (gh pr #1284), fixed by Thomas Grainger (gh pr #1285). diff --git a/changelog.d/1286.misc.rst b/changelog.d/1286.misc.rst deleted file mode 100644 index 68665186..00000000 --- a/changelog.d/1286.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed CI diff --git a/changelog.d/1342.data.rst b/changelog.d/1342.data.rst deleted file mode 100644 index 39d48abf..00000000 --- a/changelog.d/1342.data.rst +++ /dev/null @@ -1 +0,0 @@ -Updated tzdata version to 2024a. (gh pr #1342) From 423ca2f02faffa5d0543612b9462ace420ed7925 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Thu, 29 Feb 2024 22:11:32 -0500 Subject: [PATCH 5/5] Run updatezinfo before build It is unclear why the release automation worked in the past without this... --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c42cd0b3..11e7b991 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,11 @@ jobs: uses: actions/setup-python@v3 with: python-version: '3.9' + - name: Run updatezinfo.py (Unix) + run: | + python -m venv venv + venv/bin/pip install -e . + ./ci_tools/retry.sh venv/bin/python updatezinfo.py - name: Install dependencies run: | python -m pip install --upgrade pip