5
我正在嘗試使用pip安裝http://pypi.python.org/pypi/django-crowdsourcing/1.1.21。我越來越pip找不到最新版本的pypi項目
$ pip install django-crowdsourcing==1.1.21
Downloading/unpacking django-crowdsourcing==1.1.21
Could not find a version that satisfies the requirement django-crowdsourcing==1.1.21 (from versions:)
No distributions matching the version for django-crowdsourcing==1.1.21
如果我嘗試升級,它只會發現版本1.1.19。
$ pip install -v --upgrade django-crowdsourcing
Downloading/unpacking django-crowdsourcing
Using version 1.1.19 (newest of versions: 1.1.19, 1.1.18, 1.1.17, 1.1.16, 1.1.15, 1.1.14, 1.1.13, 1.1.12, 1.1.11, 1.1.10, 1.1.9, 1.1.8, 1.1.7, 1.1.6)
Downloading django-crowdsourcing-1.1.19.tar.gz (651Kb): 651Kb downloaded
...
Successfully installed django-crowdsourcing
它看起來像Django的衆包版本1.1.21有一些很好的標籤
$ hg tags
tip 289:8796aae85e34
1.1.21 288:2f39596495a7
1.1.20 281:fe00699aa3ff
1.1.19 278:17392ea8ea54
和setup.py
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
readme_file = os.path.join(os.path.dirname(__file__),
'README')
long_description = open(readme_file).read()
classifiers = [
'Development Status :: 4 - Beta',
'Framework :: Django',
'License :: OSI Approved :: MIT License']
setup(name='django-crowdsourcing',
version='1.1.21',
classifiers=classifiers,
description='Django app for collecting and displaying surveys.',
long_description=long_description,
author='Jacob Smullyan, Dave Smith',
author_email='[email protected]',
url='http://code.google.com/p/django-crowdsourcing/',
packages=['crowdsourcing', 'crowdsourcing.templatetags'],
license='MIT',
)
PyPI將正確的版本號清晰地知道1.1版本.21因爲這是什麼出現,當你去http://pypi.python.org/pypi/django-crowdsourcing/爲什麼皮普認爲版本1.1.19是最新版本?
編輯
不好意思,我忘了指出我的維護者。 @Matthew Schinckel是對的。下面是我所需要的兩個命令,這是我從一個教程發現我並沒有看到之前:http://wiki.python.org/moin/Distutils/Tutorial
$ python setup.py register
$ python setup.py sdist upload
最後一個Distutils鏈接已損壞。 – Eye 2013-01-09 10:08:41