Skip to content

Commit 71984db

Browse files
authored
Merge pull request #889 from Cadair/cruft-manual-update
Updates from package template
2 parents a3cc83c + 059ac9c commit 71984db

File tree

9 files changed

+41
-37
lines changed

9 files changed

+41
-37
lines changed

.cruft.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sunpy/package-template",
3-
"commit": "2d254ec79b0b2d9dfb8d7d08ebd83fa6da234b46",
3+
"commit": "bea8060eef60df35f7df61d9db1d56b838bda01a",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -17,7 +17,7 @@
1717
"changelog_url": "https://docs.sunpy.org/projects/ndcube/en/stable/whatsnew/changelog.html",
1818
"issue_tracker_url": "https://github.com/sunpy/ndcube/issues",
1919
"license": "BSD 2-Clause",
20-
"minimum_python_version": "3.10",
20+
"minimum_python_version": "3.11",
2121
"use_compiled_extensions": "n",
2222
"enable_dynamic_dev_versions": "y",
2323
"include_example_code": "n",
@@ -32,7 +32,7 @@
3232
".github/workflows/sub_package_update.yml"
3333
],
3434
"_template": "https://github.com/sunpy/package-template",
35-
"_commit": "2d254ec79b0b2d9dfb8d7d08ebd83fa6da234b46"
35+
"_commit": "bea8060eef60df35f7df61d9db1d56b838bda01a"
3636
}
3737
},
3838
"directory": null

.github/workflows/ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
sdist_verify:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v4
39-
- uses: actions/setup-python@v5
38+
- uses: actions/checkout@v5
39+
- uses: actions/setup-python@v6
4040
with:
41-
python-version: '3.12'
41+
python-version: '3.13'
4242
- run: python -m pip install -U --user build
4343
- run: python -m build . --sdist
4444
- run: python -m pip install -U --user twine
@@ -53,17 +53,18 @@ jobs:
5353
toxdeps: tox-pypi-filter
5454
posargs: -n auto
5555
envs: |
56-
- windows: py311
56+
- linux: py314
57+
- windows: py312
5758
- macos: py312
58-
- linux: py310-oldestdeps
59+
- linux: py311-oldestdeps
5960
secrets:
6061
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6162

6263
docs:
6364
needs: [core]
6465
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
6566
with:
66-
default_python: '3.12'
67+
default_python: '3.13'
6768
submodules: false
6869
pytest: false
6970
toxdeps: tox-pypi-filter
@@ -87,12 +88,12 @@ jobs:
8788
)
8889
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
8990
with:
90-
default_python: '3.12'
91+
default_python: '3.13'
9192
submodules: false
9293
coverage: codecov
9394
toxdeps: tox-pypi-filter
9495
envs: |
95-
- linux: py311-devdeps
96+
- linux: py314-devdeps
9697
secrets:
9798
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9899

@@ -108,7 +109,7 @@ jobs:
108109
needs: [test, docs]
109110
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v2
110111
with:
111-
python-version: '3.12'
112+
python-version: '3.13'
112113
test_extras: 'all,tests'
113114
test_command: 'pytest -p no:warnings --doctest-rst --pyargs ndcube'
114115
submodules: false

.github/workflows/sub_package_update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
strategy:
2323
fail-fast: true
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626

27-
- uses: actions/setup-python@v5
27+
- uses: actions/setup-python@v6
2828
with:
2929
python-version: "3.11"
3030

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# This should be before any formatting hooks like isort
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: "v0.13.3"
4+
rev: "v0.13.2"
55
hooks:
66
- id: ruff
77
args: ["--fix"]

.ruff.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ select = [
3434
extend-ignore = [
3535
# pycodestyle (E, W)
3636
"E501", # ignore line length will use a formatter instead
37-
# pyupgrade (UP)
38-
"UP038", # Use | in isinstance - not compatible with models and is slower
3937
# numpy
4038
"NPY002", # TODO: migrate from np.random.rand to np.random.Generator
4139
# pytest (PT)

changelog/889.breaking.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Increased minimum version of Python to 3.11.
2+
Increased minimum version of NumPy to 1.26.0.
3+
Increased minimum version of SciPy to 1.12.0.
4+
Increased minimum version of astropy to 6.0.0.
5+
Increased minimum version of gwcs to 0.20.0.

docs/installation.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Installing ``ndcube``
55
*********************
66

7-
`ndcube` requires Python >=3.9, ``astropy``>=5.0, ``numpy``>=1.21 and ``gwcs``>=0.18.
8-
97
Installing the release version
108
------------------------------
119

pyproject.toml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,54 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "ndcube"
1111
description = "A package for multi-dimensional contiguous and non-contiguous coordinate aware arrays."
12-
requires-python = ">=3.10"
12+
requires-python = ">=3.11"
1313
readme = { file = "README.rst", content-type = "text/x-rst" }
1414
license = { file = "licenses/LICENSE.rst" }
1515
authors = [
1616
{ name = "The SunPy Community", email = "sunpy@googlegroups.com" },
1717
]
1818
dependencies = [
19-
"astropy>=5.0.6,!=5.1.0",
20-
"gwcs>=0.18",
21-
"numpy>=1.23.0",
22-
"scipy>=1.8.0",
19+
"astropy>=6.0.0",
20+
"gwcs>=0.20.0",
21+
"numpy>=1.26.0",
22+
"scipy>=1.12.0",
2323
]
2424
dynamic = ["version"]
2525

2626
[project.optional-dependencies]
27+
# These are truly optional deps or deps only used for testing where we
28+
# want oldestdeps to test them
29+
tests-optional = [
30+
"dask>=2023.10.0",
31+
"specutils>=1.12.0",
32+
"sunpy>=6.1.0",
33+
]
2734
tests = [
28-
"dask",
35+
"ndcube[all,tests-optional]",
2936
"pytest-astropy",
3037
"pytest-cov",
3138
"pytest-doctestplus",
3239
"pytest-mpl>=0.12",
3340
"pytest-xdist",
3441
"pytest",
3542
"pytest-memray; sys_platform != 'win32'",
36-
"scipy",
37-
"specutils",
38-
"sunpy>=5.0.0",
3943
]
4044
docs = [
45+
"ndcube[all,tests-optional]",
4146
"sphinx",
4247
"sphinx-automodapi",
4348
"sunpy-sphinx-theme",
4449
"packaging",
45-
"matplotlib",
46-
"mpl-animators>=1.0",
4750
"sphinx-changelog>=1.1.0",
4851
"sphinx-gallery",
4952
"sphinxext-opengraph",
50-
"sunpy>=5.0.0",
5153
]
5254
plotting = [
53-
"matplotlib>=3.5.0",
55+
"matplotlib>=3.8.0",
5456
"mpl_animators>=1.0",
5557
]
5658
reproject = [
57-
"reproject>=0.7.1",
59+
"reproject>=0.13", # first version with 3.12 support
5860
]
5961
all = [
6062
"ndcube[plotting,reproject]",

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ min_version = 4.0
33
requires =
44
tox-pypi-filter>=0.14
55
envlist =
6-
py{310,311,312}
7-
py312-devdeps
8-
py310-oldestdeps
6+
py{311,312,313,314}
7+
py314-devdeps
8+
py311-oldestdeps
99
codestyle
1010
build_docs
1111

@@ -66,7 +66,7 @@ extras =
6666
reproject
6767
tests
6868
commands_pre =
69-
oldestdeps: minimum_dependencies ndcube --filename requirements-min.txt
69+
oldestdeps: minimum_dependencies ndcube --extras plotting reproject tests-optional --filename requirements-min.txt
7070
oldestdeps: pip install -r requirements-min.txt
7171
oldestdeps: python -c "import astropy.time; astropy.time.update_leap_seconds()"
7272
pip freeze --all --no-input

0 commit comments

Comments
 (0)