Skip to content

Commit 785964b

Browse files
fix: update cargo.toml align versioning for github workflow
1 parent ab268c4 commit 785964b

File tree

5 files changed

+58
-27
lines changed

5 files changed

+58
-27
lines changed

.github/workflows/release-python.yml

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,34 @@ jobs:
2222
with:
2323
python-version: 3.9
2424

25-
- name: Create source distribution
26-
uses: PyO3/maturin-action@v1
27-
with:
28-
command: sdist
29-
args: >
30-
--manifest-path Cargo.toml
31-
--out dist
25+
# - name: Create source distribution
26+
# uses: PyO3/maturin-action@v1
27+
# with:
28+
# command: sdist
29+
# args: >
30+
# --manifest-path Cargo.toml
31+
# --out dist
32+
33+
- name: Build with maturin
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install maturin==1.1.0
37+
rm -rf target/ dist/ build/
38+
maturin sdist --manifest-path Cargo.toml --out dist
39+
3240
41+
- name: Inspect Source Distribution
42+
run: |
43+
for file in dist/*.tar.gz; do
44+
echo "Inspecting $file"
45+
tar --wildcards -tzf "$file" | grep PKG-INFO || echo "PKG-INFO not found"
46+
tar --wildcards -xOf "$file" */PKG-INFO || echo "Unable to read PKG-INFO"
47+
done
48+
3349
- name: Test sdist
3450
run: |
3551
python -m pip install --upgrade pip
36-
pip install twine
52+
pip install --upgrade --force-reinstall twine
3753
twine check dist/*.tar.gz
3854
pip install --force-reinstall --verbose dist/*.tar.gz
3955
python -c 'from polodb import PoloDB'
@@ -71,14 +87,23 @@ jobs:
7187
with:
7288
python-version: ${{ matrix.python-version }}
7389

90+
# - name: Create source distribution
91+
# uses: PyO3/maturin-action@v1
92+
# with:
93+
# command: build
94+
# args: >
95+
# --manifest-path Cargo.toml
96+
# --profile dist-release
97+
# --out target/wheels
98+
7499
- name: Create source distribution
75-
uses: PyO3/maturin-action@v1
76-
with:
77-
command: build
78-
args: >
79-
--manifest-path Cargo.toml
80-
--profile dist-release
81-
--out target/wheels
100+
run: |
101+
python -m pip install --upgrade pip
102+
pip install maturin==1.1.0
103+
rm -rf target/ dist/ build/
104+
maturin build --manifest-path Cargo.toml --profile dist-release --out target/wheels
105+
106+
82107
83108
- name: Extract Version from pyproject.toml
84109
id: get_version

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
[package]
2-
name = "py-binding-polodb"
3-
version = "0.1.2"
2+
name = "polodb_python" # Must match the Python package name
3+
version = "0.1.16"
44
edition = "2021"
5+
description = "Python bindings for PoloDB"
6+
license = "Apache License"
7+
license-file = "LICENSE.txt"
8+
repository = "https://github.com/PoloDB/polodb-python"
9+
homepage = "https://github.com/PoloDB/polodb-python"
10+
documentation = "https://github.com/PoloDB/polodb-python/blob/main/README.md"
511

612
[lib]
713
# The name of the native library. This is the name which will be used in Python to import the

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "polodb-python"
3-
version = "0.1.15"
3+
version = "0.1.16"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.9"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)