forked from COVESA/vss-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (25 loc) · 1.08 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
#!/usr/bin/env python3
from setuptools import setup, find_packages
import subprocess
# Use tag as version, *if* it is a tagged commit...
r = subprocess.run(['git', 'tag', '--points-at=HEAD'], stdout=subprocess.PIPE)
version = r.stdout.rstrip().decode('UTF-8')
# ...otherwise, use abbreviated git commit hash
if version == '':
r = subprocess.run(['git', 'rev-parse', '--short=8', 'HEAD'], stdout=subprocess.PIPE)
version ='3.1.dev+' + r.stdout.rstrip().decode('UTF-8')
setup(
name='vss-tools',
version=version,
description='COVESA Vehicle Signal Specification tooling.',
url='https://github.com/COVESA/vss-tools',
license='Mozilla Public License v2',
packages=find_packages(exclude=('tests', 'contrib')),
scripts=['vspec2csv.py', 'vspec2x.py', 'vspec2franca.py', 'vspec2binary.py', 'vspec2json.py','vspec2ddsidl.py', 'vspec2yaml.py', 'contrib/vspec2protobuf.py'],
python_requires='>=3.8',
install_requires=['pyyaml>=5.1', 'anytree>=2.8.0', 'deprecation>=2.1.0'],
tests_require=['pytest>=2.7.2'],
package_data={'vspec': [
'config.yaml'
]},
)