-
-
Notifications
You must be signed in to change notification settings - Fork 782
Fix PYTHONPATH handling for Python runner actions using --python3 flag #4666
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ab7a87f
Fix a bug with base system Python 3 lib directory (e.g.
Kami c4cb87a
Add unit tests for it.
Kami 346910f
Add changelog entry for it.
Kami b4ec6d9
Merge branch 'master' into python3_pythonpath_fix
Kami d45222f
Merge branch 'master' into python3_pythonpath_fix
Kami 8cc9ec8
Merge branch 'python3_pythonpath_fix' of github.com:StackStorm/st2 in…
Kami 9d05b43
Fix lint.
Kami bfc0e93
Add some comments to the hello_st2 pack metadata file.
Kami 20b7c53
Merge branch 'master' into python3_pythonpath_fix
Kami 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 hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,26 @@ | ||
| --- | ||
| # Pack reference. It can only contain letters, digits and underscores. | ||
| ref: hello_st2 | ||
| # User-friendly pack name. If this attribute contains spaces or any other special characters, then | ||
| # the "ref" attribute must also be specified (see above). | ||
| name: Hello StackStorm | ||
| # User-friendly pack description. | ||
| description: Simple pack containing examples of sensor, rule, and action. | ||
| # Keywords which are used when searching for packs. | ||
| keywords: | ||
| - example | ||
| - test | ||
| # Pack version which must follow semver format (<major>.<minor>.<patch> e.g. 1.0.0) | ||
| version: 0.1.0 | ||
| # A list of major Python versions pack is tested with and works with. | ||
| python_versions: | ||
| - "2" | ||
| - "3" | ||
| # Name of the pack author. | ||
| author: StackStorm, Inc. | ||
| # Email of the pack author. | ||
| email: info@stackstorm.com | ||
| # Optional list of additional contributors to the pack. | ||
| contributors: | ||
| - "John Doe1 <john.doe1@gmail.com>" | ||
| - "John Doe2 <john.doe2@gmail.com>" |
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.
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'm not too happy about this approach, but from the research I did, I couldn't come up with a better one.
I will also look into it more when adding end to end tests and testing it under various Python 3 versions on all the supported versions to verify it indeed covers all the scenarios and works correctly on all the platforms.