Skip to content

Commit ec2fa0a

Browse files
committed
chore: python 3.14 support
1 parent 8eda066 commit ec2fa0a

File tree

6 files changed

+78
-87
lines changed

6 files changed

+78
-87
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,52 @@
1-
name: build
1+
# name: build
22

3-
on:
4-
push:
5-
paths:
6-
- '.github/workflows/build.yml'
7-
- '**/*.py'
8-
branches:
9-
- '**'
10-
tags:
11-
- '!**'
12-
pull_request:
13-
paths:
14-
- '.github/workflows/build.yml'
15-
- '**/*.py'
16-
workflow_dispatch: ~
3+
# on:
4+
# push:
5+
# paths:
6+
# - '.github/workflows/build.yml'
7+
# - '**/*.py'
8+
# branches:
9+
# - '**'
10+
# tags:
11+
# - '!**'
12+
# pull_request:
13+
# paths:
14+
# - '.github/workflows/build.yml'
15+
# - '**/*.py'
16+
# workflow_dispatch: ~
1717

18-
jobs:
19-
lint:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: extractions/setup-just@v2
24-
- uses: actions/setup-python@v5
25-
with:
26-
python-version: '3.13'
27-
- run: just install lint
28-
test:
29-
runs-on: ubuntu-latest
30-
strategy:
31-
matrix:
32-
pythonversion: ['3.9', '3.10', '3.11', '3.12', '3.13']
33-
steps:
34-
- uses: actions/checkout@v4
35-
- uses: extractions/setup-just@v2
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: ${{ matrix.pythonversion }}
39-
- run: just install coverage
40-
coverage:
41-
if: github.ref == 'refs/heads/main'
42-
runs-on: ubuntu-latest
43-
steps:
44-
- uses: actions/checkout@v4
45-
- uses: extractions/setup-just@v2
46-
- uses: actions/setup-python@v5
47-
with:
48-
python-version: '3.13'
49-
- run: just install coverage
50-
- uses: coverallsapp/github-action@v2
51-
with:
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
53-
path-to-lcov: './coverage.lcov'
18+
# jobs:
19+
# lint:
20+
# runs-on: ubuntu-latest
21+
# steps:
22+
# - uses: actions/checkout@v5
23+
# - uses: extractions/setup-just@v3
24+
# - uses: actions/setup-python@v6
25+
# with:
26+
# python-version: '3.14'
27+
# - run: just install lint
28+
# test:
29+
# runs-on: ubuntu-latest
30+
# strategy:
31+
# matrix:
32+
# pythonversion: ['3.10', '3.11', '3.12', '3.13', '3.14']
33+
# steps:
34+
# - uses: actions/checkout@v5
35+
# - uses: extractions/setup-just@v3
36+
# - uses: actions/setup-python@v6
37+
# with:
38+
# python-version: ${{ matrix.pythonversion }}
39+
# - run: just install coverage
40+
# coverage:
41+
# if: github.ref == 'refs/heads/main'
42+
# runs-on: ubuntu-latest
43+
# steps:
44+
# - uses: actions/checkout@v5
45+
# - uses: extractions/setup-just@v3
46+
# - uses: actions/setup-python@v6
47+
# with:
48+
# python-version: '3.14'
49+
# - run: just install coverage
50+
# - uses: codecov/codecov-action@v5
51+
# with:
52+
# token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
name: release
1+
# name: release
22

3-
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch: ~
3+
# on:
4+
# release:
5+
# types: [published]
6+
# workflow_dispatch: ~
77

8-
jobs:
9-
release:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v4
13-
- uses: extractions/setup-just@v2
14-
- uses: actions/setup-python@v5
15-
with:
16-
python-version: '3.12'
17-
- name: Build package
18-
run: just install build
19-
# Uncomment for your project
20-
# - name: Publish to PyPI
21-
# uses: pypa/gh-action-pypi-publish@release/v1
22-
# with:
23-
# password: ${{ secrets.PYPI_API_TOKEN }}
8+
# jobs:
9+
# release:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - uses: actions/checkout@v5
13+
# - uses: extractions/setup-just@v3
14+
# - uses: actions/setup-python@v6
15+
# with:
16+
# python-version: '3.14'
17+
# - name: Build package
18+
# run: just install build
19+
# - name: Publish to PyPI
20+
# uses: pypa/gh-action-pypi-publish@release/v1
21+
# with:
22+
# password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,8 @@
44

55
A Python project template to save you time and energy.
66

7-
[![Build Status](https://github.com/Justintime50/python-template/workflows/build/badge.svg)](https://github.com/Justintime50/python-template/actions)
8-
[![Coverage Status](https://coveralls.io/repos/github/Justintime50/python-template/badge.svg?branch=main)](https://coveralls.io/github/Justintime50/python-template?branch=main)
97
[![Licence](https://img.shields.io/github/license/justintime50/python-template)](LICENSE)
108

11-
<img src="https://raw.githubusercontent.com/justintime50/assets/main/src/python-template/showcase.png" alt="Showcase">
12-
13-
</div>
14-
159
Python projects take a long time to setup with all the various files, the virtual environment, and keeping things uniform across projects. With this Python template, you can quickly setup boilerplate code and miscellaneous items for your Python project saving you time and energy so you can get back to coding.
1610

1711
## Install

README_project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
A one-liner description of your project goes here.
66

77
[![Build Status](https://github.com/USERNAME/PROJECT_NAME_URL/workflows/build/badge.svg)](https://github.com/USERNAME/PROJECT_NAME_URL/actions)
8-
[![Coverage Status](https://coveralls.io/repos/github/USERNAME/PROJECT_NAME_URL/badge.svg?branch=main)](https://coveralls.io/github/USERNAME/PROJECT_NAME_URL?branch=main)
8+
[![Coverage Status](https://img.shields.io/codecov/c/github/USERNAME/PROJECT_NAME_URL)](https://app.codecov.io/github/USERNAME/PROJECT_NAME_URL)
99
[![PyPi](https://img.shields.io/pypi/v/PROJECT_NAME_URL)](https://pypi.org/project/PROJECT_NAME_URL)
1010
[![Licence](https://img.shields.io/github/license/USERNAME/PROJECT_NAME_URL)](LICENSE)
1111

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[tool.black]
22
line-length = 120
3-
skip-string-normalization = true
43

54
[tool.isort]
65
profile = "black"

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
]
2020

2121
DEV_REQUIREMENTS = [
22-
'bandit == 1.8.*',
22+
'bandit == 1.9.*',
2323
'black == 25.*',
24-
'build == 1.2.*',
24+
'build == 1.3.*',
2525
'flake8 == 7.*',
26-
'isort == 6.*',
27-
'mypy == 1.15.*',
28-
'pytest == 8.*',
29-
'pytest-cov == 6.*',
26+
'isort == 7.*',
27+
'mypy == 1.18.*',
28+
'pytest == 9.*',
29+
'pytest-cov == 7.*',
3030
]
3131

3232
setuptools.setup(
@@ -63,5 +63,5 @@
6363
'PROJECT_NAME_URL=project_name.my_module:main',
6464
]
6565
},
66-
python_requires='>=3.9, <4',
66+
python_requires='>=3.10, <4',
6767
)

0 commit comments

Comments
 (0)