Skip to content

Commit 737bab4

Browse files
committed
#585 - Drup support for python version 3.8 or earlier
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 05352b5 commit 737bab4

File tree

9 files changed

+21
-17
lines changed

9 files changed

+21
-17
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
==============================
22
Changelog
33

4+
xxxx-xx-xx
5+
Release xx.x.x
6+
7+
* Drop support for python version earlier than 3.9
8+
9+
410
2024-09-16
511
Release 11.0.2
612

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See https://aboutcode.org for more information about nexB OSS projects.
77
#
88

9-
FROM python:3.7-slim-buster
9+
FROM python:3.9-slim-buster
1010

1111
RUN apt-get update \
1212
&& apt-get install -y bash bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 libpopt0 curl\

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Build and tests status
3939

4040
REQUIREMENTS
4141
------------
42-
The AboutCode Toolkit is tested with Python 3.7 or above only on Linux, Mac and Windows.
42+
The AboutCode Toolkit is tested with Python 3.9 or above only on Linux, Mac and Windows.
4343
You will need to install a Python interpreter if you do not have one already
4444
installed.
4545

azure-pipelines.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,46 @@ jobs:
99
parameters:
1010
job_name: ubuntu20_cpython
1111
image_name: ubuntu-20.04
12-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
12+
python_versions: ["3.9", "3.10", "3.11"]
1313
test_suites:
1414
all: venv/bin/pytest -n 2 -vvs
1515

1616
- template: etc/ci/azure-posix.yml
1717
parameters:
1818
job_name: ubuntu22_cpython
1919
image_name: ubuntu-22.04
20-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
20+
python_versions: ["3.9", "3.10", "3.11"]
2121
test_suites:
2222
all: venv/bin/pytest -n 2 -vvs
2323

2424
- template: etc/ci/azure-posix.yml
2525
parameters:
2626
job_name: macos12_cpython
2727
image_name: macOS-12
28-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
28+
python_versions: ["3.9", "3.10", "3.11"]
2929
test_suites:
3030
all: venv/bin/pytest -n 2 -vvs
3131

3232
- template: etc/ci/azure-posix.yml
3333
parameters:
3434
job_name: macos13_cpython
3535
image_name: macOS-13
36-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
36+
python_versions: ["3.9", "3.10", "3.11"]
3737
test_suites:
3838
all: venv/bin/pytest -n 2 -vvs
3939

4040
- template: etc/ci/azure-win.yml
4141
parameters:
4242
job_name: win2019_cpython
4343
image_name: windows-2019
44-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
44+
python_versions: ["3.9", "3.10", "3.11"]
4545
test_suites:
4646
all: venv\Scripts\pytest -n 2 -vvs
4747

4848
- template: etc/ci/azure-win.yml
4949
parameters:
5050
job_name: win2022_cpython
5151
image_name: windows-2022
52-
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11"]
52+
python_versions: ["3.9", "3.10", "3.11"]
5353
test_suites:
5454
all: venv\Scripts\pytest -n 2 -vvs

docs/source/home.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Build and tests status
3838

3939
REQUIREMENTS
4040
------------
41-
The AboutCode Toolkit is tested with Python 3.7 or above only on Linux, Mac and Windows.
41+
The AboutCode Toolkit is tested with Python 3.9 or above only on Linux, Mac and Windows.
4242
You will need to install a Python interpreter if you do not have one already
4343
installed.
4444

etc/scripts/gen_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def gen_requirements():
3434
type=pathlib.Path,
3535
required=True,
3636
metavar="DIR",
37-
help="Path to the 'site-packages' directory where wheels are installed such as lib/python3.7/site-packages",
37+
help="Path to the 'site-packages' directory where wheels are installed such as lib/python3.9/site-packages",
3838
)
3939
parser.add_argument(
4040
"-r",

etc/scripts/gen_requirements_dev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def gen_dev_requirements():
3636
type=pathlib.Path,
3737
required=True,
3838
metavar="DIR",
39-
help='Path to the "site-packages" directory where wheels are installed such as lib/python3.7/site-packages',
39+
help='Path to the "site-packages" directory where wheels are installed such as lib/python3.9/site-packages',
4040
)
4141
parser.add_argument(
4242
"-d",

etc/scripts/utils_thirdparty.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,12 @@
115115
TRACE_ULTRA_DEEP = False
116116

117117
# Supported environments
118-
PYTHON_VERSIONS = "37", "38", "39", "310"
118+
PYTHON_VERSIONS = "39", "310", "311"
119119

120120
PYTHON_DOT_VERSIONS_BY_VER = {
121-
"37": "3.7",
122-
"38": "3.8",
123121
"39": "3.9",
124122
"310": "3.10",
123+
"311": "3.11",
125124
}
126125

127126

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ classifiers =
1515
Development Status :: 5 - Production/Stable
1616
Intended Audience :: Developers
1717
Programming Language :: Python :: 3 :: Only
18-
Programming Language :: Python :: 3.7
19-
Programming Language :: Python :: 3.8
2018
Programming Language :: Python :: 3.9
2119
Programming Language :: Python :: 3.10
20+
Programming Language :: Python :: 3.11
2221
Topic :: Software Development
2322
Topic :: Software Development :: Documentation
2423
Topic :: Software Development :: Quality Assurance
@@ -55,7 +54,7 @@ zip_safe = false
5554

5655
setup_requires = setuptools_scm[toml] >= 4
5756

58-
python_requires = >=3.7
57+
python_requires = >=3.9
5958

6059
install_requires =
6160
attrs

0 commit comments

Comments
 (0)