-
Notifications
You must be signed in to change notification settings - Fork 247
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
CIBW_ENVIRONMENT #21
Merged
Merged
CIBW_ENVIRONMENT #21
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
38f89e9
Added test for environment and a script for local running
joerick 6aba5f8
Add a Linux implementation of environment
joerick 573098f
Mac/Windows stubs and test case for environment inheritance
joerick fd385a9
Add some tests for the environment functionality
joerick 5ae4da6
Add environment code satisfying unit test
joerick 9091533
Run the unit tests in CI
joerick fcb681d
Use parse_environment in the main code
joerick f64cb35
Merge remote-tracking branch 'origin/master' into environment
joerick f56ddda
Make shell evals work and add tests for that
joerick 7229dde
Windows uses a different pathsep so have to use that in the test
joerick 60ed370
Semicolons need quoting
joerick a7c7a58
Reducing code duplication in bin/run_test.py and bin/run_tests.py
YannickJadoul 3188c97
Fixing 'ValueError: Attempted relative import in non-package'
YannickJadoul 93d2a59
Making call from run_tests to run_test subprocess.check_call
YannickJadoul be474fd
Fix string splitting for the env string
joerick b18684a
Merge branch 'environment' of github.com:joerick/cibuildwheel into en…
joerick 34e8ee0
Fix empty env string case
joerick 7c41632
Add CIBW_ENVIRONMENT to README and reorder options
joerick 523dfc0
Fix some linter warnings
joerick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't know if there is a better way of doing this 'import from the same folder'?
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.
No, there isn't. Also since these are utility scripts I'd prefer using the shell interface instead, something like
subprocess.check_call([sys.executable, 'bin/run_test.py', arg1, arg2])
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.
There you go, then. I'd chosen for this such that the whole argument parsing (and extra output 'Project built successfully.') was not executed every time.
Have a look, maybe the
if __name__ == '__main__':
construction was also unnecessary, then.