-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add --deps-from to azdev setup and use requirements file to resolve dependencies by default #194
Conversation
Can you fire another PR to test against this PR? |
azdev/operations/setup.py
Outdated
if system == 'Windows': | ||
system = system.lower() |
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.
may not need this as windows file name is case-insensitive, will test.
Test PR submitted: Azure/azure-cli#13431 |
"Installing `azure-cli-testsdk`..." | ||
) | ||
import platform | ||
system = platform.system() |
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.
Why not?
system = platform.system() | |
system = platform.system().lower() |
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.
For Linux/Mac, need capitalized first letter. I have verified that on Windows, *.Windows.txt
also works when the file name is *.windows.txt
. So I removed the lower() operation.
# Resolve dependencies from setup.py files. | ||
# command modules have dependency on azure-cli-core so install this first | ||
pip_cmd( | ||
"install -q -e {}/src/azure-cli-nspkg".format(cli_path), |
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 suggest we get rid of this thing as soon as possible once we move to PEP 420 Azure/azure-cli#13293. 😆 azure-cli-nspkg
was introduced in Azure/azure-cli#2951.
Development part to solve Azure/azure-cli#9781.
This PR adds
--deps-from
option toazev setup
. By default, use therequirements.*.txt
file to resolve dependencies for Azure CLI project. Specify--deps-from setup.py
to usesetup.py
files to resolve dependencies, which is the previous behavior.