etcd-client-py 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.
- etcd_client_py-0.1.0/.github/workflows/ci.yml +142 -0
- etcd_client_py-0.1.0/.gitignore +7 -0
- etcd_client_py-0.1.0/Cargo.lock +1340 -0
- etcd_client_py-0.1.0/Cargo.toml +15 -0
- etcd_client_py-0.1.0/LICENSE +7 -0
- etcd_client_py-0.1.0/PKG-INFO +32 -0
- etcd_client_py-0.1.0/README.md +26 -0
- etcd_client_py-0.1.0/pyproject.toml +3 -0
- etcd_client_py-0.1.0/src/lib.rs +334 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
name: default
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
merge_group:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release-linux-x86_64:
|
|
10
|
+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
target: ["x86_64"]
|
|
16
|
+
manylinux: ["manylinux2014"]
|
|
17
|
+
python-version: ["3.10", "3.11"]
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout the source tree
|
|
20
|
+
uses: actions/checkout@v3
|
|
21
|
+
- name: Build the wheel and source distribution
|
|
22
|
+
uses: PyO3/maturin-action@v1
|
|
23
|
+
env:
|
|
24
|
+
PROTOC: /home/runner/.local/bin/protoc
|
|
25
|
+
with:
|
|
26
|
+
command: build
|
|
27
|
+
args: --release -o dist -i python${{ matrix.python-version }}
|
|
28
|
+
before-script-linux: |
|
|
29
|
+
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
|
|
30
|
+
curl -LO $PB_REL/download/v23.2/protoc-23.2-linux-x86_64.zip
|
|
31
|
+
unzip protoc-23.2-linux-x86_64.zip -d $HOME/.local
|
|
32
|
+
export PATH="$PATH:$HOME/.local/bin"
|
|
33
|
+
manylinux: ${{ matrix.manylinux }}
|
|
34
|
+
target: ${{ matrix.target }}
|
|
35
|
+
- name: Upload artifacts
|
|
36
|
+
uses: actions/upload-artifact@v3
|
|
37
|
+
with:
|
|
38
|
+
name: wheels
|
|
39
|
+
path: dist
|
|
40
|
+
|
|
41
|
+
release-linux-aarch64:
|
|
42
|
+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
strategy:
|
|
45
|
+
fail-fast: false
|
|
46
|
+
matrix:
|
|
47
|
+
target: ["aarch64"]
|
|
48
|
+
manylinux: ["manylinux2014"]
|
|
49
|
+
python-version: ["3.10", "3.11"]
|
|
50
|
+
steps:
|
|
51
|
+
- name: Setup QEMU
|
|
52
|
+
uses: docker/setup-qemu-action@v1
|
|
53
|
+
- name: Checkout the source tree
|
|
54
|
+
uses: actions/checkout@v3
|
|
55
|
+
- name: Build the wheel and source distribution
|
|
56
|
+
uses: PyO3/maturin-action@v1
|
|
57
|
+
env:
|
|
58
|
+
PROTOC: /home/runner/.local/bin/protoc
|
|
59
|
+
with:
|
|
60
|
+
command: build
|
|
61
|
+
args: --release -o dist -i python${{ matrix.python-version }}
|
|
62
|
+
before-script-linux: |
|
|
63
|
+
sudo apt-get install -y unzip
|
|
64
|
+
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
|
|
65
|
+
curl -LO $PB_REL/download/v23.2/protoc-23.2-linux-aarch_64.zip
|
|
66
|
+
unzip protoc-23.2-linux-aarch_64.zip -d $HOME/.local
|
|
67
|
+
export PATH="$PATH:$HOME/.local/bin"
|
|
68
|
+
manylinux: ${{ matrix.manylinux }}
|
|
69
|
+
target: ${{ matrix.target }}
|
|
70
|
+
- name: Upload artifacts
|
|
71
|
+
uses: actions/upload-artifact@v3
|
|
72
|
+
with:
|
|
73
|
+
name: wheels
|
|
74
|
+
path: dist
|
|
75
|
+
|
|
76
|
+
release-macos:
|
|
77
|
+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
|
78
|
+
runs-on: macos-latest
|
|
79
|
+
strategy:
|
|
80
|
+
fail-fast: false
|
|
81
|
+
matrix:
|
|
82
|
+
python-version: ["3.10", "3.11"]
|
|
83
|
+
steps:
|
|
84
|
+
- name: Checkout the source tree
|
|
85
|
+
uses: actions/checkout@v3
|
|
86
|
+
- name: Install prerequisites
|
|
87
|
+
run: |
|
|
88
|
+
brew install protobuf
|
|
89
|
+
- name: Build the wheel and source distribution
|
|
90
|
+
uses: PyO3/maturin-action@v1
|
|
91
|
+
with:
|
|
92
|
+
command: build
|
|
93
|
+
args: --release -o dist --universal2 -i python${{ matrix.python-version }}
|
|
94
|
+
- name: Upload artifacts
|
|
95
|
+
uses: actions/upload-artifact@v3
|
|
96
|
+
with:
|
|
97
|
+
name: wheels
|
|
98
|
+
path: dist
|
|
99
|
+
|
|
100
|
+
release-source:
|
|
101
|
+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
|
102
|
+
runs-on: ubuntu-latest
|
|
103
|
+
steps:
|
|
104
|
+
- name: Checkout the source tree
|
|
105
|
+
uses: actions/checkout@v3
|
|
106
|
+
- name: Set up Python as Runtime
|
|
107
|
+
uses: actions/setup-python@v4
|
|
108
|
+
with:
|
|
109
|
+
python-version: "3.11"
|
|
110
|
+
- name: Build the source distribution
|
|
111
|
+
run: |
|
|
112
|
+
pip install -U pip setuptools
|
|
113
|
+
pip install -U build
|
|
114
|
+
python -m build --sdist
|
|
115
|
+
- name: Upload artifacts
|
|
116
|
+
uses: actions/upload-artifact@v3
|
|
117
|
+
with:
|
|
118
|
+
name: wheels
|
|
119
|
+
path: dist
|
|
120
|
+
|
|
121
|
+
publish-to-pypi:
|
|
122
|
+
needs: [release-linux-x86_64, release-linux-aarch64, release-macos, release-source]
|
|
123
|
+
environment: deploy-to-pypi
|
|
124
|
+
permissions:
|
|
125
|
+
id-token: write
|
|
126
|
+
runs-on: ubuntu-latest
|
|
127
|
+
steps:
|
|
128
|
+
- name: Download artifacts
|
|
129
|
+
uses: actions/download-artifact@v3
|
|
130
|
+
with:
|
|
131
|
+
name: wheels
|
|
132
|
+
path: dist
|
|
133
|
+
- name: Set up Python as Runtime
|
|
134
|
+
uses: actions/setup-python@v4
|
|
135
|
+
with:
|
|
136
|
+
python-version: "3.11"
|
|
137
|
+
- name: Install the publish toolchain
|
|
138
|
+
run: |
|
|
139
|
+
pip install -U pip setuptools
|
|
140
|
+
pip install -U twine
|
|
141
|
+
- name: Publish to PyPI
|
|
142
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|