-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resource / source bundling to pex cli #507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! thanks @dotordogh and @baroquebobcat!
tests/test_integration.py
Outdated
assert rc == 0 | ||
assert stdout == b'hello\n' | ||
|
||
def test_pex_resource_bundling(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: two newlines between functions
assuming that we read and
seems reasonable to me. filed: #508 |
tests/test_integration.py
Outdated
def test_pex_resource_bundling(): | ||
with temporary_dir() as output_dir: | ||
with temporary_dir() as input_dir, temporary_dir() as resources_input_dir: | ||
resource_file_path = os.path.join(resources_input_dir, 'greetings', 'greeting') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used?
@baroquebobcat @dotordogh looks like there's one failure remaining on the 3.6 shard here: https://travis-ci.org/pantsbuild/pex/jobs/388099378#L1324 looks like a unicode handling thing in python3.6. you should be able to get to a local repro by running:
|
Oddly enough, that didn't get me a repro. But, my local python 3.6 is 3.6.5. Could there be a difference between 3.6.3 and 3.6.5? |
I wouldn't think so.. I'm also on python 3.6.5 and I repro locally:
|
@baroquebobcat @dotordogh looks like this is still failing the same test on the 3.6 shard here - but that should be the last remaining blocker to landing this. noting that this patch fixes that locally for me:
|
looks good mod the expected pypy shard failure tracked in #497. thanks @dotordogh and @baroquebobcat! will cut pex 1.4.4 in #512 later today to unblock consumption of these changes in pants. |
Pex supports adding sources and resources directly via the PEXBuilder API, but not the CLI. This adds flags to allow adding sources and resources via directories.
Fixes #490
Fixes #491
I paired on this with @dotordogh!
Two questions came up while working on this