fcwt2 1.2.0__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.
- fcwt2-1.2.0/.github/workflows/python-release.yml +136 -0
- fcwt2-1.2.0/.gitignore +8 -0
- fcwt2-1.2.0/Cargo.lock +788 -0
- fcwt2-1.2.0/Cargo.toml +30 -0
- fcwt2-1.2.0/LICENSE.txt +202 -0
- fcwt2-1.2.0/PKG-INFO +9 -0
- fcwt2-1.2.0/benches/cwt.rs +59 -0
- fcwt2-1.2.0/justfile +14 -0
- fcwt2-1.2.0/pyproject.toml +17 -0
- fcwt2-1.2.0/readme.md +119 -0
- fcwt2-1.2.0/rust-toolchain.toml +3 -0
- fcwt2-1.2.0/src/fcwt.rs +430 -0
- fcwt2-1.2.0/src/lib.rs +35 -0
- fcwt2-1.2.0/src/morlet.rs +110 -0
- fcwt2-1.2.0/src/python.rs +304 -0
- fcwt2-1.2.0/src/scales.rs +217 -0
- fcwt2-1.2.0/src/wavelet.rs +23 -0
- fcwt2-1.2.0/uv.lock +8 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
name: Python Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build-wheels:
|
|
15
|
+
name: Build wheels (${{ matrix.os }})
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
os:
|
|
21
|
+
- ubuntu-latest
|
|
22
|
+
- macos-latest
|
|
23
|
+
- windows-latest
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Checkout
|
|
27
|
+
uses: actions/checkout@v6
|
|
28
|
+
|
|
29
|
+
- name: Install Rust toolchain
|
|
30
|
+
uses: dtolnay/rust-toolchain@master
|
|
31
|
+
with:
|
|
32
|
+
toolchain: nightly-2026-04-03
|
|
33
|
+
|
|
34
|
+
- name: Install Python
|
|
35
|
+
uses: actions/setup-python@v5
|
|
36
|
+
with:
|
|
37
|
+
python-version: "3.x"
|
|
38
|
+
|
|
39
|
+
- name: Build wheels
|
|
40
|
+
uses: PyO3/maturin-action@v1
|
|
41
|
+
with:
|
|
42
|
+
command: build
|
|
43
|
+
args: --release --features python --out dist
|
|
44
|
+
manylinux: auto
|
|
45
|
+
|
|
46
|
+
- name: Check wheel
|
|
47
|
+
shell: bash
|
|
48
|
+
run: |
|
|
49
|
+
python -m pip install --upgrade pip twine
|
|
50
|
+
python -m twine check dist/*.whl
|
|
51
|
+
|
|
52
|
+
- name: Upload wheel artifact
|
|
53
|
+
uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-${{ matrix.os }}
|
|
56
|
+
path: dist/*.whl
|
|
57
|
+
if-no-files-found: error
|
|
58
|
+
|
|
59
|
+
build-sdist:
|
|
60
|
+
name: Build source distribution
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
|
|
63
|
+
steps:
|
|
64
|
+
- name: Checkout
|
|
65
|
+
uses: actions/checkout@v4
|
|
66
|
+
|
|
67
|
+
- name: Install Rust toolchain
|
|
68
|
+
uses: dtolnay/rust-toolchain@master
|
|
69
|
+
with:
|
|
70
|
+
toolchain: nightly-2026-04-03
|
|
71
|
+
|
|
72
|
+
- name: Install Python
|
|
73
|
+
uses: actions/setup-python@v5
|
|
74
|
+
with:
|
|
75
|
+
python-version: "3.x"
|
|
76
|
+
|
|
77
|
+
- name: Build sdist
|
|
78
|
+
uses: PyO3/maturin-action@v1
|
|
79
|
+
with:
|
|
80
|
+
command: sdist
|
|
81
|
+
args: --out dist
|
|
82
|
+
|
|
83
|
+
- name: Check sdist
|
|
84
|
+
run: |
|
|
85
|
+
python -m pip install --upgrade pip twine
|
|
86
|
+
python -m twine check dist/*.tar.gz
|
|
87
|
+
|
|
88
|
+
- name: Upload sdist artifact
|
|
89
|
+
uses: actions/upload-artifact@v4
|
|
90
|
+
with:
|
|
91
|
+
name: sdist
|
|
92
|
+
path: dist/*.tar.gz
|
|
93
|
+
if-no-files-found: error
|
|
94
|
+
|
|
95
|
+
upload-release-assets:
|
|
96
|
+
name: Upload release assets
|
|
97
|
+
runs-on: ubuntu-latest
|
|
98
|
+
needs:
|
|
99
|
+
- build-wheels
|
|
100
|
+
- build-sdist
|
|
101
|
+
if: github.ref_type == 'tag'
|
|
102
|
+
|
|
103
|
+
steps:
|
|
104
|
+
- name: Download artifacts
|
|
105
|
+
uses: actions/download-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
path: dist
|
|
108
|
+
merge-multiple: true
|
|
109
|
+
|
|
110
|
+
- name: Upload assets to GitHub Release
|
|
111
|
+
uses: softprops/action-gh-release@v3
|
|
112
|
+
with:
|
|
113
|
+
files: dist/*
|
|
114
|
+
|
|
115
|
+
publish-pypi:
|
|
116
|
+
name: Publish to PyPI
|
|
117
|
+
runs-on: ubuntu-latest
|
|
118
|
+
needs:
|
|
119
|
+
- build-wheels
|
|
120
|
+
- build-sdist
|
|
121
|
+
if: github.ref_type == 'tag'
|
|
122
|
+
environment:
|
|
123
|
+
name: pypi
|
|
124
|
+
url: https://pypi.org/p/fcwt2
|
|
125
|
+
|
|
126
|
+
steps:
|
|
127
|
+
- name: Download artifacts
|
|
128
|
+
uses: actions/download-artifact@v4
|
|
129
|
+
with:
|
|
130
|
+
path: dist
|
|
131
|
+
merge-multiple: true
|
|
132
|
+
|
|
133
|
+
- name: Publish package distributions to PyPI
|
|
134
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
135
|
+
with:
|
|
136
|
+
packages-dir: dist
|