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

Parameterize repository #20

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

juliocvergarah
Copy link

Updating pull request, for parameterizing respository name instead of hard-coding to artifactory

Copy link
Contributor

@rlvoyer rlvoyer left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Left a few suggestion.

"""
Publish the distribution to our local PyPi.
:param repository: the repository to be used by the ReleaseCommand for the artifact upload. If ommitted, repository will be defaulted to PyPi
Copy link
Contributor

Choose a reason for hiding this comment

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

We use the style specified here.

So this should be

"""
Args:
    repository: the repository to be uploaded to (eg. Artifactory or Pypi.org).
"""

"""
code = Popen(["twine", "upload", "dist/*", "-r", "artifactory"]).wait()
cmd = None
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: it would be slightly simpler as follows:

if repository is None:
    repository = "pypy"

cmd = ["twine", "upload", "dist/*", "--repository", repository]

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