forked from mercedes-benz/odxtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (44 loc) · 1.7 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
#! /usr/bin/env python3
#
# SPDX-License-Identifier: MIT
# Copyright (c) 2022 MBition GmbH
from setuptools import setup
from setuptools import find_packages
import pathlib
import re
cwd = pathlib.Path(__file__).parent
readme_text = (cwd / "README.md").read_text()
requires_list = (cwd/'requirements.txt').read_text().split("\n")
version_string = re.search(r"^__version__ = '(.*)'$",
(cwd / "odxtools" / "version.py").read_text(),
re.MULTILINE).group(1)
setup(name='odxtools',
version=version_string,
description='Utilities to work with the automotive diagnostics standard ODX.',
long_description=readme_text,
long_description_content_type='text/markdown',
author='Katrin Bauer, Andreas Lauser',
author_email='katrin.b.bauer@mbition.io, andreas.lauser@mbition.io',
url='https://github.com/Daimler/odxtools',
license='MIT',
project_urls={
'Bug Tracker': 'https://github.com/Daimler/odxtools/issues',
},
classifiers=[
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX'
],
keywords=['can', 'can bus', 'odx', 'pdx', 'obd', 'uds', 'automotive', 'diagnostics'],
packages=find_packages(exclude=['tests']),
python_requires='>=3.8',
include_package_data=True,
install_requires=requires_list,
test_suite='tests',
entry_points={
'console_scripts': ['odxtools=odxtools.__init__:_main']
})