Skip to content
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

Include '--index-url' argument for the pip install command for Test PyPI #4941

Merged
merged 3 commits into from
Oct 28, 2018

Conversation

yeraydiazdiaz
Copy link
Contributor

@krf2 thanks for your PR, as part of the Bloomberg sprint I picked it up, but is a little out of date and it felt easier to just cherry pick your commit on this PR, I hope you don't mind.

This is what it looks like atm:

screen shot 2018-10-27 at 11 50 23

Looks a bit weird imho maybe we should reduce the font size? @nlhkabu what do you think?

The template logic for a package's pip installation command has been
moved to a jinja macro called `pip_command`. This macro furthermore
determines whether or not to add the Test PyPI's `--index-url` based on
the existence of the *testPyPI* variable.
@yeraydiazdiaz
Copy link
Contributor Author

Builds are failing due to missing itsdangerous==1.0.0, fixed in #4940


{%- macro pip_command(release, request_route, test_environment) -%}
{%- if test_environment -%}
{% set index_url = " --index-url https://test.pypi.org/simple/" %}
Copy link
Member

Choose a reason for hiding this comment

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

Could shorten this a bit by using -i instead of --index-url.

@di
Copy link
Member

di commented Oct 27, 2018

Looks a bit weird imho maybe we should reduce the font size?

I agree it's a bit weird, but I think I'd rather have it look a bit weird than have a smaller font.

Also since this is only on TestPyPI and eventually TestPyPI will go away, I think it's OK!

@yeraydiazdiaz
Copy link
Contributor Author

It's not that bad with -i:

screen shot 2018-10-27 at 15 48 24

might depend on the name of the package though

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.

4 participants