Skip to content

Commit

Permalink
Give us information about setuptools in --version
Browse files Browse the repository at this point in the history
Avoid 0.6 series of setuptools - pkg_resources is broken on those versions

Fixes pypa#85
  • Loading branch information
sigmavirus24 committed Jan 4, 2015
1 parent b393b24 commit 77ebef6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@


install_requires = [
"requests >= 2.0",
"pkginfo",
"requests >= 2.0",
"setuptools >= 0.7.0",
]

if sys.version_info[:2] < (2, 7):
Expand Down
4 changes: 3 additions & 1 deletion twine/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import argparse
import pkg_resources
import setuptools

import requests
import pkginfo
Expand All @@ -28,11 +29,12 @@ def _registered_commands(group='twine.registered_commands'):


def dep_versions():
return 'pkginfo: {0}, requests: {1}'.format(
return 'pkginfo: {0}, requests: {1}, setuptools: {2}'.format(
pkginfo.Installed(pkginfo).version,
# __version__ is always defined but requests does not always have
# PKG-INFO to read from
requests.__version__,
setuptools.__version__,
)


Expand Down

0 comments on commit 77ebef6

Please sign in to comment.