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. ...@@ -30,6 +30,8 @@ It provides the following functionalities.
See the `documentation <http://mmcv.readthedocs.io/en/latest>`_ for more features and usage. 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 Installation
------------ ------------
......
# Copyright (c) Open-MMLab. All rights reserved. # Copyright (c) Open-MMLab. All rights reserved.
__version__ = '0.3.0' __version__ = '0.3.1'
...@@ -24,9 +24,11 @@ def choose_requirement(primary, secondary): ...@@ -24,9 +24,11 @@ def choose_requirement(primary, secondary):
return str(primary) return str(primary)
install_requires = [ install_requires = ['addict', 'numpy', 'pyyaml', 'six']
line.strip() for line in open('requirements.txt', 'r').readlines()
] if sys.version_info < (3, ):
install_requires.extend(
['backports.shutil_get_terminal_size', 'enum34', 'pathlib'])
# If first not installed install second package # If first not installed install second package
CHOOSE_INSTALL_REQUIRES = [('opencv-python-headless>=3', 'opencv-python>=3')] CHOOSE_INSTALL_REQUIRES = [('opencv-python-headless>=3', 'opencv-python>=3')]
...@@ -34,11 +36,6 @@ 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: for main, secondary in CHOOSE_INSTALL_REQUIRES:
install_requires.append(choose_requirement(main, secondary)) 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(): def readme():
with open('README.rst', encoding='utf-8') as f: with open('README.rst', encoding='utf-8') as f:
...@@ -88,7 +85,6 @@ setup( ...@@ -88,7 +85,6 @@ setup(
'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', '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