Skip to content

Commit 7058e68

Browse files
committed
also support python 3.10
1 parent 999e18f commit 7058e68

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ classifiers = [
1313
"Intended Audience :: Developers",
1414
"License :: OSI Approved :: MIT License",
1515
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
1618
"Programming Language :: Python :: 3.12",
1719
]
1820
packages = [
@@ -24,7 +26,7 @@ packages = [
2426
ce-lib-wizard = "cli.main:main"
2527

2628
[tool.poetry.dependencies]
27-
python = "^3.12"
29+
python = "^3.10"
2830
click = "^8.1.0"
2931
inquirer = "^3.2.0"
3032
PyGithub = "^2.0.0"
@@ -44,11 +46,11 @@ build-backend = "poetry.core.masonry.api"
4446

4547
[tool.black]
4648
line-length = 100
47-
target-version = ['py312']
49+
target-version = ['py310']
4850

4951
[tool.ruff]
5052
line-length = 100
51-
target-version = "py312"
53+
target-version = "py310"
5254
select = [
5355
"E", # pycodestyle errors
5456
"W", # pycodestyle warnings
@@ -60,7 +62,7 @@ select = [
6062
]
6163

6264
[tool.pytype]
63-
python_version = "3.12"
65+
python_version = "3.10"
6466
inputs = [
6567
"cli/",
6668
"core/"

run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ print_warning() {
2929

3030
# Check if python3 is available
3131
if ! command -v python3 &> /dev/null; then
32-
print_error "python3 is not installed. Please install Python 3.12 or higher."
32+
print_error "python3 is not installed. Please install Python 3.10 or higher."
3333
exit 1
3434
fi
3535

3636
# Get Python version
3737
PYTHON_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
3838
print_info "Found Python $PYTHON_VERSION"
3939

40-
# Check Python version is 3.12+
41-
if ! python3 -c 'import sys; exit(0 if sys.version_info >= (3, 12) else 1)' 2>/dev/null; then
42-
print_error "Python 3.12 or higher is required. Found Python $PYTHON_VERSION"
40+
# Check Python version is 3.10+
41+
if ! python3 -c 'import sys; exit(0 if sys.version_info >= (3, 10) else 1)' 2>/dev/null; then
42+
print_error "Python 3.10 or higher is required. Found Python $PYTHON_VERSION"
4343
exit 1
4444
fi
4545

0 commit comments

Comments
 (0)