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.
- attos-0.1.1/.cargo/config.toml +2 -0
- attos-0.1.1/.github/workflows/ci.yml +27 -0
- attos-0.1.1/.github/workflows/release.yml +60 -0
- attos-0.1.1/.gitignore +5 -0
- attos-0.1.1/Cargo.lock +1621 -0
- attos-0.1.1/Cargo.toml +18 -0
- attos-0.1.1/LICENSE +202 -0
- attos-0.1.1/PKG-INFO +68 -0
- attos-0.1.1/README.md +52 -0
- attos-0.1.1/pyproject.toml +27 -0
- attos-0.1.1/python/attos/__init__.py +24 -0
- attos-0.1.1/python/attos/py.typed +0 -0
- attos-0.1.1/src/lib.rs +355 -0
- attos-0.1.1/tests/fixtures/golden_v2_1.attos +0 -0
- attos-0.1.1/tests/fixtures/golden_v2_1.tsv +1 -0
- attos-0.1.1/tests/fixtures/golden_v2_1000.attos +0 -0
- attos-0.1.1/tests/fixtures/golden_v2_1000.tsv +1000 -0
- attos-0.1.1/tests/fixtures/golden_v2_lean4_lz4b16_1000.attos +0 -0
- attos-0.1.1/tests/fixtures/multidim.csv.attos +0 -0
- attos-0.1.1/tests/fixtures/multidim.csv.kv +400 -0
- attos-0.1.1/tests/fixtures/small_1k.csv.attos +0 -0
- attos-0.1.1/tests/fixtures/small_1k.csv.kv +1000 -0
- attos-0.1.1/tests/test_map.py +89 -0
- attos-0.1.1/tests/test_sync.py +130 -0
|
@@ -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
|