Skip to content

Commit

Permalink
Add support for Python 3.12 and drop EOL 3.7 (#149)
Browse files Browse the repository at this point in the history
* Add support for Python 3.12

* Bump GitHub Actions

* Drop support for EOL Python 3.7
  • Loading branch information
hugovk authored Oct 9, 2023
1 parent 47db5b5 commit 85319c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8"]
exclude:
- os: macos-latest
python-version: 3.8
Expand All @@ -23,11 +23,12 @@ jobs:
python-version: pypy3
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: actions/cache@v3
with:
path: ~/.cache/pip
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ This Python module returns a the `IANA time zone name
<https://www.iana.org/time-zones>`_ for your local time zone or a ``tzinfo``
object with the local timezone information, under Unix and Windows.

It requires Python 3.7 or later, and will use the ``backports.tzinfo``
package, for Python 3.7 and 3.8.
It requires Python 3.8 or later, and will use the ``backports.tzinfo``
package, for Python 3.8.

This module attempts to fix a glaring hole in the ``pytz`` and ``zoneinfo``
modules, that there is no way to get the local timezone information, unless
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ classifiers =
Operating System :: MacOS :: MacOS X
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12

[options]
packages = find:
python_requires = >= 3.7
python_requires = >= 3.8
zip_safe = True
install_requires =
backports.zoneinfo; python_version < "3.9"
Expand Down

0 comments on commit 85319c1

Please sign in to comment.