File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33import sys
44
5- try : # for pip >= 10
6- from pip ._internal .req import parse_requirements
7- except ImportError : # for pip <= 9.0.3
8- from pip .req import parse_requirements
9-
10- try : # for pip >= 10
11- from pip ._internal import download
12- except ImportError : # for pip <= 9.0.3
13- from pip import download
14-
155from setuptools import setup , find_packages
166
177with open ('README.rst' ) as readme_file :
2010with open ('HISTORY.rst' ) as history_file :
2111 history = history_file .read ()
2212
23- requirements = parse_requirements (
24- 'requirements.txt' , session = download .PipSession (),
25- )
26- pip_requirements = [str (r .req ) for r in requirements ]
13+ with open ('requirements.txt' ) as f :
14+ requirements = f .read ().splitlines ()
15+ pip_requirements = [r .strip () for r in requirements ]
2716
2817test_requirements = [
2918 # TODO: put package test requirements here
You can’t perform that action at this time.
0 commit comments