Skip to content

Commit 9804409

Browse files
GlugovGrGlibGlib Glugovskiy
andauthored
feat: update didkit lib to 0.6 and add support for python3.12
* feat: update didkit core lib version to 0.6 Updated package version, published name and releace CI scripts * fix: correct errors and maturin params for the build * docs: update readme --------- Co-authored-by: Glib Glugovskiy <glib.glugovskiy@hts-experts.com>
1 parent 51aa6f3 commit 9804409

7 files changed

Lines changed: 2240 additions & 1374 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ on:
99
jobs:
1010
CI:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
1215
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v5
1519
with:
16-
python-version: "3.10"
20+
python-version: ${{ matrix.python-version }}
1721
- name: Build Wheel
18-
uses: messense/maturin-action@v1
22+
uses: PyO3/maturin-action@v1
1923
with:
2024
manylinux: off
2125
args: --find-interpreter
22-
- uses: abatilo/actions-poetry@v2.3.0
26+
- name: Install poetry
27+
uses: abatilo/actions-poetry@v4
28+
- uses: dtolnay/rust-toolchain@stable
29+
with: { toolchain: stable }
2330
- name: Run Tests
2431
run: |
25-
poetry install
32+
poetry install --no-root
2633
poetry run maturin develop
2734
poetry run pytest

.github/workflows/release.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- v*
7-
pull_request:
87
branches:
98
- 'main'
109

@@ -14,18 +13,24 @@ jobs:
1413
runs-on: macos-latest
1514
strategy:
1615
matrix:
16+
python-version: ["3.10", "3.11", "3.12"]
1717
target: [x64, aarch64]
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
2024
- name: Build wheels
21-
uses: messense/maturin-action@v1
25+
uses: PyO3/maturin-action@v1
2226
with:
27+
command: build
2328
target: ${{ matrix.target }}
2429
args: --release -o dist --find-interpreter
2530
- name: Upload wheels
26-
uses: actions/upload-artifact@v2
31+
uses: actions/upload-artifact@v4
2732
with:
28-
name: wheels
33+
name: macos-wheels-${{ matrix.python-version }}-${{matrix.target}}
2934
path: dist
3035

3136
windows:
@@ -36,14 +41,15 @@ jobs:
3641
steps:
3742
- uses: actions/checkout@v2
3843
- name: Build wheels
39-
uses: messense/maturin-action@v1
44+
uses: PyO3/maturin-action@v1
4045
with:
46+
command: build
4147
target: ${{ matrix.target }}
4248
args: --release -o dist --find-interpreter
4349
- name: Upload wheels
44-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v4
4551
with:
46-
name: wheels
52+
name: windows-wheels-${{ matrix.python-version }}-${{matrix.target}}
4753
path: dist
4854

4955
linux:
@@ -54,15 +60,15 @@ jobs:
5460
steps:
5561
- uses: actions/checkout@v2
5662
- name: Build Wheels
57-
uses: messense/maturin-action@v1
63+
uses: PyO3/maturin-action@v1
5864
with:
65+
command: build
5966
target: ${{ matrix.target }}
60-
manylinux: auto
6167
args: --release -o dist --find-interpreter
6268
- name: Upload wheels
63-
uses: actions/upload-artifact@v2
69+
uses: actions/upload-artifact@v4
6470
with:
65-
name: wheels
71+
name: linux-wheels-${{ matrix.python-version }}-${{matrix.target}}
6672
path: dist
6773

6874
# TODO Add pypy
@@ -73,16 +79,17 @@ jobs:
7379
if: "startsWith(github.ref, 'refs/tags/')"
7480
needs: [ macos, linux, windows]
7581
steps:
76-
- uses: actions/download-artifact@v2
82+
- uses: actions/download-artifact@v4
7783
with:
78-
name: wheels
79-
- uses: actions/setup-python@v2
84+
pattern: '*'
85+
merge-multiple: true
86+
- uses: actions/setup-python@v5
8087
with:
81-
python-version: 3.9
88+
python-version: 3.12
8289
- name: Publish to PyPi
8390
env:
8491
TWINE_USERNAME: __token__
85-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
92+
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_TOKEN }}
8693
run: |
8794
pip install --upgrade twine
8895
twine upload --skip-existing *

0 commit comments

Comments
 (0)