gdock 0.1.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.
- gdock-0.1.0/.github/workflows/ci.yml +34 -0
- gdock-0.1.0/.github/workflows/publish.yml +71 -0
- gdock-0.1.0/.gitignore +7 -0
- gdock-0.1.0/Cargo.lock +812 -0
- gdock-0.1.0/Cargo.toml +28 -0
- gdock-0.1.0/PKG-INFO +94 -0
- gdock-0.1.0/README.md +70 -0
- gdock-0.1.0/pyproject.toml +37 -0
- gdock-0.1.0/python/gdock/__init__.py +6 -0
- gdock-0.1.0/src/lib.rs +225 -0
- gdock-0.1.0/tests/test_bindings.py +37 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
|
+
pull_request:
|
|
6
|
+
jobs:
|
|
7
|
+
lint:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
- run: cargo fmt --all -- --check
|
|
12
|
+
- run: cargo clippy --no-default-features -- -D warnings
|
|
13
|
+
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: astral-sh/setup-uv@v6
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ matrix.python-version }}
|
|
24
|
+
- name: Create virtual environment
|
|
25
|
+
run: |
|
|
26
|
+
uv venv --python ${{ matrix.python-version }} .venv
|
|
27
|
+
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
|
|
28
|
+
- name: Install dependencies
|
|
29
|
+
run: |
|
|
30
|
+
uv pip install maturin pytest
|
|
31
|
+
- name: Build and test
|
|
32
|
+
run: |
|
|
33
|
+
maturin develop --uv
|
|
34
|
+
pytest tests/
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: publish to pypi
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
linux:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- name: Build wheels
|
|
16
|
+
uses: PyO3/maturin-action@v1
|
|
17
|
+
with:
|
|
18
|
+
target: x86_64
|
|
19
|
+
args: --release --out dist --find-interpreter
|
|
20
|
+
manylinux: 2014
|
|
21
|
+
- uses: actions/upload-artifact@v4
|
|
22
|
+
with:
|
|
23
|
+
name: wheels-linux
|
|
24
|
+
path: dist
|
|
25
|
+
|
|
26
|
+
macos:
|
|
27
|
+
runs-on: macos-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
- name: Build wheels
|
|
31
|
+
uses: PyO3/maturin-action@v1
|
|
32
|
+
with:
|
|
33
|
+
args: --release --out dist --find-interpreter
|
|
34
|
+
- uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: wheels-macos
|
|
37
|
+
path: dist
|
|
38
|
+
|
|
39
|
+
sdist:
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
steps:
|
|
42
|
+
- uses: actions/checkout@v4
|
|
43
|
+
- name: Build sdist
|
|
44
|
+
uses: PyO3/maturin-action@v1
|
|
45
|
+
with:
|
|
46
|
+
command: sdist
|
|
47
|
+
args: --out dist
|
|
48
|
+
- uses: actions/upload-artifact@v4
|
|
49
|
+
with:
|
|
50
|
+
name: wheels-sdist
|
|
51
|
+
path: dist
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
name: publish to pypi
|
|
55
|
+
needs: [linux, macos, sdist]
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
environment:
|
|
58
|
+
name: pypi
|
|
59
|
+
url: https://pypi.org/p/gdock
|
|
60
|
+
permissions:
|
|
61
|
+
id-token: write
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/download-artifact@v4
|
|
64
|
+
with:
|
|
65
|
+
pattern: wheels-*
|
|
66
|
+
path: dist
|
|
67
|
+
merge-multiple: true
|
|
68
|
+
- name: Publish package distributions to PyPI
|
|
69
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
70
|
+
with:
|
|
71
|
+
packages-dir: dist
|