Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add --deps-from to azdev setup and use requirements file to resolve dependencies by default #194

Merged
merged 5 commits into from
May 13, 2020

Conversation

fengzhou-msft
Copy link
Member

@fengzhou-msft fengzhou-msft commented May 6, 2020

Development part to solve Azure/azure-cli#9781.

This PR adds --deps-from option to azev setup. By default, use the requirements.*.txt file to resolve dependencies for Azure CLI project. Specify --deps-from setup.py to use setup.py files to resolve dependencies, which is the previous behavior.

@haroldrandom
Copy link
Contributor

haroldrandom commented May 9, 2020

Can you fire another PR to test against this PR?

Comment on lines 130 to 131
if system == 'Windows':
system = system.lower()
Copy link
Member Author

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.

@fengzhou-msft
Copy link
Member Author

Can you fire another PR to test against this PR?

Test PR submitted: Azure/azure-cli#13431

"Installing `azure-cli-testsdk`..."
)
import platform
system = platform.system()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

Suggested change
system = platform.system()
system = platform.system().lower()

Copy link
Member Author

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.

@fengzhou-msft fengzhou-msft changed the title Add --deps to azdev setup and use requirements file to resolve dependencies by default Add --deps-from to azdev setup and use requirements file to resolve dependencies by default May 13, 2020
# 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),
Copy link
Member

@jiasli jiasli May 13, 2020

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants