diff --git a/common/tools/README.md b/common/tools/README.md index b0cf350e4..748fc1f8a 100644 --- a/common/tools/README.md +++ b/common/tools/README.md @@ -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 diff --git a/docs/legacy/index.md b/docs/legacy/index.md index 48ae4c0e4..db7c6bd73 100644 --- a/docs/legacy/index.md +++ b/docs/legacy/index.md @@ -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. diff --git a/python/.changelog.d/+0596394e.incompatible b/python/.changelog.d/+0596394e.incompatible new file mode 100644 index 000000000..231e9a3cd --- /dev/null +++ b/python/.changelog.d/+0596394e.incompatible @@ -0,0 +1 @@ +Minimum required Python version is now 3.8. diff --git a/python/README.md b/python/README.md index 8390c2adf..e2e8043ae 100644 --- a/python/README.md +++ b/python/README.md @@ -9,7 +9,7 @@ See 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/). diff --git a/python/requirements-optional.txt b/python/requirements-optional.txt index a016c7b42..2b9a06c41 100644 --- a/python/requirements-optional.txt +++ b/python/requirements-optional.txt @@ -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 diff --git a/python/requirements.txt b/python/requirements.txt index b0712b3e2..440bc2a2b 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -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 diff --git a/python/setup.py b/python/setup.py index 64ea79097..05a36a877 100755 --- a/python/setup.py +++ b/python/setup.py @@ -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=[