Skip to content

Commit

Permalink
Update required python versions according to scientific python SPEC 0 (
Browse files Browse the repository at this point in the history
…#284)

* Update required python versions according to scientific python SPEC 0

* Update minimum version in remaining places

* No need to test 3.11

* Update .gitignore

* Update README
  • Loading branch information
grst authored May 21, 2024
1 parent e76a9b1 commit df92fce
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10"]
python: ["3.10", "3.12"]
os: [ubuntu-latest]
# one that matches "project-name".lower().replace('-', '_'), one that doesn’t:
package-name: [project_name, package_alt]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ __pycache__/
/.pytest_cache/
/.cache/
/data/
/node_modules/

# IDEs
/.idea/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ and how to customize it for your needs.

### Install dependencies

You need `git >=2.28` and `python >=3.9`. In addition you need to install the following Python dependencies:
You need `git >=2.28` and `python >=3.10`. In addition you need to install the following Python dependencies:

```bash
pip install cruft pre-commit
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
matrix:
include:
- os: ubuntu-latest
python: "3.9"
python: "3.10"
- os: ubuntu-latest
python: "3.11"
python: "3.12"
- os: ubuntu-latest
python: "3.11"
python: "3.12"
pip-flags: "--pre"
name: PRE-RELEASE DEPENDENCIES

Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Please refer to the [documentation][link-docs]. In particular, the

## Installation

You need to have Python 3.9 or newer installed on your system. If you don't have
You need to have Python 3.10 or newer installed on your system. If you don't have
Python installed, we recommend installing [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge).

There are several alternative options to install {{ cookiecutter.project_name }}:
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "{{ cookiecutter.project_name }}"
version = "0.0.1"
description = "{{ cookiecutter.project_description }}"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {file = "LICENSE"}
authors = [
{name = "{{ cookiecutter.author_full_name }}"},
Expand Down

0 comments on commit df92fce

Please sign in to comment.