Skip to content

Commit d819769

Browse files
committed
Initial
0 parents  commit d819769

File tree

9 files changed

+614
-0
lines changed

9 files changed

+614
-0
lines changed

.github/workflows/CI.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# This file is autogenerated by maturin v0.14.15
2+
# To update, run
3+
#
4+
# maturin new test
5+
#
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
tags:
12+
- '*'
13+
pull_request:
14+
workflow_dispatch:
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
linux:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: '3.10'
30+
- name: Build wheels
31+
uses: PyO3/maturin-action@v1
32+
with:
33+
target: ${{ matrix.target }}
34+
args: --release --out dist --find-interpreter
35+
sccache: 'true'
36+
manylinux: auto
37+
- name: Upload wheels
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: wheels
41+
path: dist
42+
43+
windows:
44+
runs-on: windows-latest
45+
strategy:
46+
matrix:
47+
target: [x64, x86]
48+
steps:
49+
- uses: actions/checkout@v3
50+
- uses: actions/setup-python@v4
51+
with:
52+
python-version: '3.10'
53+
architecture: ${{ matrix.target }}
54+
- name: Build wheels
55+
uses: PyO3/maturin-action@v1
56+
with:
57+
target: ${{ matrix.target }}
58+
args: --release --out dist --find-interpreter
59+
sccache: 'true'
60+
- name: Upload wheels
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: wheels
64+
path: dist
65+
66+
macos:
67+
runs-on: macos-latest
68+
strategy:
69+
matrix:
70+
target: [x86_64, aarch64]
71+
steps:
72+
- uses: actions/checkout@v3
73+
- uses: actions/setup-python@v4
74+
with:
75+
python-version: '3.10'
76+
- name: Build wheels
77+
uses: PyO3/maturin-action@v1
78+
with:
79+
target: ${{ matrix.target }}
80+
args: --release --out dist --find-interpreter
81+
sccache: 'true'
82+
- name: Upload wheels
83+
uses: actions/upload-artifact@v3
84+
with:
85+
name: wheels
86+
path: dist
87+
88+
sdist:
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v3
92+
- name: Build sdist
93+
uses: PyO3/maturin-action@v1
94+
with:
95+
command: sdist
96+
args: --out dist
97+
- name: Upload sdist
98+
uses: actions/upload-artifact@v3
99+
with:
100+
name: wheels
101+
path: dist
102+
103+
release:
104+
name: Release
105+
runs-on: ubuntu-latest
106+
if: "startsWith(github.ref, 'refs/tags/')"
107+
needs: [linux, windows, macos, sdist]
108+
steps:
109+
- uses: actions/download-artifact@v3
110+
with:
111+
name: wheels
112+
- name: Publish to PyPI
113+
uses: PyO3/maturin-action@v1
114+
env:
115+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
116+
with:
117+
command: upload
118+
args: --skip-existing *

.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/target
2+
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
.pytest_cache/
6+
*.py[cod]
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
.venv/
14+
env/
15+
bin/
16+
build/
17+
develop-eggs/
18+
dist/
19+
eggs/
20+
lib/
21+
lib64/
22+
parts/
23+
sdist/
24+
var/
25+
include/
26+
man/
27+
venv/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
pip-selfcheck.json
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.cache
42+
nosetests.xml
43+
coverage.xml
44+
45+
# Translations
46+
*.mo
47+
48+
# Mr Developer
49+
.mr.developer.cfg
50+
.project
51+
.pydevproject
52+
53+
# Rope
54+
.ropeproject
55+
56+
# Django stuff:
57+
*.log
58+
*.pot
59+
60+
.DS_Store
61+
62+
# Sphinx documentation
63+
docs/_build/
64+
65+
# PyCharm
66+
.idea/
67+
68+
# VSCode
69+
.vscode/
70+
71+
# Pyenv
72+
.python-version

0 commit comments

Comments
 (0)