From: Cameron Dale Date: Thu, 21 Feb 2008 19:10:38 +0000 (-0800) Subject: Automatically set the version in setup.py from the changelog. X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=commitdiff_plain;h=e1b99a7d84fce8e84e3a6c30fd40db18b4f0b5ad Automatically set the version in setup.py from the changelog. --- diff --git a/debian/control b/debian/control index 8f97946..b10043f 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Cameron Dale Homepage: http://www.camrdale.org/apt-dht.html Standards-Version: 3.7.3 Build-Depends: debhelper (>= 5.0.37.2) -Build-Depends-Indep: python-dev, python-support (>= 0.5.4), docbook-to-man +Build-Depends-Indep: python-dev, python-support (>= 0.5.4), docbook-to-man, python-debian (>= 0.1.4) Vcs-Git: git://git.camrdale.org/git/apt-dht.git Vcs-Browser: http://git.camrdale.org/?p=apt-dht.git;a=summary XS-Dm-Upload-Allowed: yes diff --git a/setup.py b/setup.py index 362d38e..664f390 100755 --- a/setup.py +++ b/setup.py @@ -3,9 +3,17 @@ import sys from distutils.core import setup +from debian_bundle import changelog + +f = open('debian/changelog') +data = f.read() +f.close() +c = changelog.Changelog(file=data, max_blocks=1) +del data + setup( name = "apt-dht", - version = "0.0.0", + version = c.full_version, author = "Cameron Dale", author_email = "", url = "http://www.camrdale.org/apt-dht.html",