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

Create Publish Package to TestPyPi #2506

Closed
wants to merge 5 commits into from

Conversation

Qoyyuum
Copy link
Contributor

@Qoyyuum Qoyyuum commented Apr 19, 2023

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

  • My pull request is atomic and focuses on a single change.
  • I have thoroughly tested my changes with multiple different prompts.
  • I have considered potential risks and mitigations for my changes.
  • I have documented my changes clearly and comprehensively.
  • I have not snuck in any "extra" small tweaks changes

Qoyyuum added 2 commits April 19, 2023 15:13
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.
@p-i-
Copy link
Contributor

p-i- commented May 5, 2023

This is a mass message from the AutoGPT core team.
Our apologies for the ongoing delay in processing PRs.
This is because we are re-architecting the AutoGPT core!

For more details (and for infor on joining our Discord), please refer to:
https://github.com/Significant-Gravitas/Auto-GPT/wiki/Architecting

@lc0rp lc0rp added setup Issues with getting Auto-GPT setup on local machines needs discussion To be discussed among maintainers project management size/m testing labels May 17, 2023
@Qoyyuum Qoyyuum requested a review from a team May 20, 2023 14:30
@vercel
Copy link

vercel bot commented May 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2023 6:08am

@vercel vercel bot temporarily deployed to Preview May 20, 2023 14:30 Inactive
@Qoyyuum
Copy link
Contributor Author

Qoyyuum commented May 20, 2023

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
Copy link

codecov bot commented May 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0594ba3) 69.20% compared to head (797b056) 69.20%.

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Pwuts
Copy link
Member

Pwuts commented May 31, 2023

@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?

@vercel
Copy link

vercel bot commented Jun 2, 2023

Deployment failed with the following error:

Resource is limited - try again in 2 hours (more than 100, code: "api-deployments-free-per-day").

@Auto-GPT-Bot
Copy link
Contributor

You changed AutoGPT's behaviour. The cassettes have been updated and will be merged to the submodule when this Pull Request gets merged.

@Qoyyuum
Copy link
Contributor Author

Qoyyuum commented Jun 2, 2023

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 pip install agpt --upgrade.

What do you think?

@vercel vercel bot temporarily deployed to Preview June 11, 2023 06:08 Inactive
@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Jun 24, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@ntindle
Copy link
Member

ntindle commented Jun 24, 2023

@Qoyyuum have you taken a look at #4604 ?

@Pwuts
Copy link
Member

Pwuts commented Jul 13, 2023

@lc0rp @collijk fyi

@collijk collijk mentioned this pull request Jul 17, 2023
26 tasks
@lc0rp lc0rp self-assigned this Jul 22, 2023
@lc0rp lc0rp added this to the v0.5.0 Release milestone Jul 22, 2023
@Pwuts Pwuts removed this from the Auto-GPT v0.5.0: Hackathon Ready milestone Sep 8, 2023
@Swiftyos Swiftyos closed this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviour change conflicts Automatically applied to PRs with merge conflicts needs discussion To be discussed among maintainers project management setup Issues with getting Auto-GPT setup on local machines size/m testing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants