mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 05:18:08 +00:00
chore(python): annotate package with minimum python 3.8
also add 3.12 to tox config
This commit is contained in:
parent
0fc193ab80
commit
eaeb58fb25
@ -5,7 +5,7 @@ This directory contains mostly tools that can manipulate definitions in [defs/](
|
|||||||
Tools are written with [Click](http://click.pocoo.org/6/), so you always get a help text
|
Tools are written with [Click](http://click.pocoo.org/6/), so you always get a help text
|
||||||
if you use the `--help` option.
|
if you use the `--help` option.
|
||||||
|
|
||||||
All tools require Python 3.6 or higher and a bunch of dependencies, listed in `requirements.txt`.
|
All tools require Python 3.8 or higher and a bunch of dependencies, listed in `requirements.txt`.
|
||||||
You can install them all with `pip3 install -r requirements.txt`.
|
You can install them all with `pip3 install -r requirements.txt`.
|
||||||
|
|
||||||
## Tools overview
|
## Tools overview
|
||||||
|
@ -38,7 +38,7 @@ For firmwares older than 1.8.1, please clone the archived [trezor-mcu](https://g
|
|||||||
|
|
||||||
## Local development build
|
## Local development build
|
||||||
|
|
||||||
Make sure you have Python 3.6 or later and [Poetry](https://python-poetry.org/)
|
Make sure you have Python 3.8 or later and [Poetry](https://python-poetry.org/)
|
||||||
installed.
|
installed.
|
||||||
|
|
||||||
If you want to build device firmware, also make sure that you have the [GNU ARM Embedded toolchain](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) installed.
|
If you want to build device firmware, also make sure that you have the [GNU ARM Embedded toolchain](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads) installed.
|
||||||
|
1
python/.changelog.d/+0596394e.incompatible
Normal file
1
python/.changelog.d/+0596394e.incompatible
Normal file
@ -0,0 +1 @@
|
|||||||
|
Minimum required Python version is now 3.8.
|
@ -9,7 +9,7 @@ See <https://trezor.io> for more information.
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
Python Trezor tools require Python 3.6 or higher, and libusb 1.0. The easiest
|
Python Trezor tools require Python 3.8 or higher, and libusb 1.0. The easiest
|
||||||
way to install it is with `pip`. The rest of this guide assumes you have
|
way to install it is with `pip`. The rest of this guide assumes you have
|
||||||
a working `pip`; if not, you can refer to [this
|
a working `pip`; if not, you can refer to [this
|
||||||
guide](https://packaging.python.org/tutorials/installing-packages/).
|
guide](https://packaging.python.org/tutorials/installing-packages/).
|
||||||
|
@ -2,5 +2,4 @@ hidapi>=0.7.99.post20
|
|||||||
web3>=5
|
web3>=5
|
||||||
Pillow>=10
|
Pillow>=10
|
||||||
stellar-sdk>=6
|
stellar-sdk>=6
|
||||||
rlp>=1.1.0 ; python_version<'3.7'
|
|
||||||
cryptography>=41
|
cryptography>=41
|
||||||
|
@ -4,6 +4,5 @@ requests>=2.4.0
|
|||||||
click>=7,<8.2
|
click>=7,<8.2
|
||||||
libusb1>=1.6.4
|
libusb1>=1.6.4
|
||||||
construct>=2.9,!=2.10.55
|
construct>=2.9,!=2.10.55
|
||||||
typing_extensions>=3.10
|
typing_extensions>=4.7.1
|
||||||
dataclasses ; python_version<'3.7'
|
|
||||||
construct-classes>=0.1.2
|
construct-classes>=0.1.2
|
||||||
|
@ -27,7 +27,7 @@ install_requires = (CWD / "requirements.txt").read_text().splitlines()
|
|||||||
|
|
||||||
extras_require = {
|
extras_require = {
|
||||||
"hidapi": ["hidapi>=0.7.99.post20"],
|
"hidapi": ["hidapi>=0.7.99.post20"],
|
||||||
"ethereum": ["rlp>=1.1.0 ; python_version<'3.7'", "web3>=5"],
|
"ethereum": ["web3>=5"],
|
||||||
"qt-widgets": ["PyQt5"],
|
"qt-widgets": ["PyQt5"],
|
||||||
"extra": ["Pillow>=10"],
|
"extra": ["Pillow>=10"],
|
||||||
"stellar": ["stellar-sdk>=6"],
|
"stellar": ["stellar-sdk>=6"],
|
||||||
@ -64,7 +64,7 @@ setup(
|
|||||||
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
|
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
extras_require=extras_require,
|
extras_require=extras_require,
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.8",
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
Loading…
Reference in New Issue
Block a user