Skip to content

Commit 989a9af

Browse files
authored
Unsupport Python 3.8 (#684)
Python 3.8 is EOL. https://endoflife.date/python Close #680 because it needs python >= 3.9 and this PR dealt with it. FYI: PR which unsupport Python 3.7 #494 #495
1 parent ead1243 commit 989a9af

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

.github/workflows/auto-testing.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
strategy:
1616
matrix:
1717
python-version:
18-
- '3.8'
1918
- '3.9'
2019
- '3.10'
2120
- '3.11'

README.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Japanese: https://developers.line.biz/ja/docs/messaging-api/overview/
2222
Requirements
2323
------------
2424

25-
- Python >= 3.8
25+
- Python >= 3.9
2626

2727
Installation
2828
------------
@@ -408,7 +408,6 @@ Run tests
408408

409409
Test by using tox. We test against the following versions.
410410

411-
- 3.8
412411
- 3.9
413412
- 3.10
414413
- 3.11

generator/src/main/java/line/bot/generator/PythonNextgenCustomClientGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ public String generatePackageName(String packageName) {
15441544

15451545
@Override
15461546
public String generatorLanguageVersion() {
1547-
return "3.8+";
1547+
return "3.9+";
15481548
}
15491549

15501550
@Override

generator/src/main/resources/python-nextgen-custom-client/github-workflow.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10"]
17+
python-version: ["3.9", "3.10"]
1818

1919
steps:
2020
- uses: actions/checkout@v3

generator/src/main/resources/python-nextgen-custom-client/pyproject.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/{{{gitRepoId}}}/{{{gitUserId}}}"
99
keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
1010

1111
[tool.poetry.dependencies]
12-
python = "^3.8"
12+
python = "^3.9"
1313

1414
urllib3 = ">= 1.25.3"
1515
python-dateutil = ">=2.8.2"

generator/src/main/resources/python-nextgen-custom-client/setup.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301
1212
# http://pypi.python.org/pypi/setuptools
1313
NAME = "{{{projectName}}}"
1414
VERSION = "{{packageVersion}}"
15-
PYTHON_REQUIRES = ">=3.8"
15+
PYTHON_REQUIRES = ">=3.9"
1616
{{#apiInfo}}
1717
{{#apis}}
1818
{{#-last}}

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sphinx>=2
66
sphinx_rtd_theme
77
pypandoc
88
twine
9-
black==24.8.0
9+
black>=24.10.0

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def run(self):
188188
long_description=long_description,
189189
license='Apache License 2.0',
190190
packages=find_packages(include=["linebot*"]),
191-
python_requires=">=3.8.0",
191+
python_requires=">=3.9.0",
192192
install_requires=_requirements(),
193193
tests_require=_requirements_test(),
194194
cmdclass={
@@ -200,7 +200,6 @@ def run(self):
200200
"License :: OSI Approved :: Apache Software License",
201201
"Intended Audience :: Developers",
202202
"Programming Language :: Python",
203-
"Programming Language :: Python :: 3.8",
204203
"Programming Language :: Python :: 3.9",
205204
"Programming Language :: Python :: 3.10",
206205
"Programming Language :: Python :: 3.11",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py3.8, py3.9, py3.10, py3.11, py3.12, py3-flake8-src, py3-flake8-other
2+
envlist = py3.9, py3.10, py3.11, py3.12, py3-flake8-src, py3-flake8-other
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)