Skip to content

Commit

Permalink
Merge pull request #338 from ClearcodeHQ/py3.12
Browse files Browse the repository at this point in the history
Support Python 3.12, Drop support for Python 3.9
  • Loading branch information
fizyk authored Oct 16, 2023
2 parents 04d6175 + 8c59d8b commit 7f6d8af
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4
- uses: fizyk/actions-reuse/.github/actions/[email protected]
with:
python-version: "3.11"
python-version: "3.12"
pipenv-install-options: "--skip-lock"
command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x"
towncrier:
Expand All @@ -21,7 +21,7 @@ jobs:
steps:
- uses: fizyk/actions-reuse/.github/actions/[email protected]
with:
python-version: "3.11"
python-version: "3.12"
pipenv-install-options: "--skip-lock"
command: towncrier check --compare-with origin/main
fetch-depth: 0
2 changes: 1 addition & 1 deletion .github/workflows/sphinx-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- uses: fizyk/actions-reuse/.github/actions/[email protected]
with:
python-version: "3.11"
python-version: "3.12"
pipenv-install-options: "--skip-lock"
command: "sphinx-build -b html docs/source build/html"
- name: Setup Pages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: fizyk/actions-reuse/.github/workflows/[email protected]
with:
pipenv-install-options: "--skip-lock"
python-versions: '[3.9, "3.10", "3.11"]'
python-versions: '["3.10", "3.11", "3.12"]'
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}

4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.4-slim-buster as builder
FROM python:3.12.0-slim as builder

WORKDIR /usr/src/app
# Install required dependencies and cache test dependencies, so they won't be redownloaded when updating after the code
Expand All @@ -7,6 +7,6 @@ COPY pyproject.toml .
COPY jira_timemachine .
RUN pip install build && python -m build .

FROM python:3.11.4-slim-buster as app
FROM python:3.12.0-slim as app
COPY --from=builder /usr/src/app/dist/jira_timemachine-*.whl .
RUN pip install jira_timemachine-*.whl
1 change: 1 addition & 0 deletions newsfragments/338.break.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop Support for Python 3.9
1 change: 1 addition & 0 deletions newsfragments/338.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for Python 3.12
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">= 3.9"
requires-python = ">= 3.10"
dependencies = [
"arrow>=1.1.0",
"Click>=8.0.1",
Expand Down Expand Up @@ -64,7 +64,7 @@ namespaces = false

[tool.black]
line-length = 120
target-version = ['py39']
target-version = ['py310']
include = '.*\.pyi?$'

[tool.mypy]
Expand Down Expand Up @@ -108,6 +108,7 @@ xfail_strict = true
filterwarnings = [
"error",
"ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
'ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version.:DeprecationWarning',
]

[tool.tbump]
Expand Down

0 comments on commit 7f6d8af

Please sign in to comment.