Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Issue 2699063004: vpython: Add VirtualEnv creation package. (Closed)

Created:
3 years, 10 months ago by dnj
Modified:
3 years, 9 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

vpython: Add VirtualEnv creation package. Add the "venv" package, which is responsible for creating and managing collections of specified VirtualEnv environments. This includes the ability to resolve, create, load, and manage (pruning) an enviornment. This package includes unit tests which assert the correctness of the environment. These, in turn, leverage a few binaries (sadface). However, the binaries are small, and this seems like a reasonable thing to do given the subject under test. BUG=chromium:691818 TEST=unit Review-Url: https://codereview.chromium.org/2699063004 Committed: https://github.com/luci/luci-go/commit/af075cbfb85dba33b2fc91881e530700e3d74e46

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : remake binaries #

Total comments: 47

Patch Set 4 : updated from comments #

Patch Set 5 : no binaries, build wheels w/ bootstrap venv #

Patch Set 6 : only Python and VirtualEnv parts of the test may fail #

Total comments: 4

Patch Set 7 : update filesystem path #

Patch Set 8 : comments #

Patch Set 9 : fi missing python #

Patch Set 10 : shorten paths a bit #

Patch Set 11 : bootstrap straight out of tempdir #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1770 lines, -0 lines) Patch
A vpython/venv/.gitignore View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A vpython/venv/config.go View 1 2 3 4 5 6 1 chunk +290 lines, -0 lines 0 comments Download
A vpython/venv/prune.go View 1 2 3 4 5 6 7 1 chunk +161 lines, -0 lines 0 comments Download
A vpython/venv/system_posix.go View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A vpython/venv/system_windows.go View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A vpython/venv/test_data/README.md View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A vpython/venv/test_data/pants.src/.gitignore View 1 chunk +3 lines, -0 lines 0 comments Download
A vpython/venv/test_data/pants.src/pants/__init__.py View 1 1 chunk +4 lines, -0 lines 0 comments Download
A vpython/venv/test_data/pants.src/pants/pants.py View 1 1 chunk +5 lines, -0 lines 0 comments Download
A vpython/venv/test_data/pants.src/setup.cfg View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A vpython/venv/test_data/pants.src/setup.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
A vpython/venv/test_data/setup_check.py View 1 chunk +32 lines, -0 lines 0 comments Download
A vpython/venv/test_data/shirt.src/.gitignore View 1 chunk +3 lines, -0 lines 0 comments Download
A vpython/venv/test_data/shirt.src/setup.cfg View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A vpython/venv/test_data/shirt.src/setup.py View 1 1 chunk +13 lines, -0 lines 0 comments Download
A vpython/venv/test_data/shirt.src/shirt/__init__.py View 1 1 chunk +4 lines, -0 lines 0 comments Download
A vpython/venv/test_data/shirt.src/shirt/pants.py View 1 1 chunk +6 lines, -0 lines 0 comments Download
A vpython/venv/venv.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +493 lines, -0 lines 0 comments Download
A vpython/venv/venv_resources_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +438 lines, -0 lines 0 comments Download
A vpython/venv/venv_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +206 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
dnj
PTAL! This is part of a larger "vpython" CL set for the tool. More information ...
3 years, 10 months ago (2017-02-17 23:17:42 UTC) #3
dnj
(Ping) This one's next, but also the fun one :)
3 years, 10 months ago (2017-02-22 22:49:12 UTC) #4
iannucci
lgtm https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/config.go File vpython/venv/config.go (right): https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/config.go#newcode60 vpython/venv/config.go:60: // Python is the Python interpreter to use. ...
3 years, 10 months ago (2017-02-23 00:54:21 UTC) #5
dnj
https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/config.go File vpython/venv/config.go (right): https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/config.go#newcode60 vpython/venv/config.go:60: // Python is the Python interpreter to use. If ...
3 years, 10 months ago (2017-02-23 20:38:50 UTC) #6
iannucci
https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/prune.go File vpython/venv/prune.go (right): https://codereview.chromium.org/2699063004/diff/40001/vpython/venv/prune.go#newcode136 vpython/venv/prune.go:136: if err := e.deleteLocked(c); err != nil { On ...
3 years, 9 months ago (2017-03-11 00:37:34 UTC) #11
dnj
https://codereview.chromium.org/2699063004/diff/100001/vpython/venv/prune.go File vpython/venv/prune.go (right): https://codereview.chromium.org/2699063004/diff/100001/vpython/venv/prune.go#newcode30 vpython/venv/prune.go:30: // even if it is would otherwise be candidate ...
3 years, 9 months ago (2017-03-11 01:13:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2699063004/200001
3 years, 9 months ago (2017-03-11 07:02:47 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 07:07:49 UTC) #32
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://github.com/luci/luci-go/commit/af075cbfb85dba33b2fc91881e530700e3d74e46

Powered by Google App Engine
This is Rietveld 408576698