AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

feat: add .python-version and use it in GHA

Open fredrikaverpil opened this issue 1 year ago • 3 comments

Background

In a nutshell, instead of defining the desired Python interpreter version in multiple places, it's possible to make use of the .python-version file which can be read by pyenv and GitHub Actions.

When detected, the desired interpreter version is set.

Changes

  • Add the .python-version file, set the value to correspond to the one used in the Dockerfile.
  • Consume the .python-version file in the relevant GitHub Actions workflows.
  • Remove the .python-version from .gitignore.

Documentation

I added an explanation in the commit message.

Test Plan

CI will fail if this change doesn't work.

PR Quality Checklist

These are likely not applicable.

  • [x] 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

fredrikaverpil avatar Apr 30 '23 13:04 fredrikaverpil

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Apr 30, 2023 1:03pm

vercel[bot] avatar Apr 30 '23 13:04 vercel[bot]

Does that solve any issues?

k-boikov avatar Apr 30 '23 17:04 k-boikov

To be honest, not really. This is more of a convenience for e.g. pyenv users.

Feel free to close if you think it's not useful.

fredrikaverpil avatar May 01 '23 13:05 fredrikaverpil

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

p-i- avatar May 05 '23 00:05 p-i-

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

github-actions[bot] avatar Jun 09 '23 22:06 github-actions[bot]