1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00

Bump minimum python3 version to 3.10 (MR 2357)

This commit is contained in:
Oliver Smith 2024-07-08 22:34:07 +02:00
parent 2b577a8694
commit 9fd45fb334
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 9 additions and 9 deletions

View file

@ -10,7 +10,7 @@ fi
# shellcheck disable=SC2046
vermin \
-t=3.9- \
-t=3.10- \
--backport argparse \
--backport configparser \
--backport enum \

View file

@ -43,8 +43,8 @@ Issues are being tracked
* [Linux kernel 3.17 or higher](https://postmarketos.org/oldkernel)
* Note: kernel versions between 5.8.8 and 6.0 might
[have issues with parted](https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2309).
* Python 3.9+
* For python3 <= 3.10: tomli
* Python 3.10+
* For python3 < 3.11: tomli
* OpenSSL
* git
* ps

View file

@ -41,8 +41,8 @@ pmbootstrap requires the following:
Kernel version 5.8 - 6.0 might have issues with loop-devices
* Python 3.9+
* For python3 <= 3.10: tomli
* Python 3.10+
* For python3 < 3.11: tomli
* OpenSSL
* git
* ps

View file

@ -29,8 +29,8 @@ __version__ = "3.0.0_alpha"
# Python version check
version = sys.version_info
if version < (3, 9):
print("You need at least Python 3.9 to run pmbootstrap")
if version < (3, 10):
print("You need at least Python 3.10 to run pmbootstrap")
print("(You are running it with Python " + str(version.major) + "." + str(version.minor) + ")")
sys.exit()

View file

@ -30,8 +30,8 @@ exclude = ["aports", "docs", "keys", "test", "test.pmb_test"]
[tool.ruff]
line-length=100
# Assume Python 3.9
target-version = "py39"
# Assume Python 3.10
target-version = "py310"
[tool.ruff.lint]
extend-select = ["UP"]