-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
102 lines (89 loc) · 3.43 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
orig_content = open(os.path.join(os.path.dirname(__file__), fname)).readlines()
content = ""
in_raw_directive = 0
for line in orig_content:
if in_raw_directive:
if not line.strip():
in_raw_directive = in_raw_directive - 1
continue
elif line.strip() == '.. raw:: latex':
in_raw_directive = 2
continue
content += line
return content
core_dependencies = [
'six',
'prettytable'
]
install_requires = core_dependencies + ['wheel']
setup_requires = ['setuptools_scm']
doc_requires = setup_requires + ['sphinx', 'sphinx-argparse', 'alabaster']
test_requires = doc_requires + ['pytest', 'pytest-cov', 'coveralls[yaml]']
build_requires = test_requires + ['doit', 'pyinstaller']
publish_requires = build_requires + ['twine', 'pygithub']
setup(
name="fpvgcc",
use_scm_version={"root": ".", "relative_to": __file__},
author="Chintalagiri Shashank",
author_email="[email protected]",
description="Analysing code footprint on embedded microcontrollers "
"using GCC generated Map files",
long_description='\n'.join([read('README.rst'), read('CHANGELOG.rst')]),
long_description_content_type='text/x-rst',
keywords="utilities",
url="https://github.com/ebs-universe/fpv-gcc",
project_urls={
'Documentation': 'https://fpvgcc.readthedocs.io/en/latest',
'Bug Tracker': 'https://github.com/ebs-universe/fpv-gcc/issues',
'Source Repository': 'https://github.com/ebs-universe/fpv-gcc',
},
packages=find_packages('src'),
package_dir={'': 'src'},
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Utilities',
"Topic :: Software Development :: Embedded Systems",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Environment :: Console",
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'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',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requires,
setup_requires=setup_requires,
extras_require={
'docs': doc_requires,
'tests': test_requires,
'build': build_requires,
'publish': publish_requires,
'dev': build_requires,
},
platforms='any',
entry_points={
'console_scripts': ['fpvgcc=fpvgcc.cli:main'],
},
include_package_data=True
)