Skip to content

Commit

Permalink
ditch python 3.10 and scipy path
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Jan 16, 2024
1 parent cc7cf6a commit 94fd200
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

env:
CIBW_BUILD: "cp38-* cp39-* cp310-*"
CIBW_BUILD: "cp38-* cp39-*"
CIBW_SKIP: "*-win32 *musllinux* *i686*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
matrix:
include:

- name: Python 3.10 with minimal dependencies and coverage
- name: Python 3.9 with minimal dependencies and coverage
os: ubuntu-latest
python: "3.10"
toxenv: py310-test-cov
python: "3.9"
toxenv: py39-test-cov

- name: Python 3.10
- name: Python 3.9
os: ubuntu-latest
python: '3.10'
toxenv: py310-test
python: '3.9'
toxenv: py39-test

- name: Python 3.9 dev dependencies (allowed failure! check logs)
os: ubuntu-latest
Expand All @@ -33,10 +33,10 @@ jobs:
toxposargs: --durations=50 || true # override exit code

# Mac:
- name: Python 3.10 standard tests (macOS)
- name: Python 3.9 standard tests (macOS)
os: macos-latest
python: "3.10"
toxenv: py310-test
python: "3.9"
toxenv: py39-test

# Older Python versions:
- name: Python 3.9 with oldest supported version of all dependencies
Expand Down
3 changes: 0 additions & 3 deletions thejoker/src/setup_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ def get_extensions():
exts = []

import numpy as np
import scipy
import twobody

cfg = defaultdict(list)
cfg['include_dirs'].append(np.get_include())

twobody_path = os.path.dirname(twobody.__file__)
scipy_path = os.path.dirname(scipy.__file__)
cfg['include_dirs'].append(twobody_path)
cfg['include_dirs'].append(scipy_path)
cfg['sources'].append(os.path.join(twobody_path, 'src/twobody.c'))

cfg['extra_compile_args'].append('--std=gnu99')
Expand Down

0 comments on commit 94fd200

Please sign in to comment.