Skip to content

Commit

Permalink
Merge pull request #359 from NLeSC/python-upgrade-min37-plus312-356
Browse files Browse the repository at this point in the history
Update supported python versions: -3.7, +3.12
  • Loading branch information
egpbos authored Oct 20, 2023
2 parents f406d26 + 2013c2f commit 0f699f7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
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: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
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:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

* Added Python 3.12 support [#356](https://github.com/NLeSC/python-template/issues/356)
* Template unit tests for documentation generation, linting and version bumping
* Docstring for function
* Intersphinx to documentation
Expand All @@ -27,6 +28,7 @@

### Removed

* Removed Python 3.7 support [#343](https://github.com/NLeSC/python-template/issues/343)
* `.pylintrc` file, was too strict, too soon [#267](https://github.com/NLeSC/python-template/issues/267)
* Unused development dependencies [#167](https://github.com/NLeSC/python-template/issues/167)
* Statements in project_setup.md already mentioned in README.dev.md
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ classifiers =
License :: OSI Approved :: Apache Software License
Natural Language :: English
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
description = Cookiecutter 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 All @@ -30,7 +30,7 @@ version = 0.4.0
[options]
zip_safe = False
include_package_data = True
python_requires = >=3.7
python_requires = >=3.8
packages =
install_requires =
cookiecutter==1.7.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
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:
- uses: actions/checkout@v3
- name: Set up Python ${{ '{{ ' -}} matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.directory_name}}/project_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ checklist](https://guide.esciencecenter.nl/#/best_practices/checklist).

This repository is set up with Python versions:

- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
- 3.12

Add or remove Python versions based on project requirements. See [the
guide](https://guide.esciencecenter.nl/#/best_practices/language_guides/python) for more information about Python
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.directory_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ classifiers = [
}[cookiecutter.license] }}",
"Natural Language :: English",
"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",
]
dependencies = []
description = "{{ cookiecutter.package_short_description }}"
Expand All @@ -38,7 +38,7 @@ keywords = [
license = {file = "LICENSE"}
name = "{{ cookiecutter.package_name }}"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.7"
requires-python = ">=3.8"
version = "{{ cookiecutter.version }}"

[project.optional-dependencies]
Expand Down Expand Up @@ -89,7 +89,7 @@ exclude = ["tests*"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310,py311
envlist = py38,py39,py310,py311,py312
skip_missing_interpreters = true
[testenv]
commands = pytest
Expand Down

0 comments on commit 0f699f7

Please sign in to comment.