Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(no-release): drop support of 3.8 and add support of 3.13 #758

Merged
merged 4 commits into from
Oct 15, 2024
Merged
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
15 changes: 1 addition & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,11 @@ jobs:
# renovate: github-runner
- windows-2022
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
# Python 3.8 and 3.9 do not run on macos-14 which is using arm64 hardware.
exclude:
# renovate: github-runner
- os: macos-14
python-version: '3.8'
# renovate: github-runner
- os: macos-14
python-version: '3.9'
include:
- os: macos-13
python-version: '3.8'
- os: macos-13
python-version: '3.9'
- '3.13'
consistency:
if: ${{ !cancelled() && ! failure() }}
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ jobs:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ jobs:
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
package-publish:
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ ci:
parallel:
matrix:
- PYTHON_VERSION:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ dev-container-publish:
parallel:
matrix:
- PYTHON_VERSION:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
rules:
- changes:
- .devcontainer/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ container-publish:
parallel:
matrix:
- PYTHON_VERSION:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
rules:
- if: $CI_COMMIT_TAG =~ /^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-?(a|b|rc)(0|[1-9][0-9]*)?)?$/
script:
Expand Down
8 changes: 0 additions & 8 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,6 @@
"matchDepTypes": [
"debian"
]
},
{
"description": "Pre-commit 3.5.0 is pinned as the last version supporting Python 3.8",
"enabled": false,
"matchCurrentVersion": "==3.5.0",
"matchPackageNames": [
"pre-commit"
]
}
]
}
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ dev:
prerequisites:
pipx install --force codespell[toml]==2.3.0
pipx install --force pdm==2.19.2
ifeq ($(PIPX_PYTHON_VERSION), 3.8)
pipx install --force pre-commit==3.5.0
else
pipx install --force pre-commit==4.0.1
endif
pipx install --force pyproject-fmt==2.3.0
pipx install --force ruff==0.6.9
pipx install --force watchfiles==0.24.0
Expand Down
16 changes: 8 additions & 8 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,18 @@ platforms:
multiselect: true
type: str
min_py:
default: '3.8'
default: '3.12'
choices:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
help: 'Choose the minimal Python version the project should support:'
type: str
max_py:
default: '3.12'
choices:
'3.8':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.8", min_py) }}'
value: '3.8'
'3.9':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.9", min_py) }}'
value: '3.9'
Expand All @@ -161,15 +158,15 @@ max_py:
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.11", min_py) }}'
value: '3.11'
'3.12':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_higher_than_validator %]{{ version_higher_than_validator("3.12", min_py) }}'
value: '3.12'
'3.13':
value: '3.13'
help: 'Choose the maximal Python version the project should support:'
type: str
default_py:
default: '{{ max_py }}'
choices:
'3.8':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.8", min_py, max_py) }}'
value: '3.8'
'3.9':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.9", min_py, max_py) }}'
value: '3.9'
Expand All @@ -182,6 +179,9 @@ default_py:
'3.12':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.12", min_py, max_py) }}'
value: '3.12'
'3.13':
validator: '[% from pathjoin("includes", "version_compare.jinja") import version_between_validator %]{{ version_between_validator("3.13", min_py, max_py) }}'
value: '3.13'
help: 'Choose the default Python version for development, documentation generation, and package build:'
type: str
readme_content:
Expand Down
4 changes: 2 additions & 2 deletions includes/copier-answers-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ copyright_year: 2022-2024
coverage_threshold: 100
default_py: '3.12'
development_status: Alpha
max_py: '3.12'
min_py: '3.8'
max_py: '3.13'
min_py: '3.9'
module_name: ss_python
organization_name: Serious Scaffold
package_name: ss-python
Expand Down
Loading