use install_requires in setup.py

Bug #1308137 reported by Mat Lehmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python Fixtures
Fix Released
Wishlist
Robert Collins

Bug Description

easy_install and it's successors (buildout and I believe also pip) use the 'install_requires' parameter to setup instead of the 'requires' parameter.

Since python-fixtures only uses 'requires', 'testtools' is not installed as a dependency and running tests that use fixtures fails with an ImportError.

Changed in python-fixtures:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Robert Collins (lifeless) wrote :

Fixed by using pbr.

Changed in python-fixtures:
milestone: none → next
assignee: nobody → Robert Collins (lifeless)
status: Triaged → Fix Released
Revision history for this message
Lennart Regebro (lregebro) wrote :

Unfortunately the mock;python_version<'3.3' syntax in test-requirements.txt now breaks pip installs.

Revision history for this message
Robert Collins (lifeless) wrote :

Yes, it will do that if your pbr is < 1.2. or your pip is < 6.0. Unfortunately setuptools doesn't handle versioned setup_requires dependencies at all well, which is why I don't have one here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.