-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
Create Publish Package to TestPyPi #2506
Conversation
This will help test the python distribution to TestPyPi for each new push to stable and pull request to master, and easily test the end product afterwards.
This is a mass message from the AutoGPT core team. For more details (and for infor on joining our Discord), please refer to: |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hi @BillSchumacher since the production pypi is already up that I can see, would it make sense for this PR to help automate the release or no? |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #2506 +/- ##
=======================================
Coverage 69.20% 69.20%
=======================================
Files 72 72
Lines 3579 3579
Branches 569 569
=======================================
Hits 2477 2477
Misses 920 920
Partials 182 182 ☔ View full report in Codecov by Sentry. |
@Qoyyuum that package doesn't seem to be maintained actively, and using Auto-GPT as a package from pypi isn't documented anywhere. Do you think we should add this as a supported way to use Auto-GPT, or rather take down the package? |
Deployment failed with the following error:
|
You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged. |
Hi @Pwuts yeah its a little out of date but that's where I was hoping this PR could help test the package in TestPypi repo before releasing to Prod Pypi. Also, hoping to use the same package as where @BillSchumacher uploaded. But baby steps is to try this out to testpypi first. And then I could raise a separate PR to also publish to Prod Pypi, including documentation, so that everyone can just have the latest and greatest release feature (as opposed to git pulling from stable branch) via a simple What do you think? |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
This will help test the python distribution to TestPyPi for each new push to stable and pull request to master, and easily test the end product afterwards.
Background
There's no easy way to test new master pull requested packages. With this new workflow, we can see the latest changes and pull request to master, uploaded to TestPyPi and test the new package (as long as the version number in pyproject.toml file is incremented properly).
Changes
Created a new file, pypi-publish.yml as a new pipeline.
A couple of lines in pyproject.toml file to have a working
python -m build
Documentation
Repo owner needs to set a new Repository secret called,
TEST_PYPI_API_TOKEN
. Get the API Token from https://test.pypi.org/For each new change and about to release a new version, update the pyproject.toml file with a new version and set it up as a new pull request. This will trigger the workflow and upload it to testpypi.
Test the package by
pip install -i https://test.pypi.org/simple/ auto-gpt==<new version number>
Test Plan
Tested by running the workflow myself and uploaded to my test account's project. (Now removed)
PR Quality Checklist