This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
53 lines (43 loc) · 1.85 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python3
import inspect
import os
import setuptools
__location__ = os.path.join(os.getcwd(), os.path.dirname(inspect.getfile(inspect.currentframe())))
def read(fname):
return open(os.path.join(__location__, fname)).read()
def get_install_requirements(path):
content = open(os.path.join(__location__, path)).read()
return [req for req in content.split('\\n') if req != '']
def setup_package():
setuptools.setup(
name='nsenter',
version='0.3',
url='https://github.com/zalando/python-nsenter',
description='Enter kernel namespaces from Python',
author='Henning Jacobs',
author_email='henning.jacobs@zalando.de',
long_description=read('README.rst'),
license='Apache License 2.0',
keywords='docker container namespace kernel setns',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: Apache Software License'],
test_suite='tests',
setup_requires=['flake8'],
install_requires=get_install_requirements('requirements.txt'),
packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
entry_points={'console_scripts': ['nsenter = nsenter:main']}
)
if __name__ == '__main__':
setup_package()