Skip to content
Closed
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
12 changes: 4 additions & 8 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ jobs:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@8c0fde6f7e926df6ed7057255d29afa9c1ad5320 # v1.16.0
with:
envs: |
- macos: py310-test-oldestdeps
- macos: py311-test
- macos: py311-test-oldestdeps
- macos: py312-test
- macos: py313-test
- linux: py310-test-oldestdeps
- linux: py311-test
- linux: py311-test-oldestdeps
- linux: py312-test
runs-on: ubuntu-24.04-arm
- linux: py313-test
- linux: py312-test-devdeps
- windows: py310-test-oldestdeps
- linux: py313-test-devdeps
- windows: py311-test-oldestdeps
- windows: py311-test
- windows: py312-test
- windows: py313-test
libraries: |
apt:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.11"
apt_packages:
- graphviz

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
license = {text = "BSD 3-Clause"}
description = "Reproject astronomical images"
urls = {Homepage = "https://reproject.readthedocs.io"}
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"numpy>=1.23",
"astropy>=5.0",
Expand Down Expand Up @@ -47,8 +47,8 @@ docs = [
requires = ["setuptools",
"setuptools_scm",
"extension-helpers==1.*",
"numpy>=2.0.0rc1",
"cython>=3.0,<3.1"]
"numpy>=2",
"cython>=3.1"]
build-backend = 'setuptools.build_meta'

[tool.setuptools]
Expand Down
33 changes: 33 additions & 0 deletions reproject/adaptive/setup_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import os

import numpy as np
from setuptools import Extension

ADAPTIVE_SUBPKG = os.path.dirname(__file__)


def get_extensions():
libraries = []

Check warning on line 10 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L10

Added line #L10 was not covered by tests

sources = []
sources.append(os.path.join(ADAPTIVE_SUBPKG, "deforest.pyx"))

Check warning on line 13 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L12-L13

Added lines #L12 - L13 were not covered by tests

include_dirs = [np.get_include()]

Check warning on line 15 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L15

Added line #L15 was not covered by tests

define_macros = []

Check warning on line 17 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L17

Added line #L17 was not covered by tests

define_macros.append(("CYTHON_LIMITED_API", "0x030B0000"))
define_macros.append(("Py_LIMITED_API", "0x030B0000"))

Check warning on line 20 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L19-L20

Added lines #L19 - L20 were not covered by tests

extension = Extension(

Check warning on line 22 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L22

Added line #L22 was not covered by tests
name="reproject.adaptive.deforest",
sources=sources,
include_dirs=include_dirs,
libraries=libraries,
language="c",
extra_compile_args=["-O2"],
define_macros=define_macros,
py_limited_api=True,
)

return [extension]

Check warning on line 33 in reproject/adaptive/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/adaptive/setup_package.py#L33

Added line #L33 was not covered by tests
6 changes: 5 additions & 1 deletion reproject/spherical_intersect/setup_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
if int(os.environ.get("DEBUG_OVERLAP_AREA", 0)):
define_macros = [("DEBUG_OVERLAP_AREA", 1)]
else:
define_macros = None
define_macros = []

Check warning on line 26 in reproject/spherical_intersect/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/spherical_intersect/setup_package.py#L26

Added line #L26 was not covered by tests

define_macros.append(("CYTHON_LIMITED_API", "0x030B0000"))
define_macros.append(("Py_LIMITED_API", "0x030B0000"))

Check warning on line 29 in reproject/spherical_intersect/setup_package.py

View check run for this annotation

Codecov / codecov/patch

reproject/spherical_intersect/setup_package.py#L28-L29

Added lines #L28 - L29 were not covered by tests

extension = Extension(
name="reproject.spherical_intersect._overlap",
Expand All @@ -33,6 +36,7 @@
language="c",
extra_compile_args=["-O2"],
define_macros=define_macros,
py_limited_api=True,
)

return [extension]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{310,311,312}-{test}{,-oldestdeps,-numpy121}
py{311,312,313}-{test}{,-oldestdeps,-numpy121}
build_docs
codestyle
isolated_build = True
Expand Down