-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update supported Python versions (#22)
* Update actions/download-artifact to v4 (#10) * Update actions/download-artifact to v4 * Bumped pypa/gh-action-pypi-publish to v1.8.0 * Use latest minor version of pypi upload action (#11) * pin specific patch version for pypi upload action (#12) * reuse pypi upload action (#13) * Update pypi_upload step in workflow * pass secret PyPI upload key as input to upload_pypi step * use v2 for all reusable NIU actions including the update upload_pypi one. * run CI on both types of Mac (#16) * run CI on both types of Mac * Fix link in readme * [pre-commit.ci] pre-commit autoupdate (#18) updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.4.0...v4.6.0) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.5.0](astral-sh/ruff-pre-commit@v0.0.292...v0.5.0) - [github.com/psf/black: 23.9.1 → 24.4.2](psf/black@23.9.1...24.4.2) - [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.10.1](pre-commit/mirrors-mypy@v1.5.1...v1.10.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Add a standardised contact section to the readme * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.0...v0.5.6) - [github.com/psf/black: 24.4.2 → 24.8.0](psf/black@24.4.2...24.8.0) - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.1](pre-commit/mirrors-mypy@v1.10.1...v1.11.1) * move toml to 3.12 * move actions to 3.12 --------- Co-authored-by: viktorpm <[email protected]> Co-authored-by: Niko Sirmpilatze <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Tyson <[email protected]>
- Loading branch information
1 parent
f082153
commit 1b8a10e
Showing
4 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,14 +27,16 @@ jobs: | |
strategy: | ||
matrix: | ||
# Run all supported Python versions on linux | ||
python-version: ["3.9", "3.10", "3.11"] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
os: [ubuntu-latest] | ||
# Include one windows and macos run | ||
# Include one windows and ARM/Intel macos run | ||
include: | ||
- os: macos-latest | ||
python-version: "3.10" | ||
- os: macos-13 # Intel Mac | ||
python-version: "3.12" | ||
- os: macos-latest # ARM Mac | ||
python-version: "3.12" | ||
- os: windows-latest | ||
python-version: "3.10" | ||
python-version: "3.11" | ||
|
||
steps: | ||
# Run tests | ||
|
@@ -56,11 +58,6 @@ jobs: | |
needs: [build_sdist_wheels] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: neuroinformatics-unit/actions/upload_pypi@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.BTB_UPLOAD_API_KEY }} | ||
secret-pypi-key: ${{ secrets.BTB_UPLOAD_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "brainglobe-template-builder" | |
authors = [{ name = "Niko Sirmpilatze", email = "[email protected]" }] | ||
description = "Build unbiased anatomical templates from individual images" | ||
readme = "README.md" | ||
requires-python = ">=3.9.0" | ||
requires-python = ">=3.10.0" | ||
dynamic = ["version"] | ||
|
||
license = { text = "BSD-3-Clause" } | ||
|
@@ -12,9 +12,9 @@ classifiers = [ | |
"Development Status :: 2 - Pre-Alpha", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: BSD License", | ||
] | ||
|
@@ -65,7 +65,7 @@ exclude = ["tests", "docs*"] | |
addopts = "--cov=brainglobe_template_builder" | ||
|
||
[tool.black] | ||
target-version = ['py39', 'py310', 'py311'] | ||
target-version = ['py310', 'py311', 'py312'] | ||
skip-string-normalization = false | ||
line-length = 79 | ||
|
||
|
@@ -90,23 +90,17 @@ exclude = ["__init__.py", "build", ".eggs", "scripts"] | |
select = ["I", "E", "F"] | ||
fix = true | ||
|
||
[tool.cibuildwheel] | ||
build = "cp39-* cp310-* cp311-*" | ||
|
||
[tool.cibuildwheel.macos] | ||
archs = ["x86_64", "arm64"] | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
envlist = py{39,310,311} | ||
envlist = py{310,311,312} | ||
isolated_build = True | ||
[gh-actions] | ||
python = | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
[testenv] | ||
extras = | ||
|