Skip to content

Commit

Permalink
added automated git version for setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
smaXtecStefan committed Jul 24, 2020
1 parent 82f9f39 commit 199c6d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import subprocess

from os import path
from setuptools import setup, find_packages

Expand All @@ -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",
Expand Down

0 comments on commit 199c6d5

Please sign in to comment.