vctrs 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.
@@ -0,0 +1,5 @@
1
+ [target.'cfg(target_arch = "aarch64")']
2
+ rustflags = ["-C", "target-cpu=native"]
3
+
4
+ [target.'cfg(target_arch = "x86_64")']
5
+ rustflags = ["-C", "target-cpu=native"]
@@ -0,0 +1,15 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: dtolnay/rust-toolchain@stable
15
+ - run: cargo test --lib
@@ -0,0 +1,116 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ # Build wheels for Linux
12
+ linux:
13
+ runs-on: ${{ matrix.platform.runner }}
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ platform:
18
+ - runner: ubuntu-latest
19
+ target: x86_64
20
+ - runner: ubuntu-24.04-arm
21
+ target: aarch64
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.12"
27
+ - name: Build wheels
28
+ uses: PyO3/maturin-action@v1
29
+ with:
30
+ target: ${{ matrix.platform.target }}
31
+ args: --release --out dist
32
+ manylinux: auto
33
+ - uses: actions/upload-artifact@v4
34
+ with:
35
+ name: wheels-linux-${{ matrix.platform.target }}
36
+ path: dist
37
+
38
+ # Build wheels for macOS
39
+ macos:
40
+ runs-on: ${{ matrix.platform.runner }}
41
+ strategy:
42
+ fail-fast: false
43
+ matrix:
44
+ platform:
45
+ - runner: macos-latest
46
+ target: x86_64
47
+ - runner: macos-latest
48
+ target: aarch64
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+ - uses: actions/setup-python@v5
52
+ with:
53
+ python-version: "3.12"
54
+ - name: Build wheels
55
+ uses: PyO3/maturin-action@v1
56
+ with:
57
+ target: ${{ matrix.platform.target }}
58
+ args: --release --out dist
59
+ - uses: actions/upload-artifact@v4
60
+ with:
61
+ name: wheels-macos-${{ matrix.platform.target }}
62
+ path: dist
63
+
64
+ # Build wheels for Windows
65
+ windows:
66
+ runs-on: windows-latest
67
+ steps:
68
+ - uses: actions/checkout@v4
69
+ - uses: actions/setup-python@v5
70
+ with:
71
+ python-version: "3.12"
72
+ - name: Build wheels
73
+ uses: PyO3/maturin-action@v1
74
+ with:
75
+ args: --release --out dist
76
+ - uses: actions/upload-artifact@v4
77
+ with:
78
+ name: wheels-windows-x64
79
+ path: dist
80
+
81
+ # Build source distribution
82
+ sdist:
83
+ runs-on: ubuntu-latest
84
+ steps:
85
+ - uses: actions/checkout@v4
86
+ - name: Build sdist
87
+ uses: PyO3/maturin-action@v1
88
+ with:
89
+ command: sdist
90
+ args: --out dist
91
+ - uses: actions/upload-artifact@v4
92
+ with:
93
+ name: wheels-sdist
94
+ path: dist
95
+
96
+ # Publish to PyPI
97
+ publish:
98
+ name: Publish to PyPI
99
+ runs-on: ubuntu-latest
100
+ needs: [linux, macos, windows, sdist]
101
+ environment:
102
+ name: pypi
103
+ url: https://pypi.org/p/vctrs
104
+ permissions:
105
+ id-token: write
106
+ steps:
107
+ - uses: actions/download-artifact@v4
108
+ with:
109
+ pattern: wheels-*
110
+ merge-multiple: true
111
+ path: dist
112
+ - name: Publish to PyPI
113
+ uses: PyO3/maturin-action@v1
114
+ with:
115
+ command: upload
116
+ args: --non-interactive --skip-existing dist/*
vctrs-0.1.0/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ target/
2
+ __pycache__/
3
+ *.pyc
4
+ *.so
5
+ *.dylib
6
+ *.egg-info/
7
+ dist/
8
+ .venv/