Skip to content

Commit dbb937b

Browse files
author
Daniele Briggi
committed
fix(workflow): fix pip platform name
1 parent ef4e65d commit dbb937b

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ jobs:
2222
platform: linux
2323
python-version: "3.10"
2424
arch: x86_64
25-
plat_name: linux_x86_64
25+
plat_name: manylinux2014_x86_64
2626
- os: ubuntu-latest
2727
platform: linux
2828
python-version: "3.10"
2929
arch: arm64
30-
plat_name: linux_aarch64
31-
- os: windows-latest
30+
plat_name: manylinux2014_aarch64
31+
- os: ubuntu-latest
3232
platform: windows
3333
python-version: "3.10"
3434
arch: x86_64
3535
plat_name: win_amd64
36-
- os: macos-latest
36+
- os: ubuntu-latest
3737
platform: macos
3838
python-version: "3.10"
3939
arch: x86_64
4040
plat_name: macosx_10_9_x86_64
41-
- os: macos-latest
41+
- os: ubuntu-latest
4242
platform: macos
4343
python-version: "3.10"
4444
arch: arm64
@@ -89,5 +89,8 @@ jobs:
8989
uses: pypa/gh-action-pypi-publish@release/v1
9090
with:
9191
packages-dir: python-package/dist
92-
repository-url: https://test.pypi.org/legacy/
9392
verbose: true
93+
# Avoid workflow to fail if the version has already been published
94+
skip-existing: true
95+
# Upload to Test Pypi for testing
96+
# repository-url: https://test.pypi.org/legacy/

python-package/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ This package provides the sqlite-ai extension prebuilt binaries for multiple pla
1414

1515
## Usage
1616

17+
> **Note:** Some SQLite installations on certain operating systems may have extension loading disabled by default.
18+
If you encounter issues loading the extension, refer to the [sqlite-extensions-guide](https://github.com/sqliteai/sqlite-extensions-guide/) for platform-specific instructions on enabling and using SQLite extensions.
19+
1720
```python
1821
import importlib.resources
1922
import sqlite3
@@ -32,4 +35,5 @@ conn.enable_load_extension(False)
3235

3336

3437
# Now you can use sqlite-ai features in your SQL queries
35-
```
38+
print(conn.execute("SELECT ai_version();").fetchone())
39+
```

python-package/download_artifacts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
# Map Python plat_name to artifact names
1616
ARTIFACTS = {
17-
"linux_x86_64": ["ai-linux-cpu-x86_64", "ai-linux-gpu-x86_64"],
18-
"linux_aarch64": [
17+
"manylinux2014_x86_64": ["ai-linux-cpu-x86_64", "ai-linux-gpu-x86_64"],
18+
"manylinux2014_aarch64": [
1919
"ai-linux-cpu-arm64",
2020
"ai-linux-gpu-arm64",
2121
],
@@ -25,8 +25,8 @@
2525
}
2626

2727
BINARY_NAME = {
28-
"linux_x86_64": "ai.so",
29-
"linux_aarch64": "ai.so",
28+
"manylinux2014_x86_64": "ai.so",
29+
"manylinux2014_aarch64": "ai.so",
3030
"win_amd64": "ai.dll",
3131
"macosx_10_9_x86_64": "ai.dylib",
3232
"macosx_11_0_arm64": "ai.dylib",

python-package/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "sqlite-ai"
77
dynamic = ["version"]
8-
description = "Python bindings and prebuilt binaries for SQLite AI extension."
8+
description = "Python prebuilt binaries for SQLite AI extension for all supported platforms and architectures."
99
authors = [
1010
{ name = "SQLite AI Team" }
1111
]

python-package/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
# Map plat_name to classifier
3939
classifier_map = {
40-
"linux_x86_64": "Operating System :: POSIX :: Linux",
41-
"linux_aarch64": "Operating System :: POSIX :: Linux",
40+
"manylinux2014_x86_64": "Operating System :: POSIX :: Linux",
41+
"manylinux2014_aarch64": "Operating System :: POSIX :: Linux",
4242
"win_amd64": "Operating System :: Microsoft :: Windows",
4343
"macosx_10_9_x86_64": "Operating System :: MacOS",
4444
"macosx_11_0_arm64": "Operating System :: MacOS",

0 commit comments

Comments
 (0)