Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: python 3.12 support #319

Merged
merged 4 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading