Skip to content

Commit

Permalink
feat: make python 3.12 the default (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonZeolla authored Feb 13, 2024
1 parent e5bc8ad commit 44ef998
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- cron: '47 5 * * 0'

env:
python_version: "3.11"
python_version: "3.12"

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

env:
python_version: "3.11"
python_version: "3.12"

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
python_version: "3.11"
python_version: "3.12"

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ pyyaml = "*"
refurb = "*"

[requires]
python_version = "3.11"
python_version = "3.12"
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set:
vars:
PROJECT_SLUG: cookiecutter_python
INPUT_EXCLUDE: .*\{\{.*\}\}.*
PYTHON_VERSION: 3.11
PYTHON_VERSION: 3.12
VERSION:
sh: pipenv run python -c 'from {{.PROJECT_SLUG}} import __version__; print(__version__)'

Expand All @@ -34,6 +34,8 @@ tasks:
sources:
- Pipfile.lock
cmds:
# Clean up any existing pipenv; useful when doing upgrades over time
- pipenv --rm || true
- pipenv install --deploy --ignore-pipfile --dev

init-submodules:
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"project_slug": "{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}",
"project_short_description": "TODO",
"project_owner_github_username": "jonzeolla",
"python_version": ["3.11", "3.12", "3.10", "3.9"],
"python_version": ["3.12", "3.11", "3.10", "3.9"],
"docker_base": ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:23.04"],
"dockerhub": ["no", "yes"],
"versioning": ["CalVer", "SemVer-ish"],
Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_name|replace(" ", "")}}/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ tasks:
preconditions:
- which pipenv
cmds:
# Clean up any existing pipenv; useful when doing upgrades over time
- pipenv --rm || true
- pipenv install --deploy --ignore-pipfile --dev

init-submodules:
Expand Down

0 comments on commit 44ef998

Please sign in to comment.