From b30365a42cb036acc294e6ff88f4872cca7791a6 Mon Sep 17 00:00:00 2001 From: Peng Lu Date: Mon, 9 Jan 2023 16:36:50 +0800 Subject: [PATCH] [Fix] update mimimum python version to 3.7 (#1921) --- .circleci/test.yml | 2 +- .github/workflows/merge_stage_test.yml | 2 +- docs/en/installation.md | 2 +- docs/zh_cn/installation.md | 2 +- requirements/runtime.txt | 1 - setup.py | 3 +-- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.circleci/test.yml b/.circleci/test.yml index ce0ffaf472..b5abda8a20 100644 --- a/.circleci/test.yml +++ b/.circleci/test.yml @@ -152,7 +152,7 @@ workflows: name: minimum_version_cpu torch: 1.6.0 torchvision: 0.7.0 - python: 3.6.9 # The lowest python 3.6.x version available on CircleCI images + python: 3.7.4 requires: - lint - build_cpu: diff --git a/.github/workflows/merge_stage_test.yml b/.github/workflows/merge_stage_test.yml index 59d45ed963..a9ff9715d9 100644 --- a/.github/workflows/merge_stage_test.yml +++ b/.github/workflows/merge_stage_test.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-18.04 strategy: matrix: - python-version: [3.6, 3.8, 3.9] + python-version: [3.8, 3.9] torch: [1.8.1] include: - torch: 1.8.1 diff --git a/docs/en/installation.md b/docs/en/installation.md index 0b6ad73ab4..5047505cf5 100644 --- a/docs/en/installation.md +++ b/docs/en/installation.md @@ -20,7 +20,7 @@ In this section we demonstrate how to prepare an environment with PyTorch. -MMPose works on Linux, Windows and macOS. It requires Python 3.6+, CUDA 9.2+ and PyTorch 1.6+. +MMPose works on Linux, Windows and macOS. It requires Python 3.7+, CUDA 9.2+ and PyTorch 1.6+. If you are experienced with PyTorch and have already installed it, you can skip this part and jump to the [MMPose Installation](#install-mmpose). Otherwise, you can follow these steps for the preparation. diff --git a/docs/zh_cn/installation.md b/docs/zh_cn/installation.md index 65e6bcd0bf..18ca14fd60 100644 --- a/docs/zh_cn/installation.md +++ b/docs/zh_cn/installation.md @@ -18,7 +18,7 @@ 在本节中,我们将演示如何准备 PyTorch 相关的依赖环境。 -MMPose 适用于 Linux、Windows 和 macOS。它需要 Python 3.6+、CUDA 9.2+ 和 PyTorch 1.6+。 +MMPose 适用于 Linux、Windows 和 macOS。它需要 Python 3.7+、CUDA 9.2+ 和 PyTorch 1.6+。 如果您对配置 PyTorch 环境已经很熟悉,并且已经完成了配置,可以直接进入下一节:[安装](#安装-mmpose)。否则,请依照以下步骤完成配置。 diff --git a/requirements/runtime.txt b/requirements/runtime.txt index ed0648440c..ab5c0172e4 100644 --- a/requirements/runtime.txt +++ b/requirements/runtime.txt @@ -1,5 +1,4 @@ chumpy -dataclasses; python_version == '3.6' json_tricks matplotlib munkres diff --git a/setup.py b/setup.py index b436a7431d..7222188e2f 100644 --- a/setup.py +++ b/setup.py @@ -176,14 +176,13 @@ def add_mim_extension(): 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], url='https://github.com/open-mmlab/mmpose', license='Apache License 2.0', + python_requires='>=3.7', install_requires=parse_requirements('requirements/runtime.txt'), extras_require={ 'all': parse_requirements('requirements.txt'),