chore(python): annotate package with minimum python 3.8

also add 3.12 to tox config
pull/3963/head
matejcik 3 weeks ago
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
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

@ -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.

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

@ -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/).

@ -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

@ -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

@ -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=[

Loading…
Cancel
Save