-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ adding installed_packages.json functionality * ✅ update test_simple_dependency_deps test * 📝 adding changelog for deps feature via changie * ✨ restructure deps command, include lock/add * ✅ add new deps event types to sample_values * ✅ fix test_simple_dependency_deps test * 🐛 attempting to fix cli commands * 🐛 convert dbt deps to dbt deps install also leave dbt deps as just a new click group * ✅ update test_command_mutually_exclusive_option change deps command to deps install * ✅ update functional tests from deps > deps install * ✅ change missing deps to deps install * ✅ convert adapter tests to deps install from deps * move back to deps and merge more with main * fix-unittest * add hash * foramt yml and update command structure * nits * add new param * nits * nits * nits * fix_tests * pr_feedback * nits * nits * move_check * Update Features-20230125-165933.yaml --------- Co-authored-by: Justin Baldwin <[email protected]>
- Loading branch information
1 parent
70b2e15
commit 549dbf3
Showing
14 changed files
with
1,390 additions
and
903 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Features | ||
body: add log file of installed packages via dbt deps | ||
time: 2023-01-25T16:59:33.786304-05:00 | ||
custom: | ||
Author: jusbaldw ChenyuLInx | ||
Issue: "6643" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,26 @@ def convert(self, value, param, ctx): | |
self.fail(f"String '{value}' is not valid YAML", param, ctx) | ||
|
||
|
||
class Package(ParamType): | ||
"""The Click STRING type. Converts string into dict with package name and version. | ||
Example package: | ||
[email protected] | ||
package-name | ||
""" | ||
|
||
name = "NewPackage" | ||
|
||
def convert(self, value, param, ctx): | ||
# assume non-string values are a problem | ||
if not isinstance(value, str): | ||
self.fail(f"Cannot load Package from type {type(value)}", param, ctx) | ||
try: | ||
package_name, package_version = value.split("@") | ||
return {"name": package_name, "version": package_version} | ||
except ValueError: | ||
return {"name": value, "version": None} | ||
|
||
|
||
class WarnErrorOptionsType(YAML): | ||
"""The Click WarnErrorOptions type. Converts YAML strings into objects.""" | ||
|
||
|
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
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.