Skip to content

Commit 543db3d

Browse files
committed
feat: python 3.13 compatibility
1 parent 9e6bc69 commit 543db3d

5 files changed

Lines changed: 19 additions & 89 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
paths:
1414
- '.github/workflows/build.yml'
1515
- '**/*.py'
16+
workflow_dispatch: ~
1617

1718
jobs:
1819
lint:
@@ -22,13 +23,13 @@ jobs:
2223
- uses: extractions/setup-just@v2
2324
- uses: actions/setup-python@v5
2425
with:
25-
python-version: '3.12'
26+
python-version: '3.13'
2627
- run: just install lint
2728
test:
2829
runs-on: ubuntu-latest
2930
strategy:
3031
matrix:
31-
pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12']
32+
pythonversion: ['3.9', '3.10', '3.11', '3.12', '3.13']
3233
steps:
3334
- uses: actions/checkout@v4
3435
- uses: extractions/setup-just@v2
@@ -44,7 +45,7 @@ jobs:
4445
- uses: extractions/setup-just@v2
4546
- uses: actions/setup-python@v5
4647
with:
47-
python-version: '3.12'
48+
python-version: '3.13'
4849
- run: just install coverage
4950
- uses: coverallsapp/github-action@v2
5051
with:

CHANGELOG.md

Lines changed: 2 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,5 @@
11
# CHANGELOG
22

3-
## v1.10.0 (2023-08-24)
3+
## v0.1.0 (2024-10-10)
44

5-
- Drops Python 3.7 support
6-
- Swaps the Makefile for a Justfile
7-
- Overhauls version constant and usage (uniform between `setup.py` and package code)
8-
- Cleans up GitHub Action workflows
9-
- Adds `bandit` dev dependency
10-
11-
## v1.9.1 (2023-05-08)
12-
13-
- Fixes a replacement typo in setup.py for `package_data`
14-
- Bumps all dependencies
15-
16-
## v1.9.0 (2022-11-02)
17-
18-
- Removes the `coveralls` dev dependency and instead updates `pytest-cov` to v4 which now supports `lcov` generation
19-
20-
## v1.8.0 (2022-05-15)
21-
22-
- Overhaul the build process (uses the `build` package instead of the legacy `python setup.py` command)
23-
- Simplifies the GitHub release workflow by using the new Makefile build targets
24-
- Ignores the test directory in the build
25-
- Pins all development dependencies
26-
27-
## v1.7.1 (2022-02-10)
28-
29-
- Update Makefile install target to not symlink to the home directory
30-
- Update Black to use the `preview` flag
31-
- Bump dev dependencies
32-
33-
## v1.7.0 (2021-11-29)
34-
35-
- Adds `mypy` and type hinting via `py.typed`
36-
- Simplifies template module (removes unused class)
37-
- Adds missing `__all__` variable to `__init__.py`
38-
- Simplifies the lint step of the build by only running checks once (previously some checks were getting run twice)
39-
- Tests against Python `3.10`
40-
41-
## v1.6.0 (2021-10-08)
42-
43-
- Adds `Black` and `iSort` as dev dependencies
44-
- Adds a `pyproject.toml` file to configure Python tools
45-
- Completely refactors the `Makefile` to include new tools and better ways of invoking previous ones
46-
- Removes `.github/FUNDING.yml` file in favor of `.github` global files
47-
48-
## v1.5.0 (2021-09-10)
49-
50-
- Drops support for Python 3.6
51-
- Removes the `mock` library in favor of the builtin `unittest.mock` library
52-
- Fix some typos
53-
54-
## v1.4.0 (2021-07-12)
55-
56-
- Clarified various pieces of info
57-
- Unified more text replacements for easier usage of the template when getting started
58-
59-
## v1.3.0 (2021-05-31)
60-
61-
- Pins dependencies and moves them to a constant
62-
- Adds missing lines to code coverage report
63-
64-
## v1.2.0 (2021-01-30)
65-
66-
- Fixed the Coveralls command in GitHub Actions, builds now pass with their new platform requirement flag
67-
- Added a `release.yml` file to automate PyPI releasing via GitHub Actions
68-
69-
## v1.1.1 (2021-01-09)
70-
71-
- Removed all references to Travis-CI and replace with GitHub Actions
72-
- Bumped the year in LICENSE
73-
- Added clarifying statement in README to remove all extra assets
74-
75-
## v1.1.0 (2021-01-05)
76-
77-
- Added GitHub Actions
78-
- Added `conftest.py`
79-
- Updated `README` with much more verbose instructions on changing details of the project to get you started
80-
- Added test coverage
81-
- Correcting lint Makefile target to point to the unit folder
82-
83-
## v1.0.0 (2020-11-19)
84-
85-
- Initial release
86-
- Makefile, README, setup.py, .travis.yml, LICENSE, test suite, module, assets, and more included to save time and energy on your next Python project
5+
- Details go here

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ isort-check:
5454

5555
# Run mypy type checking on the project
5656
mypy:
57-
{{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/
57+
{{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/
5858

5959
# Test the project
6060
test:

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,14 @@ skip-string-normalization = true
55

66
[tool.isort]
77
profile = "black"
8+
line_length = 120
9+
indent = 4
10+
force_grid_wrap = 2
11+
multi_line_output = 3
12+
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
13+
lines_after_imports = 2
14+
include_trailing_comma = true
15+
use_parentheses = true
16+
17+
[tool.mypy]
18+
disable_error_code = "import-untyped"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
'mypy == 1.11.*',
2828
'pytest == 8.*',
2929
'pytest-cov == 5.*',
30-
'twine == 5.*',
3130
]
3231

3332
setuptools.setup(
@@ -64,5 +63,5 @@
6463
'PROJECT_NAME_URL=project_name.my_module:main',
6564
]
6665
},
67-
python_requires='>=3.8, <4',
66+
python_requires='>=3.9, <4',
6867
)

0 commit comments

Comments
 (0)