Skip to content

Commit

Permalink
build: python3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
dvp committed Oct 28, 2024
1 parent a663e40 commit 05c5bd1
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 89 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Create Repository Labels

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -10,30 +14,26 @@ on:
- .github/labels.yml
- .github/workflows/labeler.yml
pull_request:
branches:
- main
- master
- devel
paths:
- .github/labels.yaml
- .github/workflows/labeler.yml
schedule:
- cron: "0 0 * * TUE"

jobs:
labels:
labeler:
name: Sycnchronize repository labels
runs-on: ubuntu-latest
steps:
- name: Check out the repository
- name: Checkout
uses: actions/checkout@v4

- name: Sync GitHub Issue Labels
- name: Run labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
github-token: ${{ secrets.MCKIT_GITHUB_TOKEN }}
skip-delete: true
dry-run: ${{ github.event_name != 'pull_request' }}
dry-run: ${{ github.event_name == 'pull_request' }}
exclude: |
help*
*issue
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release

env:
PYTHON_VERSION: '3.11'
PYTHON_VERSION: '3.13'

on:
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ concurrency:
cancel-in-progress: true

env:
DEFAULT_PYTHON: "3.12"
DEFAULT_PYTHON: "3.13"

jobs:

Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
python-version: [ '3.10', '3.11', '3.12' ]
python-version: [ '3.10', '3.11', '3.12', '3.13' ]

steps:

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# https://github.com/pre-commit/pre-commit for more information
# https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.12
python: python3.13

repos:

Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def find_my_name() -> str:
package: Final[str] = find_my_name()
locations: Final[tuple[str, ...]] = f"src/{package}", "tests", "./noxfile.py", "docs/source/conf.py"

supported_pythons: Final[tuple[str, ...]] = "3.10", "3.11", "3.12"
default_python: Final[str] = "3.12"
supported_pythons: Final[tuple[str, ...]] = "3.10", "3.11", "3.12", "3.13"
default_python: Final[str] = "3.13"


def _update_hook(hook: Path, virtualenv: str, s: Session) -> None:
Expand Down
146 changes: 75 additions & 71 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Physics",
]

Expand All @@ -38,10 +39,10 @@ Chnagelog = "https://github.com/MC-kit/mckit-meshes/releases"


[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python = ">=3.10,<3.14"
click = ">=8.0.1"
loguru = ">=0.6.0"
numpy = ">=1.26.2"
numpy = ">=2.0"
openpyxl = ">=3.0.9"
pandas = ">=2.0.0"
pyevtk = ">=1.4.1"
Expand Down
4 changes: 2 additions & 2 deletions tools/reset-pyenv
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ reset() {
local env="${1:-}"
read -r -a pkgs <<< "$(ls -1 src)"
local pkg=${pkgs[0]}
local last_python="3.12.6"
local last_python="3.13.0"
[[ -z "$env" ]] && env="${pkg//_/-}"
echo "Installing package $pkg to environment $env with python $last_python."
eval "$(pyenv init -)"
Expand All @@ -34,7 +34,7 @@ reset() {
poetry lock --no-update
poetry install
pyenv deactivate
pyenv local "$env" "3.11.10" "3.10.15" "3.9.20"
pyenv local "$env" "3.12.7" "3.11.10" "3.10.15" "3.9.20"
pyenv rehash
pyenv activate "$env"
python -c "import ${pkg}; print(${pkg}.__version__)" && success "Environment $env is reset"
Expand Down

0 comments on commit 05c5bd1

Please sign in to comment.