-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (27 loc) · 969 Bytes
/
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
from setuptools import setup, find_packages
import subprocess
def get_version():
p = subprocess.run("git describe | grep -o -E \"v[0-9]+(\\.[0-9]+)+(-[0-9]+)?\" -", shell=True, check=True,
universal_newlines=True, stdout=subprocess.PIPE)
v = p.stdout.rstrip()
return v.replace("-", ".dev", 1).replace("v", "", 1)
version = get_version()
print("Package version: " + version)
setup(
name='dsaam',
version=version,
description='The DSAAM python library',
#long_description="",
url='https://redmine.laas.fr/projects/dsaam',
author='Christophe Reymann',
author_email='[email protected]',
license='BSD-3-Clause',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.5',
],
package_dir={'':'python'},
packages=find_packages(where='python'),
install_requires = [],
)