Skip to content

Commit d373026

Browse files
committed
Use requirements file
1 parent dae0a20 commit d373026

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
setuptools
2+
requests
3+
numpy
4+
pytest
5+
matplotlib

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/usr/bin/env python
2-
#
32

43
'''The setup and build script for the lightning-python library.'''
54

65
__author__ = 'github@mathisonian.com'
76
__version__ = '1.0.5'
87

9-
10-
118
# The base package metadata to be used by both distutils and setuptools
129
METADATA = dict(
1310
name = "lightning-python",
@@ -22,15 +19,11 @@
2219
)
2320

2421
# Extra package metadata to be used only if setuptools is installed
25-
26-
27-
2822
SETUPTOOLS_METADATA = dict(
29-
install_requires = ['setuptools', 'requests', 'numpy', 'matplotlib'],
23+
install_requires = open('requirements.txt').read().split(),
3024
include_package_data = True
3125
)
3226

33-
3427
def Read(file):
3528
return open(file).read()
3629

0 commit comments

Comments
 (0)