Skip to content

Commit

Permalink
chore: python 3.12 support (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkasa authored Jan 24, 2024
1 parent 6693dfe commit 6f22556
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Tests
on:
push:
branches:
- 'master'
- "master"
pull_request:
branches:
- '**'
- "**"

jobs:
python:
Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
max-parallel: 1
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
cache: 'pip'
cache: "pip"
python-version: ${{ matrix.python-version }}

- name: Install requirements
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pendulum==2.1.2
setuptools==69.0.3
pendulum==3.0.0
requests>=2.23.0
click==8.1.3
inquirer==2.9.1
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ author = D. Robert Adams & Adam Uhlir
author_email = [email protected]
license = MIT
home_page = https://toggl.uhlir.dev
python_requires = >=3.7.0
python_requires = >=3.8.0
project_urls =
Source = https://github.com/auhau/toggl-cli
Documentation = https://toggl.uhlir.devg
classifier =
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
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
Programming Language :: Python :: Implementation :: CPython
Development Status :: 5 - Production/Stable
Topic :: Office/Business :: Scheduling
Expand Down
2 changes: 1 addition & 1 deletion toggl/utils/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def migrate_datetime(parser): # type: (configparser.ConfigParser) -> None
@staticmethod
def migrate_timezone(parser): # type: (configparser.ConfigParser) -> None
tz = parser.get('options', 'timezone')
if tz not in pendulum.timezones:
if tz not in pendulum.timezones():
click.echo('We have not recognized your timezone!')
new_tz = inquirer.shortcuts.text(
'Please enter valid timezone. Default is your system\'s timezone.',
Expand Down

0 comments on commit 6f22556

Please sign in to comment.