Commit Graph

2 Commits

Author SHA1 Message Date
Monty Taylor 225e882322 Put test-requirements into an extra named 'test'
In bindep files we use a 'test' environment to indicate dependencies
that are needed for testing. Make the same thing available for our
python dependencies, allowing things like "pip install .[test]" or "pip
install shade[test]" to work.

Change-Id: If3ad8b6a79a8cab2f7434b73207f35384e8516ba
2017-12-06 11:01:52 +00:00
Robert Collins 4b1503849c Strip markers from test requirements.
Setuptools doesn't [yet] support markeres in tests_require parameters
to setup(). While we need to get that fixed, we also need to support
syncing marker constrained requirements from global-requirements.

Since version constraints are needed to successfully port to Python3
this won't be a long term viable solution: but few of our test-only
dependencies require version constraints, so we can do this in the
interim. The ones that do - such as python-mysql - we're either
moving away from, or centralising them into optional dependencies
on other packages where the tests_require limitation shouldn't apply.

Change-Id: I31adaf35c8d7b72fe3f8c9242cc356fe34d537e8
2015-06-19 13:58:42 +12:00