- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
19 lines (17 loc) · 501 Bytes
/
Copy pathsetup.py
File metadata and controls
19 lines (17 loc) · 501 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
fromsetuptoolsimportsetup, find_packages
defget_git_version():
"""
Use git describe to get version based on git tag.
"""
fromsubprocessimportcheck_output
output=check_output(['git', 'describe', '--dirty',]).decode()
version=output[:-1] # had trailing newline
returnversion
setup(name='utils',
version=get_git_version(),
description='Utils',
author='Achim Randelhoff',
packages=find_packages(),
install_requires=[
],
)