Skip to content
Snippets Groups Projects
Commit e07bae13 authored by Teake Nutma's avatar Teake Nutma
Browse files

Attempt to automate version numbers from git

parent c7ca4678
Branches
Tags
from setuptools import setup, find_packages
import subprocess
import os
import datetime
dir_path = os.path.dirname(os.path.realpath(__file__))
try:
version = subprocess.check_output(['git', '-C', dir_path, 'describe', '--tags', '--dirty', '--always'])
except subprocess.CalledProcessError:
date = datetime.datetime.now().strftime('%Y%m%d')
version = '0.1.dev-' + date
setup(
name='vcsinfo',
version='0.1.dev0',
version=version,
description='Python abstraction layer for getting info from VCSes sych as git',
url='https://gitlab.astro-wise.org/omegacen/vcsinfo',
license='LGPL-3.0+',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment