Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 960cc9e

Browse files
committed
add install_requires from requirements.txt
1 parent d5796e3 commit 960cc9e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pathlib
2+
contextlib2
3+
argparse

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def read(fname):
1111
return open(os.path.join(__location__, fname)).read()
1212

1313

14+
def get_install_requirements(path):
15+
content = open(os.path.join(__location__, path)).read()
16+
return [req for req in content.split('\\n') if req != '']
17+
18+
1419
def setup_package():
1520
setuptools.setup(
1621
name='nsenter',
@@ -34,7 +39,8 @@ def setup_package():
3439
'Operating System :: POSIX :: Linux',
3540
'License :: OSI Approved :: Apache Software License'],
3641
test_suite='tests',
37-
setup_requires=['flake8', 'pathlib', 'contextlib2', 'argparse'],
42+
setup_requires=['flake8'],
43+
install_requires=get_install_requirements('requirements.txt'),
3844
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
3945
entry_points={'console_scripts': ['nsenter = nsenter:main']}
4046
)

0 commit comments

Comments
 (0)