1

パッケージに新しいGitHub リリースを使用することに移行したいと考えています。私は自分が何をdownload_url必要としているのか理解できません。バージョンは、 、、および1.3.5のさまざまな化身を試しましたが、役に立ちませんでした。 releases/tag/1.3.5archive/1.3.5archive/1.3.5#egg=v1.3.5

私の質問は、PEP 438 を読んでいるということです。それが探していることはわかっていsimple-history-v1.3.5.EXTますが、setup.py に特定の URL を使用させることはできますか?

from setuptools import find_packages, setup
from simple_history import __version__

base_url = 'https://github.com/pivotal-energy-solutions/django-simple-history'

setup(name='simple_history',
      version=__version__,
      description='Store Django model history with the ability to revert back to a '
                  'specific change at any time. This includes capturing request.user',
      author='Steven Klass',
      author_email='sklass@pivotalenergysolutions.com',
      url=base_url,
      download_url='{0}/archive/{1}.tar.gz'.format(base_url, __version__),
      license='Apache License (2.0)',
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Web Environment',
          'Framework :: Django',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: Apache Software License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Software Development',
      ],
      packages=find_packages(exclude=['tests', 'tests.*']),
      package_data={'simple_history': ['static/js/*.js', 'templates/simple_history/*.html']},
      include_package_data=True,
      zip_safe=False,
      requires=['django (>=1.2)', ],
)

簡単なインストールを行うと、それが見つかったと表示されますが、常にバージョン 1.1 に戻ります。誰かが私の問題を教えてください。

$ easy_install -vvv simple_history
Searching for simple-history
Reading http://pypi.python.org/simple/simple_history/
Reading https://github.com/pivotal-energy-solutions/django-simple-history
Found link: https://github.com/pivotal-energy-solutions/django-simple-history/archive/master.zip
Found link: https://github.com/pivotal-energy-solutions/django-simple-history/archive/1.3.5.tar.gz
Found link: https://github.com/pivotal-energy-solutions/django-simple-history/archive/v1.3.3.tar.gz
Found link: https://pypi.python.org/packages/source/s/simple_history/simple_history-1.1.tar.gz#md5=b4c4bb2512904d7826a75f58cc9df651
Found link: https://pypi.python.org/packages/source/s/simple_history/simple_history-v1.3.3.tar.gz#md5=1564e23e982553b76a4ed7328fb5b812
Best match: simple-history 1.1
4

1 に答える 1