1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00

chore(python): annotate package with minimum python 3.8

also add 3.12 to tox config
This commit is contained in:
matejcik 2024-06-12 12:08:07 +02:00
parent 0fc193ab80
commit eaeb58fb25
7 changed files with 7 additions and 8 deletions

View File

@ -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
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`.
## Tools overview

View File

@ -38,7 +38,7 @@ For firmwares older than 1.8.1, please clone the archived [trezor-mcu](https://g
## 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.
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.

View File

@ -0,0 +1 @@
Minimum required Python version is now 3.8.

View File

@ -9,7 +9,7 @@ See <https://trezor.io> for more information.
## 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
a working `pip`; if not, you can refer to [this
guide](https://packaging.python.org/tutorials/installing-packages/).

View File

@ -2,5 +2,4 @@ hidapi>=0.7.99.post20
web3>=5
Pillow>=10
stellar-sdk>=6
rlp>=1.1.0 ; python_version<'3.7'
cryptography>=41

View File

@ -4,6 +4,5 @@ requests>=2.4.0
click>=7,<8.2
libusb1>=1.6.4
construct>=2.9,!=2.10.55
typing_extensions>=3.10
dataclasses ; python_version<'3.7'
typing_extensions>=4.7.1
construct-classes>=0.1.2

View File

@ -27,7 +27,7 @@ install_requires = (CWD / "requirements.txt").read_text().splitlines()
extras_require = {
"hidapi": ["hidapi>=0.7.99.post20"],
"ethereum": ["rlp>=1.1.0 ; python_version<'3.7'", "web3>=5"],
"ethereum": ["web3>=5"],
"qt-widgets": ["PyQt5"],
"extra": ["Pillow>=10"],
"stellar": ["stellar-sdk>=6"],
@ -64,7 +64,7 @@ setup(
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
install_requires=install_requires,
extras_require=extras_require,
python_requires=">=3.6",
python_requires=">=3.8",
include_package_data=True,
zip_safe=False,
classifiers=[