-
Notifications
You must be signed in to change notification settings - Fork 3k
Added package properties SDKType and NewSDK #16476
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
|
||
DEV_REQ_FILE = "dev_requirements.txt" | ||
NEW_DEV_REQ_FILE = "new_dev_requirements.txt" | ||
TRACK2_IDENTIFIER_REQ_PACKAGES = ["azure-core", "azure-mgmt-core"] | ||
|
||
logging.getLogger().setLevel(logging.INFO) | ||
|
||
|
@@ -461,3 +462,9 @@ def get_installed_packages(paths = None): | |
ws = WorkingSet(paths) if paths else working_set | ||
return ["{0}=={1}".format(p.project_name, p.version) for p in ws] | ||
|
||
def get_package_properties(setup_py_path): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So it's a new SDK if the package is azure-core, azure-mgmt-core, or if any of the requirements are one of those? I'm super confused. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reference we are following Azure/azure-sdk#1261 (comment). The idea is we needed a way to detect if a package is track 2 (aka new). |
||
"""Parse setup.py and return package details like package name, version, whether it's track1 or track2 | ||
""" | ||
pkgName, version, _, requires = parse_setup(setup_py_path) | ||
is_track2_pkg = pkgName in TRACK2_IDENTIFIER_REQ_PACKAGES or any(map(lambda x: (parse_require(x)[0] in TRACK2_IDENTIFIER_REQ_PACKAGES), requires)) | ||
praveenkuttappan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return pkgName, version, is_track2_pkg |
Uh oh!
There was an error while loading. Please reload this page.