attos 0.1.1__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.
@@ -0,0 +1,2 @@
1
+ [net]
2
+ git-fetch-with-cli = true
@@ -0,0 +1,27 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ env:
8
+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"
9
+
10
+ jobs:
11
+ test:
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ os: [ubuntu-24.04, macos-latest]
16
+ python: ["3.9", "3.12"]
17
+ runs-on: ${{ matrix.os }}
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python }}
23
+ - uses: dtolnay/rust-toolchain@stable
24
+ - uses: Swatinem/rust-cache@v2
25
+ - run: python -m venv .venv && .venv/bin/pip install maturin pytest
26
+ - run: .venv/bin/maturin develop --release
27
+ - run: .venv/bin/python -m pytest -q
@@ -0,0 +1,60 @@
1
+ name: release
2
+ # Builds abi3 wheels and an sdist for a tag and attaches them to the workflow run.
3
+ # Tag pushes also publish to PyPI through a trusted publisher (no token).
4
+ on:
5
+ push:
6
+ tags: ["v*"]
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ CARGO_NET_GIT_FETCH_WITH_CLI: "true"
11
+
12
+ jobs:
13
+ wheels:
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ include:
18
+ - { os: ubuntu-24.04, target: x86_64 }
19
+ - { os: ubuntu-24.04-arm, target: aarch64 }
20
+ - { os: macos-15-intel, target: x86_64 }
21
+ - { os: macos-latest, target: aarch64 }
22
+ runs-on: ${{ matrix.os }}
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - uses: PyO3/maturin-action@v1
26
+ with:
27
+ target: ${{ matrix.target }}
28
+ args: --release --out dist
29
+ manylinux: auto
30
+ - uses: actions/upload-artifact@v4
31
+ with:
32
+ name: wheels-${{ matrix.os }}-${{ matrix.target }}
33
+ path: dist
34
+
35
+ sdist:
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v4
39
+ - uses: PyO3/maturin-action@v1
40
+ with:
41
+ command: sdist
42
+ args: --out dist
43
+ - uses: actions/upload-artifact@v4
44
+ with:
45
+ name: sdist
46
+ path: dist
47
+
48
+ publish:
49
+ if: startsWith(github.ref, 'refs/tags/v')
50
+ needs: [wheels, sdist]
51
+ runs-on: ubuntu-latest
52
+ environment: pypi
53
+ permissions:
54
+ id-token: write
55
+ steps:
56
+ - uses: actions/download-artifact@v4
57
+ with:
58
+ path: dist
59
+ merge-multiple: true
60
+ - uses: pypa/gh-action-pypi-publish@release/v1
attos-0.1.1/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ target/
2
+ __pycache__/
3
+ *.so
4
+ .venv/
5
+ .attos/