Skip to content

Commit d29c2b5

Browse files
committed
build with manylinux2010
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
1 parent 4c05e95 commit d29c2b5

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
with:
9898
rust-toolchain: nightly-2021-08-21
9999
target: ${{ matrix.target }}
100-
manylinux: "2014"
100+
manylinux: "2010"
101101
args: --release --out dist --no-sdist
102102
- name: Install built wheel
103103
if: matrix.target == 'x86_64'

Cargo.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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Andy Lok <andylokandy@hotmail.com>"]
33
edition = "2018"
44
name = "tikv-client"
5-
version = "0.0.1"
5+
version = "0.0.2"
66

77
[dependencies]
88
futures = "0.3"

examples/run.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
from tikv_client import TransactionClient
1+
from tikv_client import RawClient
22

3-
client = TransactionClient.connect("127.0.0.1:2379")
3+
client = RawClient.connect("127.0.0.1:2379")
44

5-
txn = client.begin(pessimistic=True)
6-
txn.put(b"k1", b"v1")
7-
txn.put(b"k2", b"v2")
8-
txn.put(b"k3", b"v3")
9-
txn.put(b"k4", b"v4")
10-
txn.put(b"k5", b"v5")
11-
txn.commit()
5+
client.put(b"k1", b"v1")
6+
client.put(b"k2", b"v2")
7+
client.put(b"k3", b"v3")
8+
client.put(b"k4", b"v4")
9+
client.put(b"k5", b"v5")
1210

13-
snapshot = client.snapshot(client.current_timestamp(), pessimistic=True)
14-
print(snapshot.get(b"k3"))
15-
print(snapshot.batch_get([b"k1", b"k4"]))
11+
print(client.get(b"k3"))
12+
print(client.batch_get([b"k1", b"k4"]))
1613

17-
for k, v in snapshot.scan(b"k1", end=None, limit=10, include_start=False):
14+
for k, v in client.scan(b"k1", end=None, limit=10, include_start=False):
1815
print(k, v)

0 commit comments

Comments
 (0)