[skeleton] Use distname directly in setup.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 14 Sep 2016 17:12:37 +0200
changeset 11471 013d16661c7f
parent 11470 c0167228c12c
child 11472 bc04039acd2e
[skeleton] Use distname directly in setup.py distname is part of required metadata and modname cannot actually be used in place of it.
cubicweb/skeleton/setup.py.tmpl
--- a/cubicweb/skeleton/setup.py.tmpl	Wed Sep 14 17:03:46 2016 +0200
+++ b/cubicweb/skeleton/setup.py.tmpl	Wed Sep 14 17:12:37 2016 +0200
@@ -37,7 +37,7 @@
     exec(f.read(), __pkginfo__)
 
 # get required metadatas
-modname = __pkginfo__['modname']
+distname = __pkginfo__['distname']
 version = __pkginfo__['version']
 license = __pkginfo__['license']
 description = __pkginfo__['description']
@@ -50,7 +50,6 @@
     long_description = f.read()
 
 # get optional metadatas
-distname = __pkginfo__.get('distname', modname)
 data_files = __pkginfo__.get('data_files', None)
 dependency_links = __pkginfo__.get('dependency_links', ())