Skip to content

Commit a3bc26d

Browse files
Leereenmruiz-ledger
authored andcommitted
[update] Supported Python version: dropped 3.6, 3.7 and 3.8, added 3.11, 3.12 and 3.13
1 parent 4edacbb commit a3bc26d

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,31 @@ on:
1212
- master
1313

1414
jobs:
15+
build_install:
16+
name: Build and install the Ledgerblue Python package
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python_version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
22+
steps:
23+
- name: Clone
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Python version
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python_version }}
30+
31+
- name: Build & install
32+
run: |
33+
pip install -U pip
34+
pip install -U .
35+
1536
package-deploy:
1637
name: Build the Python package, and deploy if needed
1738
runs-on: ubuntu-latest
39+
needs: build_install
1840
steps:
1941
- name: Clone
2042
uses: actions/checkout@v3
@@ -23,6 +45,10 @@ jobs:
2345

2446
- name: Install dependencies
2547
run: |
48+
# Needed to workaround this bug https://github.com/pypa/setuptools/issues/4759
49+
# To be removed when it's fixed
50+
pip install -U packaging
51+
2652
python -m pip install pip --upgrade
2753
pip install build twine
2854

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=45",
3+
"setuptools>=75",
44
"setuptools_scm[toml]>=6.2",
55
"wheel"
66
]
@@ -21,18 +21,19 @@ classifiers = [
2121
"Operating System :: MacOS :: MacOS X",
2222
"Programming Language :: Python :: 3",
2323
"Programming Language :: Python :: 3 :: Only",
24-
"Programming Language :: Python :: 3.6",
25-
"Programming Language :: Python :: 3.7",
2624
"Programming Language :: Python :: 3.8",
2725
"Programming Language :: Python :: 3.9",
2826
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
2930
]
3031
dynamic = [ "version" ]
31-
requires-python = ">=3"
32+
requires-python = ">=3.8"
3233
dependencies = [
3334
"pyelftools>=0.29,<1.0",
3435
"hidapi>=0.7.99",
35-
"protobuf >=3.20,<4",
36+
"protobuf >=5",
3637
"pycryptodomex>=3.6.1",
3738
"future",
3839
"ecpy>=0.9.0",

0 commit comments

Comments
 (0)