Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Non-user-facing: setup.py dev in pip checkout will run setup.py devel…

…op and then cause test_requires requirements to be installed
  • Loading branch information...
commit 05ebae2a2083249581b07646e82fab068298eb75 1 parent 0d08f26
Chris McDonough mcdonc authored
Showing with 12 additions and 2 deletions.
  1. +1 −0  AUTHORS.txt
  2. +3 −0  setup.cfg
  3. +8 −2 setup.py
1  AUTHORS.txt
View
@@ -56,3 +56,4 @@ Vitaly Babiy
W Trevor King
Wil Tan
Hsiaoming Yang
+Chris McDonough
3  setup.cfg
View
@@ -1,2 +1,5 @@
[nosetests]
where=tests
+
+[aliases]
+dev = develop easy_install pip[testing]
10 setup.py
View
@@ -30,6 +30,8 @@ def find_version(*file_paths):
long_description = (parts[0] + long_description + parts[2] +
"\n\n" + read("docs", "news.txt"))
+tests_require = ['nose', 'virtualenv>=1.7', 'scripttest>=1.1.1', 'mock']
+
setup(name="pip",
version=find_version('pip', '__init__.py'),
description="pip installs packages. Python packages. An easy_install replacement",
@@ -55,5 +57,9 @@ def find_version(*file_paths):
packages=['pip', 'pip.commands', 'pip.vcs'],
entry_points=dict(console_scripts=['pip=pip:main', 'pip-%s=pip:main' % sys.version[:3]]),
test_suite='nose.collector',
- tests_require=['nose', 'virtualenv>=1.7', 'scripttest>=1.1.1', 'mock'],
- zip_safe=False)
+ tests_require=tests_require,
+ zip_safe=False,
+ extras_require = {
+ 'testing':tests_require,
+ },
+ )
Please sign in to comment.
Something went wrong with that request. Please try again.