Skip to content
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
6 changes: 3 additions & 3 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/sunpy/package-template",
"commit": "2d254ec79b0b2d9dfb8d7d08ebd83fa6da234b46",
"commit": "bea8060eef60df35f7df61d9db1d56b838bda01a",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -17,7 +17,7 @@
"changelog_url": "https://docs.sunpy.org/projects/ndcube/en/stable/whatsnew/changelog.html",
"issue_tracker_url": "https://github.com/sunpy/ndcube/issues",
"license": "BSD 2-Clause",
"minimum_python_version": "3.10",
"minimum_python_version": "3.11",
"use_compiled_extensions": "n",
"enable_dynamic_dev_versions": "y",
"include_example_code": "n",
Expand All @@ -32,7 +32,7 @@
".github/workflows/sub_package_update.yml"
],
"_template": "https://github.com/sunpy/package-template",
"_commit": "2d254ec79b0b2d9dfb8d7d08ebd83fa6da234b46"
"_commit": "bea8060eef60df35f7df61d9db1d56b838bda01a"
}
},
"directory": null
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
sdist_verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.12'
python-version: '3.13'
- run: python -m pip install -U --user build
- run: python -m build . --sdist
- run: python -m pip install -U --user twine
Expand All @@ -53,17 +53,18 @@ jobs:
toxdeps: tox-pypi-filter
posargs: -n auto
envs: |
- windows: py311
- linux: py314
- windows: py312
- macos: py312
- linux: py310-oldestdeps
- linux: py311-oldestdeps
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

docs:
needs: [core]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v2
with:
default_python: '3.12'
default_python: '3.13'
submodules: false
pytest: false
toxdeps: tox-pypi-filter
Expand All @@ -87,12 +88,12 @@ jobs:
)
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
default_python: '3.12'
default_python: '3.13'
submodules: false
coverage: codecov
toxdeps: tox-pypi-filter
envs: |
- linux: py311-devdeps
- linux: py314-devdeps
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -108,7 +109,7 @@ jobs:
needs: [test, docs]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v2
with:
python-version: '3.12'
python-version: '3.13'
test_extras: 'all,tests'
test_command: 'pytest -p no:warnings --doctest-rst --pyargs ndcube'
submodules: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_package_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.13.3"
rev: "v0.13.2"
hooks:
- id: ruff
args: ["--fix"]
Expand Down
2 changes: 0 additions & 2 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ select = [
extend-ignore = [
# pycodestyle (E, W)
"E501", # ignore line length will use a formatter instead
# pyupgrade (UP)
"UP038", # Use | in isinstance - not compatible with models and is slower
# numpy
"NPY002", # TODO: migrate from np.random.rand to np.random.Generator
# pytest (PT)
Expand Down
5 changes: 5 additions & 0 deletions changelog/889.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Increased minimum version of Python to 3.11.
Increased minimum version of NumPy to 1.26.0.
Increased minimum version of SciPy to 1.12.0.
Increased minimum version of astropy to 6.0.0.
Increased minimum version of gwcs to 0.20.0.
2 changes: 0 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
Installing ``ndcube``
*********************

`ndcube` requires Python >=3.9, ``astropy``>=5.0, ``numpy``>=1.21 and ``gwcs``>=0.18.

Installing the release version
------------------------------

Expand Down
30 changes: 16 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,54 @@ build-backend = "setuptools.build_meta"
[project]
name = "ndcube"
description = "A package for multi-dimensional contiguous and non-contiguous coordinate aware arrays."
requires-python = ">=3.10"
requires-python = ">=3.11"
readme = { file = "README.rst", content-type = "text/x-rst" }
license = { file = "licenses/LICENSE.rst" }
authors = [
{ name = "The SunPy Community", email = "[email protected]" },
]
dependencies = [
"astropy>=5.0.6,!=5.1.0",
"gwcs>=0.18",
"numpy>=1.23.0",
"scipy>=1.8.0",
"astropy>=6.0.0",
"gwcs>=0.20.0",
"numpy>=1.26.0",
"scipy>=1.12.0",
]
dynamic = ["version"]

[project.optional-dependencies]
# These are truly optional deps or deps only used for testing where we
# want oldestdeps to test them
tests-optional = [
"dask>=2023.10.0",
"specutils>=1.12.0",
"sunpy>=6.1.0",
]
tests = [
"dask",
"ndcube[all,tests-optional]",
"pytest-astropy",
"pytest-cov",
"pytest-doctestplus",
"pytest-mpl>=0.12",
"pytest-xdist",
"pytest",
"pytest-memray; sys_platform != 'win32'",
"scipy",
"specutils",
"sunpy>=5.0.0",
]
docs = [
"ndcube[all,tests-optional]",
"sphinx",
"sphinx-automodapi",
"sunpy-sphinx-theme",
"packaging",
"matplotlib",
"mpl-animators>=1.0",
"sphinx-changelog>=1.1.0",
"sphinx-gallery",
"sphinxext-opengraph",
"sunpy>=5.0.0",
]
plotting = [
"matplotlib>=3.5.0",
"matplotlib>=3.8.0",
"mpl_animators>=1.0",
]
reproject = [
"reproject>=0.7.1",
"reproject>=0.13", # first version with 3.12 support
]
all = [
"ndcube[plotting,reproject]",
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ min_version = 4.0
requires =
tox-pypi-filter>=0.14
envlist =
py{310,311,312}
py312-devdeps
py310-oldestdeps
py{311,312,313,314}
py314-devdeps
py311-oldestdeps
codestyle
build_docs

Expand Down Expand Up @@ -66,7 +66,7 @@ extras =
reproject
tests
commands_pre =
oldestdeps: minimum_dependencies ndcube --filename requirements-min.txt
oldestdeps: minimum_dependencies ndcube --extras plotting reproject tests-optional --filename requirements-min.txt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure we do this for packages in the future.

oldestdeps: pip install -r requirements-min.txt
oldestdeps: python -c "import astropy.time; astropy.time.update_leap_seconds()"
pip freeze --all --no-input
Expand Down