Update package versioning 94/6594/1
authorAdam Israel <adam.israel@canonical.com>
Mon, 1 Oct 2018 14:35:42 +0000 (10:35 -0400)
committerAdam Israel <adam.israel@canonical.com>
Mon, 1 Oct 2018 14:35:42 +0000 (10:35 -0400)
Update the package versioning to include git hash

Signed-off-by: Adam Israel <adam.israel@canonical.com>
setup.py

index 1450a15..09c0bdf 100644 (file)
--- a/setup.py
+++ b/setup.py
 #     See the License for the specific language governing permissions and
 #     limitations under the License.
 
-from pathlib import Path
 from setuptools import setup, find_packages
 
 setup(
     name='N2VC',
-    version=0.1,
+    version_command=('git describe --match v* --tags --long --dirty',
+                     'pep440-git-full'),
     packages=find_packages(
         exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
     install_requires=[