From 3af65151aa0b61b95192ba4c4bcc2730152fdbd1 Mon Sep 17 00:00:00 2001 From: Devaraj Ranganna Date: Mon, 12 Oct 2020 15:37:50 +0100 Subject: [PATCH] ci: Remove support for python 2.7 Python 2.7 is not supported therefore not required to be run as part of CI validations. Signed-off-by: Devaraj Ranganna --- azure-pipelines.yml | 12 ------------ setup.py | 15 ++++++--------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2224e1fcd9..33838c47ac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,10 +19,6 @@ jobs: job: test strategy: matrix: - linux_python_2_7: - python.version: "2.7" - imageName: ubuntu-16.04 - sendCoverage: "false" linux_python_3_5: python.version: "3.5" imageName: ubuntu-16.04 @@ -35,10 +31,6 @@ jobs: python.version: "3.7" imageName: ubuntu-16.04 sendCoverage: "true" - mac_python_2_7: - python.version: "2.7" - imageName: macOS-10.15 - sendCoverage: "false" mac_python_3_5: python.version: "3.5" imageName: macOS-10.15 @@ -51,10 +43,6 @@ jobs: python.version: "3.7" imageName: macOS-10.15 sendCoverage: "false" - windows_python_2_7: - python.version: "2.7" - imageName: vs2017-win2016 - sendCoverage: "false" windows_python_3_5: python.version: "3.5" imageName: vs2017-win2016 diff --git a/setup.py b/setup.py index 894bef93aa..b036fdcb5e 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,6 @@ def read(fname): with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh: test_requirements = fh.readlines() -python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4' setup( name="mbed-os-tools", version=read("src/mbed_os_tools/VERSION.txt").strip(), @@ -70,17 +69,15 @@ def read(fname): 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python', + "Programming Language :: Python", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", 'Topic :: Software Development :: Build Tools', 'Topic :: Software Development :: Embedded Systems', ), - python_requires=python_requires, + python_requires=">=3.5,<4", install_requires=requirements, tests_require=test_requirements, extras_require={