Merge pull request #68 from williamFalcon/williamFalcon-patch-1

Update setup.py
This commit is contained in:
William Falcon 2019-08-07 16:34:25 -04:00 committed by GitHub
commit 514cab131e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -1,11 +1,17 @@
#!/usr/bin/env python
# Always prefer setuptools over distutils
from os import path
from setuptools import setup
import pytorch_lightning
# https://packaging.python.org/guides/single-sourcing-package-version/
PATH_HERE = path.abspath(path.dirname(__file__))
with open(path.join(PATH_HERE, 'requirements.txt'), encoding='utf-8') as fp:
requirements = [rq.rstrip() for rq in fp.readlines() if not rq.startswith('#')]
# https://packaging.python.org/guides/single-sourcing-package-version/
# http://blog.ionelmc.ro/2014/05/25/python-packaging/
setup(
name="pytorch-lightning",
@ -25,11 +31,7 @@ setup(
keywords=["deep learning", "pytorch", "AI"],
python_requires=">=3.6",
install_requires=[
"torch>=1.1.0",
"tqdm",
"test-tube>=0.6.7.6",
],
install_requires=requirements,
classifiers=[
'Environment :: Console',