From 199c6d5c5d38cd45e5601e31900990c5947d6020 Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 24 Jul 2020 10:42:51 +0200 Subject: [PATCH] added automated git version for setup.py --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index df374e0..9f24fdd 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +import subprocess + from os import path from setuptools import setup, find_packages @@ -13,7 +15,7 @@ def load_file(filename): setup( name='mkdocs-pdf-with-js-plugin', - version='0.1.0', + version=subprocess.check_output(["git", "describe", "--tags"]).decode().strip(), description='A MkDocs plugin that exports your documentation as PDF with rendered JavaScript content.', long_description=load_file('README.md'), long_description_content_type="text/markdown",