forked from pmuller/procfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·44 lines (39 loc) · 1.28 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
VERSION = [l for l in read('procfs/__init__.py').splitlines()
if l.startswith('__version__ =')][0].split("'")[1]
kw = {}
if sys.version_info >= (3,):
kw['use_2to3'] = True
setup(
name='procfs',
version=VERSION,
packages=find_packages(),
author='Philippe Muller',
author_email='[email protected]',
description='Python API for the Linux /proc virtual filesystem',
long_description=read('README.rst'),
license='BSD',
keywords='linux proc procfs system kernel',
url='https://github.com/pmuller/procfs',
platforms=['Linux'],
entry_points={
'console_scripts': [
'procfs = procfs.cli:run',
'procfsd = procfs.http:run',
]},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: System Administrators',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Operating System Kernels :: Linux',
'Topic :: Software Development :: Libraries :: Python Modules',
],
**kw
)