Commits

Ares  committed 8424ec3

Use Pypi to downloading

  • Participants
  • Parent commits c584f08

Comments (0)

Files changed (1)

 import os
 import setuptools
 
-URL = 'http://bitbucket.org/ares/repozewhatpluginsredis/src/'
+NAME = 'repoze.what.plugins.redis'
+URL = 'http://bitbucket.org/ares/repozewhatpluginsredis/'
 
 # Path of actual directory.
 _here = os.path.abspath(os.path.dirname(__file__))
 
 readme = _file.read()
 version = open(os.path.join(_here, 'doc', 'VERSION')).readline().rstrip()
-download_url=URL + 'get/' + version + '.zip'  #'.gz'
+download_url=URL + 'get/' + ''.join(NAME.split('.')) + '-' + version + '.zip'  #'.gz'
 
 setuptools.setup(
       package_dir={'': 'lib'},
       zip_safe=False,
 
       # Metadata for upload to PyPI.
-      name='repoze.what.plugins.redis',
+      name=NAME,
       version=version,
       author='Jonas Melian',
       author_email='devel@jonasmelian.com',
       description=__doc__,
       long_description=readme,
       url=URL,
-      download_url=download_url,
+#      download_url=download_url,
       keywords=('web application server wsgi authorization redis repoze'),
       license='Apache License, Version 2.0',
       classifiers=['Development Status :: 4 - Beta',