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.
- vctrs-0.1.0/.cargo/config.toml +5 -0
- vctrs-0.1.0/.github/workflows/ci.yml +15 -0
- vctrs-0.1.0/.github/workflows/release.yml +116 -0
- vctrs-0.1.0/.gitignore +8 -0
- vctrs-0.1.0/Cargo.lock +868 -0
- vctrs-0.1.0/Cargo.toml +28 -0
- vctrs-0.1.0/LICENSE +21 -0
- vctrs-0.1.0/PKG-INFO +6 -0
- vctrs-0.1.0/README.md +97 -0
- vctrs-0.1.0/benchmarks/bench.py +100 -0
- vctrs-0.1.0/pyproject.toml +14 -0
- vctrs-0.1.0/python/vctrs/__init__.py +4 -0
- vctrs-0.1.0/src/db.rs +445 -0
- vctrs-0.1.0/src/distance.rs +135 -0
- vctrs-0.1.0/src/hnsw.rs +764 -0
- vctrs-0.1.0/src/lib.rs +245 -0
- vctrs-0.1.0/src/storage.rs +256 -0
- vctrs-0.1.0/tests/test_basic.py +168 -0
|
@@ -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/*
|