-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (32 loc) · 909 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
38
39
#!/usr/bin/env python
import subprocess
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
version = "0.0"
def _get_version_hash():
"""Talk to git and find out the tag/hash of our latest commit"""
try:
return (
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
.decode("utf-8")
.strip()
)
except subprocess.CalledProcessError:
print("Couldn't run git to get a version number for setup.py")
return version
setup(
name="propose",
version=_get_version_hash(),
description="Probabilistic Pose Estimation",
author="Paweł A. Pierzchlewicz",
author_email="[email protected]",
packages=find_packages(),
install_requires=[],
include_package_data=True,
package_data={
"": [
"*.yaml",
]
},
)