aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-05 18:32:38 +0200
committerJauhien Piatlicki (jauhien) <piatlicki@gmail.com>2013-09-05 18:32:38 +0200
commit5c6b3a04afb268653b3595026e100bbff5084a50 (patch)
tree7ced837a9efb2f376cc0cab683cfbb22c5e1bc56
parentgs_db_tool/gs_db_tool: pass package to lambda (diff)
downloadg-sorcery-5c6b3a04afb268653b3595026e100bbff5084a50.tar.gz
g-sorcery-5c6b3a04afb268653b3595026e100bbff5084a50.tar.bz2
g-sorcery-5c6b3a04afb268653b3595026e100bbff5084a50.zip
pypi: use realname and realversion
-rw-r--r--gs_pypi/ebuild.py7
-rw-r--r--gs_pypi/pypi_db.py3
2 files changed, 7 insertions, 3 deletions
diff --git a/gs_pypi/ebuild.py b/gs_pypi/ebuild.py
index d3f5342..666b55f 100644
--- a/gs_pypi/ebuild.py
+++ b/gs_pypi/ebuild.py
@@ -24,8 +24,9 @@ class PypiEbuildWithoutDigestGenerator(DefaultEbuildGenerator):
def __init__(self, package_db):
vars_before_inherit = \
- [{"name" : "repo_uri", "value" : 'http://pypi.python.org/packages/source/${PN:0:1}/${PN}/'},
- {"name" : "sourcefile", "value" : '${P}.tar.gz'}, {"name" : "python_compat", "raw" : True}]
+ ["realname", "realversion",
+ {"name" : "repo_uri", "value" : 'http://pypi.python.org/packages/source/${REALNAME:0:1}/${REALNAME}/'},
+ {"name" : "sourcefile", "value" : '${REALNAME}-${REALVERSION}.tar.gz'}, {"name" : "python_compat", "raw" : True}]
inherit = ["gs-pypi"]
@@ -49,7 +50,7 @@ class PypiEbuildWithDigestGenerator(DefaultEbuildGenerator):
vars_after_description = \
["homepage",
- {"name" : "src_uri", "value" : 'http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz'}]
+ {"name" : "src_uri", "value" : 'http://pypi.python.org/packages/source/${REALNAME:0:1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz'}]
vars_after_keywords = \
[]
diff --git a/gs_pypi/pypi_db.py b/gs_pypi/pypi_db.py
index 188be01..a9addea 100644
--- a/gs_pypi/pypi_db.py
+++ b/gs_pypi/pypi_db.py
@@ -251,6 +251,9 @@ class PypiDBGenerator(DBGenerator):
'name' : 'Jauhien Piatlicki'}]
ebuild_data = {}
+ ebuild_data["realname"] = package
+ ebuild_data["realversion"] = version
+
ebuild_data["description"] = description
ebuild_data["longdescription"] = description
ebuild_data["dependencies"] = dependencies