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

[AIC-PY] + publish script for any pypi pkg, small mods to llama ext #265

Closed
wants to merge 2 commits into from

Conversation

jonathanlastmileai
Copy link
Contributor

@jonathanlastmileai jonathanlastmileai commented Nov 17, 2023

[AIC-PY] + publish script for any pypi pkg, small mods to llama ext


Stack created with Sapling. Best reviewed with ReviewStack.

@@ -0,0 +1,37 @@
#! /bin/zsh
# pypipublish.sh
# Usage: Run ./scripts/pypipublish.sh path/to/project/root conda-env-name
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it make more sense to create an empty environment rather than depend on an existing one?

# Need to get a token from here (scroll down to API Tokens): https://pypi.org/manage/account/
# If you have issues, read the docs: https://packaging.python.org/en/latest/tutorials/packaging-projects/

# If you want to upload to testpypi, run pypipublish-test.sh.
Copy link
Member

Choose a reason for hiding this comment

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

does this exist? I don't see it in this diff

# For the password, use the token value, including the pypi- prefix.
# To get a PyPi token, go here:
# Need to get a token from here (scroll down to API Tokens): https://pypi.org/manage/account/
# If you have issues, read the docs: https://packaging.python.org/en/latest/tutorials/packaging-projects/
Copy link
Member

@Ankush-lastmile Ankush-lastmile Nov 22, 2023

Choose a reason for hiding this comment

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

Is publishing with account username and password an expected flow? I've noticed that the official publishing guide suggests using token

I think it would make more sense to expect .env or equivalent rather than typing it in at script run?

Copy link
Member

@Ankush-lastmile Ankush-lastmile left a comment

Choose a reason for hiding this comment

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

approving to unblock but had a couple of comments

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