context-server 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,8 @@
1
+ # Optional: only needed on hosts where `-lstdc++` fails because
2
+ # libstdc++.so is missing (Fedora often ships only libstdc++.so.6).
3
+ #
4
+ # mkdir -p .linker && ln -sfn /usr/lib64/libstdc++.so.6 .linker/libstdc++.so
5
+ # cp .cargo/config.toml.example .cargo/config.toml
6
+ #
7
+ # [build]
8
+ # rustflags = ["-L", "native=.linker"]
@@ -0,0 +1,62 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ build:
14
+ name: Build wheels (${{ matrix.target }})
15
+ runs-on: ${{ matrix.os }}
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ include:
20
+ - os: ubuntu-latest
21
+ target: x86_64-unknown-linux-gnu
22
+ manylinux: "2_28"
23
+ - os: ubuntu-latest
24
+ target: aarch64-unknown-linux-gnu
25
+ manylinux: "2_28"
26
+ - os: macos-latest
27
+ target: aarch64-apple-darwin
28
+ - os: macos-13
29
+ target: x86_64-apple-darwin
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+
33
+ - uses: PyO3/maturin-action@v1
34
+ with:
35
+ target: ${{ matrix.target }}
36
+ manylinux: ${{ matrix.manylinux || 'auto' }}
37
+ args: --release --locked --out dist
38
+
39
+ - uses: actions/upload-artifact@v4
40
+ with:
41
+ name: wheels-${{ matrix.target }}
42
+ path: dist
43
+
44
+ publish:
45
+ name: Publish to PyPI
46
+ needs: build
47
+ runs-on: ubuntu-latest
48
+ if: startsWith(github.ref, 'refs/tags/')
49
+ environment:
50
+ name: release
51
+ permissions:
52
+ id-token: write
53
+ steps:
54
+ - uses: astral-sh/setup-uv@v6
55
+
56
+ - uses: actions/download-artifact@v4
57
+ with:
58
+ pattern: wheels-*
59
+ path: wheels
60
+ merge-multiple: true
61
+
62
+ - run: uv publish -v wheels/*
@@ -0,0 +1,10 @@
1
+ /target/
2
+ .linker/
3
+ .cargo/config.toml
4
+ context-server
5
+ *.db
6
+ *.onnx
7
+ models/
8
+ third_party/
9
+ .fastembed_cache/
10
+ **/.DS_Store