Skip to content

Commit 8833cbf

Browse files
authored
Bugfix 2.4.12 (#797)
* upgrade the build system to pyproject.toml with setuptools as backend and pip as frontend. * drop the dependency on the obsolete distutils module. * swap nosetests for pytest. * small build-related bugfixes throughout the code. ---------
1 parent 7bc4489 commit 8833cbf

File tree

143 files changed

+885
-1328
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+885
-1328
lines changed

.github/workflows/on_pr.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Latest per-python environments
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- 'master'
9+
- 'feature-*'
10+
- 'bugfix-*'
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
19+
os: [ubuntu-latest, macos-latest] # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
20+
toolchain:
21+
- {compiler: gcc, version: 13} # https://github.com/fortran-lang/setup-fortran
22+
23+
name: ${{ matrix.os }} python${{ matrix.python-version}}
24+
steps:
25+
- name: Checkout PHOEBE
26+
uses: actions/checkout@v4
27+
28+
- name: Setup python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: PHOEBE environment variables
34+
run: |
35+
export PHOEBE_ENABLE_PLOTTING='FALSE'
36+
export PHOEBE_UPDATE_PASSBAND_IGNORE_VERSION='TRUE'
37+
38+
- name: Update pip
39+
run: |
40+
python -m pip install --upgrade pip
41+
42+
- name: Install phoebe optional modules
43+
run: |
44+
python -m pip install rebound
45+
46+
- name: Install PHOEBE from source
47+
run: |
48+
pip install .
49+
50+
- name: Install and run pipdeptree to see package dependencies
51+
run: |
52+
python -m pip install pipdeptree
53+
pipdeptree
54+
55+
- name: Checkout photodynam
56+
uses: actions/checkout@v4
57+
with:
58+
repository: phoebe-project/photodynam
59+
path: photodynam
60+
61+
- name: Install photodynam
62+
run: |
63+
cd photodynam
64+
make
65+
sudo cp photodynam /usr/local/bin/
66+
python setup.py build && python3 setup.py install --user
67+
cd ..
68+
69+
- name: Test photodynam install
70+
run: |
71+
python -c "import photodynam"
72+
73+
- name: Setup GNU Fortran
74+
id: setup-fortran
75+
uses: fortran-lang/setup-fortran@v1
76+
77+
- name: Install jktebop
78+
env:
79+
FC: ${{ steps.setup-fortran.outputs.fc }}
80+
run: |
81+
wget https://www.astro.keele.ac.uk/jkt/codes/jktebop-v43.tgz
82+
tar -xvzf jktebop-v43.tgz
83+
cd jktebop43
84+
${{ env.FC }} -o jktebop jktebop.f
85+
echo $(pwd) >> $GITHUB_PATH
86+
cd ..
87+
88+
- name: Test jktebop install
89+
run: |
90+
jktebop
91+
92+
- name: Run tests
93+
run: |
94+
pytest --verbose --capture=no tests/tests/

.github/workflows/on_pr_test_python_31x.yml

Lines changed: 0 additions & 119 deletions
This file was deleted.

.github/workflows/on_pr_test_python_37.yml

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)