Skip to content

Commit

Permalink
refactor: implement dynamic origin and frame types
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee committed Dec 18, 2024
1 parent b42a3d9 commit 52b82fb
Show file tree
Hide file tree
Showing 61 changed files with 18,029 additions and 42,916 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
strategy:
matrix:
platform:
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86_64
- runner: ubuntu-latest
- runner: ubuntu-22.04
target: x86
- runner: ubuntu-latest
target: aarch64
Expand All @@ -35,11 +35,13 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter --manifest-path crates/lox-space/Cargo.toml
args: --release --out dist -i 3.9 -i 3.10 -i 3.11 -i 3.12 --manifest-path crates/lox-space/Cargo.toml
sccache: 'true'
manylinux: auto
- name: Upload wheels
Expand All @@ -54,8 +56,8 @@ jobs:
set -e
python3 -m venv .venv
source .venv/bin/activate
pip install lox-space --find-links dist --force-reinstall
pip install pytest
uv pip install lox-space --find-links dist --force-reinstall
uv pip install pytest pytest-codspeed
cd crates/lox-space && pytest
- name: pytest
if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
Expand All @@ -66,11 +68,15 @@ jobs:
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip pytest pytest-codspeed
apt-get install -y curl
curl -LsSf https://astral.sh/uv/install.sh | sh
run: |
set -e
pip3 install lox-space --find-links dist --force-reinstall
source $HOME/.local/bin/env
uv venv --python 3.12
uv pip install pytest pytest-codspeed
uv pip install lox-space --find-links dist --force-reinstall
source .venv/bin/activate
cd crates/lox-space && pytest
windows:
Expand Down Expand Up @@ -106,8 +112,8 @@ jobs:
set -e
python3 -m venv .venv
source .venv/Scripts/activate
pip install lox-space --find-links dist --force-reinstall
pip install pytest
pip install lox-space --find-links dist --force-reinstall
pip install pytest pytest-codspeed
cd crates/lox-space && pytest
macos:
Expand All @@ -123,7 +129,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -140,8 +146,8 @@ jobs:
set -e
python3 -m venv .venv
source .venv/bin/activate
pip install lox-space --find-links dist --force-reinstall
pip install pytest
pip install lox-space --find-links dist --force-reinstall
pip install pytest pytest-codspeed
cd crates/lox-space && pytest
sdist:
Expand Down
67 changes: 41 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ lox-time = { path = "crates/lox-time", version = "0.1.0-alpha.1" }
csv = "1.3.0"
divan = "0.1.14"
dyn-clone = "1.0.17"
fast_polynomial = "0.1.0"
fast_polynomial = "0.3.0"
float_eq = "1.0.1"
glam = "0.28.0"
glam = "0.29.2"
itertools = "0.13.0"
libm = "0.2.8"
nom = "7.1.3"
num = "0.4.1"
numpy = "0.22.1"
num-derive = "0.4.2"
num-traits = "0.2.19"
numpy = "0.23.0"
proptest = "1.4.0"
pyo3 = "0.22.6"
pyo3 = "0.23.3"
quick-xml = { version = "0.31.0", features = ["serde", "serialize"] }
regex = "1.10.4"
rstest = "0.21.0"
rstest = "0.23.0"
serde = { version = "1.0.199", features = ["derive"] }
serde-aux = "4.5.0"
serde_json = "1.0.113"
sgp4 = "2.2.0"
thiserror = "1.0"
thiserror = "2.0.3"
2 changes: 2 additions & 0 deletions crates/lox-bodies/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ lox-math.workspace = true

dyn-clone.workspace = true
fast_polynomial.workspace = true
num-derive.workspace = true
num-traits.workspace = true
pyo3 = { workspace = true, optional = true }
thiserror.workspace = true

Expand Down
Loading

0 comments on commit 52b82fb

Please sign in to comment.