Skip to content

Update setup command to use platform appropriate requirements.txt file.#102

Merged
tjprescott merged 3 commits intoAzure:masterfrom
marstr:platform-specific-requirements
Jul 1, 2019
Merged

Update setup command to use platform appropriate requirements.txt file.#102
tjprescott merged 3 commits intoAzure:masterfrom
marstr:platform-specific-requirements

Conversation

@marstr
Copy link
Copy Markdown
Member

@marstr marstr commented Jul 1, 2019

This will ensure that folks doing development have the same version of the dependencies on their local machines that we will eventually distribute the CLI with.

@marstr marstr requested a review from tjprescott July 1, 2019 19:48
Copy link
Copy Markdown
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Just one question on when there isn't an available requirements file.

Comment thread azdev/operations/setup.py
"Installing external dependencies...",
)
else:
warnings.warn('platform {} does not have pinned dependencies, using latest compatible from PyPI.')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be a warning or an error?

Copy link
Copy Markdown
Member Author

@marstr marstr Jul 1, 2019

Choose a reason for hiding this comment

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

IMHO, just a warning will do. The only people that will ever hit this code path are people not using Windows, MacOS, or Linux (i.e. FreeBSD, OS/2, etc users.) If it's an error they won't be able to get setup at all. If it stays as a warning, they'll just be given a heads up that they'll be using a set of dependencies we haven't tested.

@tjprescott tjprescott merged commit f1fe18e into Azure:master Jul 1, 2019
tjprescott added a commit that referenced this pull request Jul 2, 2019
@tjprescott tjprescott mentioned this pull request Jul 2, 2019
RenSilvaAU pushed a commit to RenSilvaAU/azure-cli-dev-tools that referenced this pull request Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants