Skip to content

Commit fb6a545

Browse files
authored
Merge pull request #1 from xhan97/develop
First release
2 parents 41d3b86 + c26d13e commit fb6a545

File tree

153 files changed

+16976
-12736
lines changed

Some content is hidden

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

153 files changed

+16976
-12736
lines changed

.coveragerc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
[run]
44
branch = True
5-
source = IsoML
6-
include = */IsoML/*
5+
source = pyikt
6+
include = */pyikt/*

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# GitHub syntax highlighting
2+
pixi.lock linguist-language=YAML linguist-generated=true
3+
# SCM syntax highlighting
4+
pixi.lock linguist-language=YAML linguist-generated=true

.github/workflows/deploy-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ jobs:
3030
uses: peaceiris/[email protected]
3131
with:
3232
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./doc/_build/html
33+
publish_dir: ./site
3434
commit_message: "[ci skip] ${{ github.event.head_commit.message }}"

.github/workflows/pypi.yml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
name: pypi
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
build_linux_wheels:
11+
name: Build ${{ matrix.linux_tag }} wheels with cp${{ matrix.python-version }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
linux_tag: ["manylinux", "musllinux"]
16+
python-version: ["310", "311", "312", "313"]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
with:
22+
platforms: all
23+
- name: Build wheels
24+
uses: pypa/[email protected]
25+
timeout-minutes: 720
26+
env:
27+
CIBW_BUILD: "cp${{ matrix.python-version }}-${{ matrix.linux_tag }}_*"
28+
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
29+
CIBW_SKIP: "*-musllinux_i686"
30+
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
31+
CIBW_MANYLINUX_I686_IMAGE: "manylinux2014"
32+
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014"
33+
CIBW_MUSLLINUX_X86_64_IMAGE: "musllinux_1_1"
34+
CIBW_MUSLLINUX_I686_IMAGE: "musllinux_1_1"
35+
CIBW_MUSLLINUX_AARCH64_IMAGE: "musllinux_1_1"
36+
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
37+
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI="true"'
38+
CIBW_BEFORE_BUILD: >
39+
rustup default nightly &&
40+
rustup show
41+
CIBW_BEFORE_BUILD_LINUX: >
42+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
43+
rustup show
44+
- uses: actions/upload-artifact@v4
45+
with:
46+
name: artifact-${{ matrix.linux_tag }}-cp${{ matrix.python-version }}
47+
path: ./wheelhouse/*.whl
48+
49+
build_macos_wheels:
50+
name: Build wheels on ${{ matrix.os }}
51+
runs-on: ${{ matrix.os }}
52+
strategy:
53+
matrix:
54+
os: [macos-13, macos-14]
55+
steps:
56+
- uses: actions/checkout@v4
57+
- name: Set up rust
58+
uses: dtolnay/rust-toolchain@stable
59+
with:
60+
toolchain: nightly
61+
- run: rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin
62+
- name: Build wheels
63+
uses: pypa/[email protected]
64+
timeout-minutes: 720
65+
env:
66+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*"
67+
CIBW_ARCHS_MACOS: "universal2"
68+
# arm64 and universal2 wheels are tagged with x86_64 because there's an issue with Poetry
69+
# More information here: https://cibuildwheel.readthedocs.io/en/stable/faq/#how-to-cross-compile (CTRL + F "poetry")
70+
# https://github.com/pypa/cibuildwheel/issues/1415
71+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
72+
ls {dest_dir} &&
73+
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} &&
74+
for file in {dest_dir}/*.whl ; do mv $file ${file//x86_64/universal2} ; done
75+
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
76+
CIBW_BEFORE_BUILD: >
77+
rustup default nightly &&
78+
rustup show
79+
- uses: actions/upload-artifact@v4
80+
with:
81+
name: artifact-${{ matrix.os }}
82+
path: ./wheelhouse/*.whl
83+
84+
build_windows_wheels:
85+
name: Build wheels on ${{ matrix.os }}
86+
runs-on: ${{ matrix.os }}
87+
strategy:
88+
matrix:
89+
os: [windows-2019, windows-2022]
90+
steps:
91+
- uses: actions/checkout@v4
92+
- name: Set up rust
93+
uses: dtolnay/rust-toolchain@stable
94+
with:
95+
toolchain: nightly
96+
- run: rustup toolchain install stable-i686-pc-windows-msvc
97+
- run: rustup target add i686-pc-windows-msvc
98+
- name: Build wheels
99+
uses: pypa/[email protected]
100+
timeout-minutes: 720
101+
env:
102+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*"
103+
CIBW_ARCHS_WINDOWS: "AMD64 x86"
104+
CIBW_ENVIRONMENT: 'PATH="$HOME/.cargo/bin:$PATH"'
105+
CIBW_ENVIRONMENT_WINDOWS: 'PATH="$UserProfile\.cargo\bin;$PATH"'
106+
CIBW_BEFORE_BUILD: >
107+
rustup default nightly &&
108+
rustup show
109+
- uses: actions/upload-artifact@v4
110+
with:
111+
name: artifact-${{ matrix.os }}
112+
path: ./wheelhouse/*.whl
113+
114+
build_sdist:
115+
name: Build source distribution
116+
# Can't use more than 12 jobs in parallel
117+
needs: [build_macos_wheels]
118+
runs-on: ubuntu-latest
119+
steps:
120+
- uses: actions/checkout@v4
121+
122+
- name: Build River
123+
uses: ./.github/actions/install-env
124+
with:
125+
python-version: "3.13"
126+
127+
- name: Build dist
128+
run: poetry build
129+
130+
- uses: actions/upload-artifact@v4
131+
with:
132+
name: artifact-sdist
133+
path: dist/*.tar.gz
134+
135+
merge_artifacts:
136+
runs-on: ubuntu-latest
137+
needs: [build_linux_wheels, build_macos_wheels, build_windows_wheels, build_sdist]
138+
steps:
139+
- name: Merge Artifacts
140+
uses: actions/upload-artifact/merge@v4
141+
with:
142+
name: artifact
143+
pattern: artifact-*
144+
145+
upload_pypi:
146+
needs: merge_artifacts
147+
runs-on: ubuntu-latest
148+
steps:
149+
- uses: actions/[email protected]
150+
with:
151+
name: artifact
152+
path: dist
153+
154+
- uses: pypa/[email protected]
155+
with:
156+
user: __token__
157+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
uses: codecov/[email protected]
3131
with:
3232
token: ${{ secrets.CODECOV_TOKEN }}
33-
slug: IsolationKernel/IsoML
33+
slug: IsolationKernel/pyikt

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,12 @@ cython_debug/
181181

182182
# VsCode
183183
.vscode/
184+
185+
# test
186+
env.ps1
187+
env.sh
188+
origin_data/
189+
myx_test/
190+
# pixi environments
191+
.pixi
192+
*.egg-info

IsoML/__init__.py

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

0 commit comments

Comments
 (0)