Skip to content

Commit

Permalink
Merge 18bb08d into 3b03ec3
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterPhoenix committed Oct 26, 2020
2 parents 3b03ec3 + 18bb08d commit 147fd07
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import os
import setuptools
try: # for pip >= 10
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from pip.download import PipSession


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
Expand All @@ -31,15 +24,9 @@ def read(fname):
platforms=['any'],
packages=setuptools.find_packages(exclude=['tests']),

install_requires=[
str(req.req) for req in parse_requirements('requirements.txt',
session=PipSession())
],
install_requires=read('requirements.txt').splitlines(),

tests_require=[
str(req.req) for req in parse_requirements('requirements_test.txt',
session=PipSession())
],
tests_require=read('requirements_test.txt').splitlines(),

classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit 147fd07

Please sign in to comment.