Unverified Commit 9470ff70 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

remove support for python 3.4 (#189)

parent 6fe192fc
......@@ -30,6 +30,8 @@ It provides the following functionalities.
See the `documentation <http://mmcv.readthedocs.io/en/latest>`_ for more features and usage.
Note: MMCV currently supports both Python 2.7 and 3.5+, but we plan to remove the support for Python 2. Please migrate to Python 3 as soon as possible.
Installation
------------
......
# Copyright (c) Open-MMLab. All rights reserved.
__version__ = '0.3.0'
__version__ = '0.3.1'
......@@ -24,9 +24,11 @@ def choose_requirement(primary, secondary):
return str(primary)
install_requires = [
line.strip() for line in open('requirements.txt', 'r').readlines()
]
install_requires = ['addict', 'numpy', 'pyyaml', 'six']
if sys.version_info < (3, ):
install_requires.extend(
['backports.shutil_get_terminal_size', 'enum34', 'pathlib'])
# If first not installed install second package
CHOOSE_INSTALL_REQUIRES = [('opencv-python-headless>=3', 'opencv-python>=3')]
......@@ -34,11 +36,6 @@ CHOOSE_INSTALL_REQUIRES = [('opencv-python-headless>=3', 'opencv-python>=3')]
for main, secondary in CHOOSE_INSTALL_REQUIRES:
install_requires.append(choose_requirement(main, secondary))
if sys.version_info < (3, 3):
install_requires.append('backports.shutil_get_terminal_size')
if sys.version_info < (3, 4):
install_requires.extend(['enum34', 'pathlib'])
def readme():
with open('README.rst', encoding='utf-8') as f:
......@@ -88,7 +85,6 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment