Store the peer rank as an attribute and recalculate it automatically.
[quix0rs-apt-p2p.git] / setup.py
index 362d38ece2176608f4662c415d236a1046248a12..189af152c34d87574d967ab46fa443afc8536c85 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -3,15 +3,23 @@
 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",
+    name = "apt-p2p",
+    version = c.full_version,
     author = "Cameron Dale",
     author_email = "<camrdale@gmail.com>",
-    url = "http://www.camrdale.org/apt-dht.html",
+    url = "http://www.camrdale.org/apt-p2p.html",
     license = "GPL",
 
-    packages = ["apt_dht", "apt_dht_Khashmir"],
+    packages = ["apt_p2p", "apt_p2p_Khashmir"],
 
-    scripts = ['apt-dht.py']
+    scripts = ['apt-p2p.py']
     )