-
Notifications
You must be signed in to change notification settings - Fork 95
/
setup.py
executable file
·72 lines (58 loc) · 2.18 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
import os
from pathlib import Path
from setuptools import setup, find_packages, Command
ROOTDIR = Path(__file__).parent
__version__ = None # Overwritten by executing version.py.
with open(ROOTDIR / "puncover/version.py") as f:
exec(f.read())
with open(ROOTDIR / "requirements-test.txt") as f:
tests_require = list(filter(lambda x: not x.strip().startswith('-r'), f.readlines()))
with open(ROOTDIR / "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.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/hbehrens/puncover",
download_url="https://github.com/hbehrens/puncover/tarball/%s" % __version__,
author="Heiko Behrens",
maintainer="Victor Chavez",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_packages(exclude=["tests", "tests.*"]),
include_package_data=True,
zip_safe=False,
entry_points={"console_scripts": ["puncover = puncover.puncover:main"]},
install_requires=requires,
tests_require=tests_require,
cmdclass={
"clean": CleanCommand,
},
python_requires=">=3.7",
)