diff --git a/make_deb.py b/make_deb.py index 2a860c0..96eb05c 100755 --- a/make_deb.py +++ b/make_deb.py @@ -8,10 +8,13 @@ from email.utils import formatdate DEBVERSION = "0.5" -#rev = subprocess.check_output("bzr version-info --check-clean --custom --template='{revno}'", shell=True) -#bzrstring = "bzr" + str(rev).replace("'","") -vcsstring = "gitxxx" +rev = subprocess.check_output("git log -1 --format=\'%ad--%h\' --date=short", shell=True) +rev = rev.strip() +rev = str(rev).replace("'","") +#rev = rev.replace(" ", "T", 1) +#ev = rev.replace(" ", "Z", 1) +vcsstring = "git" + rev def get_changelog(progname, version, changelog, date): """ diff --git a/setup.py b/setup.py index 7f4244a..fc157bf 100644 --- a/setup.py +++ b/setup.py @@ -4,11 +4,11 @@ from distutils.command.install_data import install_data import make_deb -setup (name = "python-ur", +setup (name = "python-urx", version = make_deb.vcsstring, description = "Python library to control an UR robot", author = "Olivier Roulet-Dubonnet", - url = 'http://launchpad.net/XXX', + url = 'https://github.com/oroulet/python-urx', packages = ["urx"], provides = ["urx"], license = "GNU General Public License v3",