Browse Source

setup: use version as tag name in download url

Fabian Peter Hammerle 8 years ago
parent
commit
7189fcb843
2 changed files with 5 additions and 3 deletions
  1. 1 1
      LICENSE
  2. 4 2
      setup.py

+ 1 - 1
LICENSE

@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2016 Fabian Peter Hammerle
+Copyright (c) 2017 Fabian Peter Hammerle
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 4 - 2
setup.py

@@ -2,14 +2,16 @@ from setuptools import setup
 
 import glob
 
+version = '0.1'
+
 setup(
     name = '',
-    version = '0.1',
+    version = version,
     description = '',
     author = 'Fabian Peter Hammerle',
     author_email = 'fabian.hammerle@gmail.com',
     url = 'https://github.com/fphammerle/',
-    download_url = 'https://github.com/fphammerle//tarball/0.1',
+    download_url = 'https://github.com/fphammerle//tarball/{}'.format(version),
     keywords = [],
     classifiers = [],
     scripts = glob.glob('scripts/*'),