mcqgam 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcqgam-0.0.1/.github/CODEOWNERS +2 -0
- mcqgam-0.0.1/.github/workflows/release.yaml +62 -0
- mcqgam-0.0.1/.github/workflows/rust-ci.yaml +43 -0
- mcqgam-0.0.1/.gitignore +10 -0
- mcqgam-0.0.1/Cargo.lock +1467 -0
- mcqgam-0.0.1/Cargo.toml +11 -0
- mcqgam-0.0.1/PKG-INFO +29 -0
- mcqgam-0.0.1/README.md +18 -0
- mcqgam-0.0.1/dist/mcqgam-0.0.1-cp38-abi3-macosx_11_0_arm64.whl +0 -0
- mcqgam-0.0.1/dist/mcqgam-0.0.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl +0 -0
- mcqgam-0.0.1/dist/mcqgam-0.0.1-cp38-abi3-win_amd64.whl +0 -0
- mcqgam-0.0.1/pyproject.toml +23 -0
- mcqgam-0.0.1/python/mcqgam/__init__.py +3 -0
- mcqgam-0.0.1/python/mcqgam/__init__.pyi +55 -0
- mcqgam-0.0.1/python/mcqgam/py.typed +0 -0
- mcqgam-0.0.1/src/bspline/basis.rs +77 -0
- mcqgam-0.0.1/src/bspline/knots.rs +64 -0
- mcqgam-0.0.1/src/bspline/matrix.rs +227 -0
- mcqgam-0.0.1/src/bspline/mod.rs +3 -0
- mcqgam-0.0.1/src/interpolation/cubic.rs +108 -0
- mcqgam-0.0.1/src/interpolation/mod.rs +1 -0
- mcqgam-0.0.1/src/lib.rs +13 -0
- mcqgam-0.0.1/src/model.rs +106 -0
- mcqgam-0.0.1/src/python.rs +113 -0
- mcqgam-0.0.1/src/solver/admm.rs +255 -0
- mcqgam-0.0.1/src/solver/mod.rs +3 -0
- mcqgam-0.0.1/src/solver/objective.rs +43 -0
- mcqgam-0.0.1/src/solver/pava.rs +41 -0
- mcqgam-0.0.1/tests/test_bspline.rs +322 -0
- mcqgam-0.0.1/tests/test_interpolation.rs +47 -0
- mcqgam-0.0.1/tests/test_solver.rs +87 -0
- mcqgam-0.0.1/uv.lock +263 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: Release to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build_wheels:
|
|
13
|
+
name: Build wheels on ${{ matrix.os }}
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
|
|
22
|
+
- name: Build wheels
|
|
23
|
+
uses: PyO3/maturin-action@v1
|
|
24
|
+
with:
|
|
25
|
+
command: build
|
|
26
|
+
args: --release --out dist
|
|
27
|
+
manylinux: auto
|
|
28
|
+
sccache: "true"
|
|
29
|
+
|
|
30
|
+
- name: Upload wheels
|
|
31
|
+
uses: actions/upload-artifact@v7
|
|
32
|
+
with:
|
|
33
|
+
name: wheels-${{ matrix.os }}
|
|
34
|
+
path: dist
|
|
35
|
+
|
|
36
|
+
publish:
|
|
37
|
+
name: Publish to PyPI
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
needs: [build_wheels]
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v6
|
|
42
|
+
|
|
43
|
+
- name: Download all wheels
|
|
44
|
+
uses: actions/download-artifact@v8
|
|
45
|
+
with:
|
|
46
|
+
path: dist
|
|
47
|
+
pattern: wheels-*
|
|
48
|
+
merge-multiple: true
|
|
49
|
+
|
|
50
|
+
- name: Build sdist
|
|
51
|
+
uses: PyO3/maturin-action@v1
|
|
52
|
+
with:
|
|
53
|
+
command: sdist
|
|
54
|
+
args: --out dist
|
|
55
|
+
|
|
56
|
+
- name: Publish to PyPI
|
|
57
|
+
uses: PyO3/maturin-action@v1
|
|
58
|
+
env:
|
|
59
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
60
|
+
with:
|
|
61
|
+
command: upload
|
|
62
|
+
args: --non-interactive --skip-existing dist/*
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Rust CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, reopened, synchronize]
|
|
6
|
+
paths:
|
|
7
|
+
- "src/**/*.rs"
|
|
8
|
+
- "tests/**/*.rs"
|
|
9
|
+
- "Cargo.toml"
|
|
10
|
+
- "Cargo.lock"
|
|
11
|
+
push:
|
|
12
|
+
branches:
|
|
13
|
+
- main
|
|
14
|
+
paths:
|
|
15
|
+
- "src/**/*.rs"
|
|
16
|
+
- "tests/**/*.rs"
|
|
17
|
+
- "Cargo.toml"
|
|
18
|
+
- "Cargo.lock"
|
|
19
|
+
|
|
20
|
+
env:
|
|
21
|
+
CARGO_TERM_COLOR: always
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
quality-check:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v6
|
|
28
|
+
- name: Install Rust
|
|
29
|
+
uses: dtolnay/rust-toolchain@stable
|
|
30
|
+
with:
|
|
31
|
+
components: rustfmt, clippy
|
|
32
|
+
|
|
33
|
+
- name: Rust Cache
|
|
34
|
+
uses: Swatinem/rust-cache@v2
|
|
35
|
+
|
|
36
|
+
- name: Check Formatting
|
|
37
|
+
run: cargo fmt --check
|
|
38
|
+
|
|
39
|
+
- name: Run Clippy
|
|
40
|
+
run: cargo clippy -- -D warnings
|
|
41
|
+
|
|
42
|
+
- name: Run Tests
|
|
43
|
+
run: cargo test --verbose --release
|