Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1189)

Issue 189580044: Introduce tox for testing multiple sets of deps.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 3 months ago by frankban
Modified:
9 years, 2 months ago
Reviewers:
mp+246761, bac, jeff.pihach
Visibility:
Public.

Description

Introduce tox for testing multiple sets of deps. Quickstart must be run on several platforms/Ubuntu series, each one with its own versions of the packages that Quickstart depends on. The tox utility is used for both: - handling those kind of separate scenarios; - creating the development virtual environments. The latter was previously done using virtualenv directly in the Makefile. The new infrastructure should be more flexible. Update the relevant parts of the Makefile, also handling the automatic installation of system dependencies. Implement the ability to calculate the requirements for the PyPI package automatically by parsing the tox.ini file. I am not really sure about the method I used (take a look at the setup.py file), but the alternative is to manually update those and violate DRY. I think we could give it a try and fall back to the manual approach if required. Also implement a correct behavior for "python setup.py test", which now runs all the tests. To test and QA this branch, run `make clean` and then follow what described in the HACKING.rst file, in the following paragraphs: - Creating a development environment - Testing and debugging the application - Requirements - Updating application and test dependencies Thank you! https://code.launchpad.net/~frankban/juju-quickstart/add-tox/+merge/246761 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : Introduce tox for testing multiple sets of deps. #

Total comments: 2

Patch Set 3 : Introduce tox for testing multiple sets of deps. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -171 lines) Patch
M .bzrignore View 1 chunk +3 lines, -1 line 0 comments Download
M HACKING.rst View 8 chunks +85 lines, -45 lines 0 comments Download
M MANIFEST.in View 1 chunk +5 lines, -4 lines 0 comments Download
M Makefile View 1 chunk +76 lines, -45 lines 0 comments Download
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
D requirements.pip View 1 chunk +0 lines, -31 lines 0 comments Download
A setup.cfg View 1 chunk +20 lines, -0 lines 0 comments Download
M setup.py View 1 chunk +110 lines, -22 lines 0 comments Download
D test-requirements.pip View 1 chunk +0 lines, -23 lines 0 comments Download
A tox.ini View 1 chunk +115 lines, -0 lines 0 comments Download

Messages

Total messages: 8
frankban
Please take a look.
9 years, 3 months ago (2015-01-16 18:11:48 UTC) #1
bac
LGTM. Did not try to QA yet. Tox may be very interesting for lots of ...
9 years, 3 months ago (2015-01-22 16:15:27 UTC) #2
benjamin.saller
On 2015/01/22 16:15:27, bac wrote: > LGTM. Did not try to QA yet. Tox may ...
9 years, 3 months ago (2015-01-22 16:40:37 UTC) #3
frankban
Please take a look. https://codereview.appspot.com/189580044/diff/1/HACKING.rst File HACKING.rst (right): https://codereview.appspot.com/189580044/diff/1/HACKING.rst#newcode356 HACKING.rst:356: parsing ``tox.ini``, dependencies must be ...
9 years, 2 months ago (2015-01-30 09:29:37 UTC) #4
bac
Code is LGTM with the one suggestion for the Makefile. QA OK on trusty On ...
9 years, 2 months ago (2015-01-30 15:38:52 UTC) #5
jeff.pihach
LGTM Thanks for all that this should help simplify testing quite a bit
9 years, 2 months ago (2015-01-30 15:57:01 UTC) #6
frankban
Thanks for the reviews! https://codereview.appspot.com/189580044/diff/20001/Makefile File Makefile (right): https://codereview.appspot.com/189580044/diff/20001/Makefile#newcode44 Makefile:44: On 2015/01/30 15:38:52, bac wrote: ...
9 years, 2 months ago (2015-01-30 16:34:21 UTC) #7
frankban
9 years, 2 months ago (2015-01-30 16:37:24 UTC) #8
*** Submitted:

Introduce tox for testing multiple sets of deps.

Quickstart must be run on several platforms/Ubuntu series,
each one with its own versions of the packages that
Quickstart depends on. The tox utility is used for both:
- handling those kind of separate scenarios;
- creating the development virtual environments.
The latter was previously done using virtualenv directly
in the Makefile. The new infrastructure should be
more flexible.

Update the relevant parts of the Makefile, also handling
the automatic installation of system dependencies.

Implement the ability to calculate the requirements
for the PyPI package automatically by parsing the
tox.ini file. I am not really sure about the method I
used (take a look at the setup.py file), but the 
alternative is to manually update those and violate DRY.
I think we could give it a try and fall back to the
manual approach if required.

Also implement a correct behavior for 
"python setup.py test", which now runs all the tests.

To test and QA this branch, run `make clean` and then 
follow what described in the HACKING.rst file, in the 
following paragraphs:
- Creating a development environment
- Testing and debugging the application
- Requirements
- Updating application and test dependencies

Thank you!

R=bac, benjamin.saller, jeff.pihach
CC=
https://codereview.appspot.com/189580044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b