Skip to content

Commit d811b58

Browse files
committed
Seperate requirements into seperate file
1 parent 34c3998 commit d811b58

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mako
2+
pyyaml
3+
ushlex
4+
jsonxs

setup.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
from distutils.core import setup
66
from setuptools import find_packages
77

8+
def get_requirements():
9+
with open('requirements.txt', 'r') as f:
10+
return f.read().splitlines()
811

912
def get_long_description():
1013
path = os.path.join(os.path.dirname(__file__), 'README.md')
@@ -48,12 +51,7 @@ def get_data_files(path, strip='', prefix=''):
4851
strip='src',
4952
prefix='lib/'),
5053
zip_safe=False,
51-
install_requires=[
52-
'mako',
53-
'pyyaml',
54-
'ushlex',
55-
'jsonxs',
56-
],
54+
install_requires=get_requirements(),
5755
scripts=[
5856
'src/ansible-cmdb',
5957
],

0 commit comments

Comments
 (0)