-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
101 lines (94 loc) · 3.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
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
import os
import sys
from setuptools import find_packages, setup
with open(os.path.join("objutils", "version.py")) as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[-1].strip().strip('"')
break
install_reqs = [
"mako",
"six",
"construct",
"attrs >= 19.3.0",
"sortedcontainers",
"SQLAlchemy",
"Rich",
]
if sys.version_info.major == 2 or (sys.version_info.major == 3 and sys.version_info.minor < 4):
install_reqs.extend(["enum34", "mock"])
with open("docs/README.rst") as fh:
long_description = fh.read()
setup(
name="objutils",
version=version,
provides=["objutils"],
description="Objectfile library for Python",
long_description=long_description,
long_description_content_type="text/x-rst",
author="Christoph Schueler",
author_email="[email protected]",
url="http://github.com/christoph2/objutils",
packages=find_packages(),
# include_package_data=True,
extras_require={"docs": ["sphinxcontrib-napoleon"], "develop": ["bumpversion"]},
install_requires=install_reqs,
entry_points={
"console_scripts": [
"oj-elf-info = objutils.scripts.oj_elf_info:main",
"oj-elf-syms = objutils.scripts.oj_elf_syms:main",
"oj-hex-info = objutils.scripts.oj_hex_info:main",
"oj-elf-arm-attrs = objutils.scripts.oj_elf_arm_attrs:main",
"oj-elf-extract = objutils.scripts.oj_elf_extract:main",
# 'ticoff-dump = objutils.tools.ticoffdump:main'
],
},
tests_require=["pytest", "pytest-runner"],
test_suite="objutils.tests",
# data_files = [
# ('objutils/tests/ELFFiles', glob('objutils/tests/ELFFiles*.*')),
# ],
package_dir={"tests": "objutils/tests"},
license="GPLv2",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords=[
"hex files",
"intel hex",
"s19",
"srec",
"srecords",
"object files",
"map files",
"embedded",
"microcontroller",
"ECU",
"shf",
"rfc4194",
],
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"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 :: 3.13",
],
# package_data = {'tests': ['ELFFiles/*.*']},
)