-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
Pants: add dependencies to the st2common python_distribution
#5925
Merged
Commits on Mar 10, 2023
-
fix: packaging migration scripts
Running `./pants package ::` results in the following error. We included the v3.5 migration script in `setup.py` and in the `pants_distribution`. But, that script does not end in `.py`, so the `python_sources` target did not "own" it. In order to correct this, we explicitly include the extension-less binaries. > ValueError: The explicit dependency > `st2common/bin/migrations/v3.5/st2-migrate-db-dict-field-values` of > the target at `st2common:st2common` does not provide enough address > parameters to identify which parametrization of the dependency target > should be used. > Target `st2common/bin/migrations/v3.5:v3.5` can be addressed as: > * st2common/bin/migrations/v3.5:v3.5 > * st2common/bin/migrations/v3.5/__init__.py > * st2common/bin/migrations/v3.5/st2_migrate_db_dict_field_values.py In fixing this, I also noticed that we did not include the v3.8 migration script, so I marked that executable and included it as well.
Configuration menu - View commit details
-
Copy full SHA for f2b8644 - Browse repository at this point
Copy the full SHA f2b8644View commit details -
Configuration menu - View commit details
-
Copy full SHA for c10ca30 - Browse repository at this point
Copy the full SHA c10ca30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3913bde - Browse repository at this point
Copy the full SHA 3913bdeView commit details -
chore: note known dead code in st2common/BUILD
This should probably be deleted. But for now, we just leave a note about why it is not included in the st2common python_distribution.
Configuration menu - View commit details
-
Copy full SHA for 7fbfa5f - Browse repository at this point
Copy the full SHA 7fbfa5fView commit details -
Define API dependencies on code that should be in st2common wheel
Since this code is not imported by one of our scripts or entry points, we need to add an explicit dependency. This starts with several things that form part of the official "API" of the st2common library.
Configuration menu - View commit details
-
Copy full SHA for ae69358 - Browse repository at this point
Copy the full SHA ae69358View commit details -
bugfix: remove bad arg in st2common/bin/migrations/v3.8/st2-drop-st2e…
…xporter-marker-collections
Configuration menu - View commit details
-
Copy full SHA for 5703195 - Browse repository at this point
Copy the full SHA 5703195View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40db4a1 - Browse repository at this point
Copy the full SHA 40db4a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fa16d8 - Browse repository at this point
Copy the full SHA 2fa16d8View commit details
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.