mirror of
https://github.com/espressif/esptool.git
synced 2025-10-20 04:54:31 +08:00
feat: Add support for Python 3.12
This commit is contained in:

committed by
Radim Karniš

parent
dc8a3379d5
commit
ef02d52044
23
.github/workflows/test_esptool.yml
vendored
23
.github/workflows/test_esptool.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout ref commit
|
- name: Checkout ref commit
|
||||||
@@ -19,6 +19,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install setuptools
|
||||||
|
|
||||||
- name: SoftHSM2 setup
|
- name: SoftHSM2 setup
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@@ -28,23 +33,19 @@ jobs:
|
|||||||
sudo chown -R $(whoami) /var/lib/softhsm
|
sudo chown -R $(whoami) /var/lib/softhsm
|
||||||
./ci/setup_softhsm2.sh || exit 1
|
./ci/setup_softhsm2.sh || exit 1
|
||||||
|
|
||||||
- name: Test python components (fast)
|
- name: Install esptool and check if the installed versions can run
|
||||||
run: |
|
run: |
|
||||||
python setup.py build
|
python setup.py build
|
||||||
pip install --extra-index-url https://dl.espressif.com/pypi -e .[dev,hsm]
|
pip install --extra-index-url https://dl.espressif.com/pypi -e .[dev,hsm]
|
||||||
pytest test/test_imagegen.py
|
|
||||||
pytest test/test_espsecure.py
|
|
||||||
pytest test/test_espsecure_hsm.py
|
|
||||||
pytest test/test_merge_bin.py
|
|
||||||
pytest test/test_image_info.py
|
|
||||||
pytest test/test_modules.py
|
|
||||||
|
|
||||||
- name: Check the installed versions can run
|
|
||||||
run: |
|
|
||||||
esptool.py --help
|
esptool.py --help
|
||||||
espefuse.py --help
|
espefuse.py --help
|
||||||
espsecure.py --help
|
espsecure.py --help
|
||||||
|
|
||||||
|
- name: Test esptool and components
|
||||||
|
run: |
|
||||||
|
pytest -m host_test
|
||||||
|
pytest test/test_espsecure_hsm.py
|
||||||
|
|
||||||
- name: Build stub (Python 3.7 only)
|
- name: Build stub (Python 3.7 only)
|
||||||
if: matrix.python-version == 3.7
|
if: matrix.python-version == 3.7
|
||||||
run: |
|
run: |
|
||||||
|
1
setup.py
1
setup.py
@@ -102,6 +102,7 @@ setup(
|
|||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
],
|
],
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
setup_requires=(["wheel"] if "bdist_wheel" in sys.argv else []),
|
setup_requires=(["wheel"] if "bdist_wheel" in sys.argv else []),
|
||||||
|
Reference in New Issue
Block a user