rustymath 0.1.4__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.
- rustymath-0.1.4/.cargo/config.toml +3 -0
- rustymath-0.1.4/.github/workflows/ci.yml +92 -0
- rustymath-0.1.4/.github/workflows/docs.yml +14 -0
- rustymath-0.1.4/.gitignore +19 -0
- rustymath-0.1.4/Cargo.lock +948 -0
- rustymath-0.1.4/Cargo.toml +59 -0
- rustymath-0.1.4/DEV.md +66 -0
- rustymath-0.1.4/LICENSE +202 -0
- rustymath-0.1.4/PKG-INFO +212 -0
- rustymath-0.1.4/README.md +188 -0
- rustymath-0.1.4/THIRD-PARTY.md +56 -0
- rustymath-0.1.4/nbs/_quarto.yml +27 -0
- rustymath-0.1.4/nbs/index.ipynb +282 -0
- rustymath-0.1.4/nbs/nbdev.yml +14 -0
- rustymath-0.1.4/nbs/sidebar.yml +4 -0
- rustymath-0.1.4/nbs/styles.css +26 -0
- rustymath-0.1.4/py/Cargo.toml +21 -0
- rustymath-0.1.4/py/build.rs +1 -0
- rustymath-0.1.4/py/src/distribution.rs +91 -0
- rustymath-0.1.4/py/src/lib.rs +180 -0
- rustymath-0.1.4/py/src/number_theory.rs +66 -0
- rustymath-0.1.4/py/src/polynomial.rs +62 -0
- rustymath-0.1.4/py/src/search.rs +45 -0
- rustymath-0.1.4/pyproject.toml +41 -0
- rustymath-0.1.4/python/rustymath/__init__.py +107 -0
- rustymath-0.1.4/python/rustymath/_modidx.py +8 -0
- rustymath-0.1.4/python/rustymath/polynomial.py +65 -0
- rustymath-0.1.4/src/accuracy.rs +470 -0
- rustymath-0.1.4/src/arc.rs +91 -0
- rustymath-0.1.4/src/dd.rs +58 -0
- rustymath-0.1.4/src/distribution.rs +786 -0
- rustymath-0.1.4/src/exp.rs +101 -0
- rustymath-0.1.4/src/float.rs +197 -0
- rustymath-0.1.4/src/hyperbolic.rs +81 -0
- rustymath-0.1.4/src/lib.md +94 -0
- rustymath-0.1.4/src/lib.rs +167 -0
- rustymath-0.1.4/src/ln.rs +124 -0
- rustymath-0.1.4/src/number_theory.rs +742 -0
- rustymath-0.1.4/src/polynomial.rs +145 -0
- rustymath-0.1.4/src/pow.rs +152 -0
- rustymath-0.1.4/src/search.rs +249 -0
- rustymath-0.1.4/src/special.rs +710 -0
- rustymath-0.1.4/src/table.rs +333 -0
- rustymath-0.1.4/src/tolerant.rs +454 -0
- rustymath-0.1.4/src/trig.rs +228 -0
- rustymath-0.1.4/testdata/arm.txt +1979 -0
- rustymath-0.1.4/testdata/compiler-builtins.txt +38 -0
- rustymath-0.1.4/testdata/core-math.txt +33827 -0
- rustymath-0.1.4/testdata/libc-test.txt +1076 -0
- rustymath-0.1.4/testdata/mpmath.txt +16759 -0
- rustymath-0.1.4/testdata/reduction.txt +113 -0
- rustymath-0.1.4/testdata/references.py +136 -0
- rustymath-0.1.4/tests/speed.rs +179 -0
- rustymath-0.1.4/tests/test_basic.py +82 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ['v*']
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test-rust:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v7
|
|
17
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
18
|
+
# The repository has no `Cargo.lock`. Creating one first makes rust-cache's key change when a dependency publishes a new version.
|
|
19
|
+
- run: cargo generate-lockfile
|
|
20
|
+
- uses: Swatinem/rust-cache@v2
|
|
21
|
+
- run: cargo test
|
|
22
|
+
|
|
23
|
+
test-python:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v7
|
|
27
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
28
|
+
# The repository has no `Cargo.lock`. Creating one first makes rust-cache's key change when a dependency publishes a new version.
|
|
29
|
+
- run: cargo generate-lockfile
|
|
30
|
+
- uses: Swatinem/rust-cache@v2
|
|
31
|
+
- uses: actions/setup-python@v7
|
|
32
|
+
with:
|
|
33
|
+
python-version: '3.12'
|
|
34
|
+
- run: pip install -e '.[dev]'
|
|
35
|
+
- run: pytest -q
|
|
36
|
+
- run: nbdev-test
|
|
37
|
+
|
|
38
|
+
build:
|
|
39
|
+
needs: [test-rust, test-python]
|
|
40
|
+
strategy:
|
|
41
|
+
matrix:
|
|
42
|
+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
|
|
43
|
+
runs-on: ${{ matrix.os }}
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v7
|
|
46
|
+
- uses: PyO3/maturin-action@v1
|
|
47
|
+
with:
|
|
48
|
+
args: --profile dist --out dist -i python3.10 -i python3.11 -i python3.12 -i python3.13
|
|
49
|
+
manylinux: auto
|
|
50
|
+
- uses: actions/upload-artifact@v7
|
|
51
|
+
with:
|
|
52
|
+
name: wheels-${{ matrix.os }}
|
|
53
|
+
path: dist
|
|
54
|
+
|
|
55
|
+
sdist:
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/checkout@v7
|
|
59
|
+
- uses: PyO3/maturin-action@v1
|
|
60
|
+
with:
|
|
61
|
+
command: sdist
|
|
62
|
+
args: -o dist
|
|
63
|
+
- uses: actions/upload-artifact@v7
|
|
64
|
+
with:
|
|
65
|
+
name: wheels-sdist
|
|
66
|
+
path: dist
|
|
67
|
+
|
|
68
|
+
publish:
|
|
69
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
70
|
+
needs: [build, sdist]
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
permissions:
|
|
73
|
+
contents: write
|
|
74
|
+
id-token: write
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/checkout@v7
|
|
77
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
78
|
+
- id: auth
|
|
79
|
+
uses: rust-lang/crates-io-auth-action@v1
|
|
80
|
+
- run: cargo publish -p rustymath --no-verify
|
|
81
|
+
env:
|
|
82
|
+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
|
|
83
|
+
- uses: actions/download-artifact@v8
|
|
84
|
+
with:
|
|
85
|
+
pattern: wheels-*
|
|
86
|
+
path: dist
|
|
87
|
+
merge-multiple: true
|
|
88
|
+
- uses: softprops/action-gh-release@v3
|
|
89
|
+
with:
|
|
90
|
+
files: dist/*
|
|
91
|
+
generate_release_notes: true
|
|
92
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|