Skip to content

Commit d0ccbb8

Browse files
BordawilliamFalcon
authored andcommittedAug 8, 2019
fix loading pkg while setup (Lightning-AI#71)
* fix loading package while setup Lightning-AI#56 * Update setup.py * Update __init__.py * Update setup.py * use complete req. * Update setup.py * Update setup.py
1 parent 514cab1 commit d0ccbb8

File tree

2 files changed

+26
-35
lines changed

2 files changed

+26
-35
lines changed
 

‎pytorch_lightning/__init__.py

-10
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
from .root_module.root_module import LightningModule
33
from .root_module.decorators import data_loader
44

5-
__version__ = '0.3.6.9'
6-
__author__ = "William Falcon",
7-
__author_email__ = "waf2107@columbia.edu"
8-
__license__ = 'Apache-2'
9-
__homepage__ = 'https://github.com/williamFalcon/pytorch-lightning',
10-
__copyright__ = 'Copyright (c) 2018-2019, %s.' % __author__
11-
__doc__ = """
12-
The Keras for ML researchers using PyTorch
13-
"""
14-
155
__all__ = [
166
'Trainer',
177
'LightningModule',

‎setup.py

+26-25
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
#!/usr/bin/env python
22

33
# Always prefer setuptools over distutils
4-
from os import path
5-
from setuptools import setup
6-
7-
import pytorch_lightning
8-
9-
PATH_HERE = path.abspath(path.dirname(__file__))
10-
11-
with open(path.join(PATH_HERE, 'requirements.txt'), encoding='utf-8') as fp:
12-
requirements = [rq.rstrip() for rq in fp.readlines() if not rq.startswith('#')]
4+
from setuptools import setup, find_packages
135

146
# https://packaging.python.org/guides/single-sourcing-package-version/
7+
158
# http://blog.ionelmc.ro/2014/05/25/python-packaging/
16-
setup(
17-
name="pytorch-lightning",
18-
version=pytorch_lightning.__version__,
19-
description=pytorch_lightning.__doc__,
20-
author=pytorch_lightning.__author__,
21-
author_email=pytorch_lightning.__author_email__,
22-
url=pytorch_lightning.__homepage__,
23-
license=pytorch_lightning.__license__,
24-
packages=['pytorch_lightning'],
259

26-
long_description=open("README.md", encoding="utf-8").read(),
10+
# https://packaging.python.org/discussions/install-requires-vs-requirements/
11+
# keep the meta-data here for simplicity in reading this file... it's not obvious
12+
# what happens and to non-engineers they won't know to look in init...
13+
# the goal of the project is simplicity for researchers, don't want to add too much
14+
# engineer specific practices
15+
setup(
16+
name='pytorch-lightning',
17+
version='0.3.6.9',
18+
description='The Keras for ML researchers using PyTorch',
19+
author='William Falcon',
20+
author_email='waf2107@columbia.edu',
21+
url='https://github.com/williamFalcon/pytorch-lightning',
22+
download_url='https://github.com/williamFalcon/pytorch-lightning',
23+
license='Apache-2',
24+
packages=find_packages(),
25+
long_description=open('README.md', encoding='utf-8').read(),
2726
long_description_content_type='text/markdown',
28-
2927
include_package_data=True,
3028
zip_safe=False,
31-
32-
keywords=["deep learning", "pytorch", "AI"],
33-
python_requires=">=3.6",
34-
install_requires=requirements,
35-
29+
keywords=['deep learning', 'pytorch', 'AI'],
30+
python_requires='>=3.6',
31+
install_requires=[
32+
'torch>=1.1.0',
33+
'tqdm',
34+
'test-tube>=0.6.7.6',
35+
'pandas>=0.20.3',
36+
],
3637
classifiers=[
3738
'Environment :: Console',
3839
'Natural Language :: English',

0 commit comments

Comments
 (0)
Failed to load comments.