Skip to content

Commit

Permalink
chore(python): annotate package with minimum python 3.8
Browse files Browse the repository at this point in the history
also add 3.12 to tox config
  • Loading branch information
matejcik committed Jun 25, 2024
1 parent 0fc193a commit eaeb58f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion common/tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/legacy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions python/.changelog.d/+0596394e.incompatible
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Minimum required Python version is now 3.8.
2 changes: 1 addition & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down
1 change: 0 additions & 1 deletion python/requirements-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

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"],
Expand Down Expand Up @@ -64,7 +64,7 @@ def find_version():
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=[
Expand Down

0 comments on commit eaeb58f

Please sign in to comment.