forked from HBehrens/puncover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·46 lines (36 loc) · 1.3 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages, Command
__version__ = None # Overwritten by executing version.py.
with open('puncover/version.py') as f:
exec (f.read())
with open('requirements.txt') as f:
requires = f.readlines()
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
# http://stackoverflow.com/a/3780822/196350
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
setup(name='puncover',
version=__version__,
description='Analyses C/C++ build output for code size, static variables, and stack usage.',
long_description=open('README.rst').read(),
url='https://github.com/hbehrens/puncover',
download_url='https://github.com/hbehrens/puncover/tarball/%s' % __version__,
author='Heiko Behrens',
license='MIT',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
entry_points={'console_scripts': ['puncover = puncover.puncover:main']},
install_requires=requires,
test_suite='nose.collector',
cmdclass={
'clean': CleanCommand,
}
)