Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

### Added

- Typing support. [#698](https://github.com/NLeSC/python-template/pull/698)
* Add Python 3.13 and 3.14 support [#703](https://github.com/NLeSC/python-template/pull/703)
* Typing support. [#698](https://github.com/NLeSC/python-template/pull/698)

### Changed

* Update CI actions to use Python 3.14 instead of 3.12 [#703](https://github.com/NLeSC/python-template/pull/703)
* Recommend `ruff format` instead of `yapf` for fixing code style readability [#695](https://github.com/NLeSC/python-template/pull/695)

### Removed
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ classifiers =
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14
description = Copier template to initialize Python projects in accordance with Netherlands eScience Center best practices
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
2 changes: 2 additions & 0 deletions template/project_setup.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ This repository is set up with Python versions:
- 3.10
- 3.11
- 3.12
- 3.13
- 3.14

Add or remove Python versions based on project requirements. See [the
guide](https://guide.esciencecenter.nl/#/language_guides/python) for more information about Python
Expand Down
4 changes: 3 additions & 1 deletion template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = []
description = "{{ package_short_description|replace('\"', '\\\"') }}"
Expand Down Expand Up @@ -106,7 +108,7 @@ command_line = "-m pytest"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310,py311,py312
envlist = py310,py311,py312,py313,py314
skip_missing_interpreters = true
{% if AddLocalTests -%}
[testenv]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ '{{ ' -}} matrix.python-version }}
Expand Down Expand Up @@ -46,10 +46,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Python info
shell: bash -e {0}
run: |
Expand All @@ -71,10 +71,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Upgrade pip and install dependencies
run: |
python -m pip install --upgrade pip setuptools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Python info
shell: bash -e {0}
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Python info
shell: bash -e {0}
run: |
Expand Down
2 changes: 0 additions & 2 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ def test_generate_api_docs(baked_with_development_dependencies, project_env_bin_
assert (project_dir / 'docs' / '_build' / 'html' / 'index.html').exists()


@pytest.mark.skipif(sys.version_info < (3, 9), reason=
"requires python 3.9 or higher, see https://github.com/NLeSC/python-template/pull/347#issuecomment-1710684574")
def test_coverage_api_docs(baked_with_development_dependencies, project_env_bin_dir):
project_dir = baked_with_development_dependencies
bin_dir = project_env_bin_dir
Expand Down