forked from memfault/puncover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·49 lines (39 loc) · 1.32 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
#!/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())
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=[
"Flask==0.10.1",
"mock==1.3.0",
"codecov==2.0.5",
"nose-cov==1.6",
],
tests_require=["nose"],
test_suite="nose.collector",
cmdclass={"clean": CleanCommand,},
)