-
Notifications
You must be signed in to change notification settings - Fork 44.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Poetry v2.0.0 compatibility (#9197)
Make all changes necessary to make everything work with Poetry v2.0.0. - Resolves #9196 ## Changes - Removed `--no-update` flag from `poetry lock` command in codebase - Removed extra path arguments from `poetry -C [path] run [command]` occurrences - Regenerated all lock files in hierarchical order - Added workaround for Poetry bug where `packages.[i].format` is now suddenly required Additionally: - Fixed up .dockerignore - Fixes .venv being erroneously copied over from local - Fixes build context bloat (300MB -> 2.5MB) - Fixed warnings about entrypoint script not being installed in docker builds ### Relevant (breaking) changes in v2.0.0 - `--no-update` flag no longer exists for `poetry lock` as it has become default behavior - The `-C` option now actually changes the directory, so any path arguments in `poetry run` commands can/must be removed - Poetry v2.0.0 uses the new v2.1 lock file spec, so all lock files have to be regenerated to avoid false-positive lock file updates and checks on future PRs - **BUG:** when specifying `poetry.tool.packages`, `format` is required now - python-poetry/poetry#9961 Full Poetry v2.0.0 release notes and change log: https://python-poetry.org/blog/announcing-poetry-2.0.0
- Loading branch information
Showing
13 changed files
with
3,143 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,61 @@ | ||
# Ignore everything by default, selectively add things to context | ||
classic/run | ||
|
||
# AutoGPT | ||
* | ||
|
||
# Platform - Libs | ||
!autogpt_platform/autogpt_libs/autogpt_libs/ | ||
!autogpt_platform/autogpt_libs/pyproject.toml | ||
!autogpt_platform/autogpt_libs/poetry.lock | ||
!autogpt_platform/autogpt_libs/README.md | ||
|
||
# Platform - Backend | ||
!autogpt_platform/backend/backend/ | ||
!autogpt_platform/backend/migrations/ | ||
!autogpt_platform/backend/schema.prisma | ||
!autogpt_platform/backend/pyproject.toml | ||
!autogpt_platform/backend/poetry.lock | ||
!autogpt_platform/backend/README.md | ||
|
||
# Platform - Market | ||
!autogpt_platform/market/market/ | ||
!autogpt_platform/market/scripts.py | ||
!autogpt_platform/market/schema.prisma | ||
!autogpt_platform/market/pyproject.toml | ||
!autogpt_platform/market/poetry.lock | ||
!autogpt_platform/market/README.md | ||
|
||
# Platform - Frontend | ||
!autogpt_platform/frontend/src/ | ||
!autogpt_platform/frontend/public/ | ||
!autogpt_platform/frontend/package.json | ||
!autogpt_platform/frontend/yarn.lock | ||
!autogpt_platform/frontend/tsconfig.json | ||
!autogpt_platform/frontend/README.md | ||
## config | ||
!autogpt_platform/frontend/*.config.* | ||
!autogpt_platform/frontend/.env.* | ||
|
||
# Classic - AutoGPT | ||
!classic/original_autogpt/autogpt/ | ||
!classic/original_autogpt/pyproject.toml | ||
!classic/original_autogpt/poetry.lock | ||
!classic/original_autogpt/README.md | ||
!classic/original_autogpt/tests/ | ||
|
||
# Benchmark | ||
# Classic - Benchmark | ||
!classic/benchmark/agbenchmark/ | ||
!classic/benchmark/pyproject.toml | ||
!classic/benchmark/poetry.lock | ||
!classic/benchmark/README.md | ||
|
||
# Forge | ||
# Classic - Forge | ||
!classic/forge/ | ||
!classic/forge/pyproject.toml | ||
!classic/forge/poetry.lock | ||
!classic/forge/README.md | ||
|
||
# Frontend | ||
# Classic - Frontend | ||
!classic/frontend/build/web/ | ||
|
||
# Platform | ||
!autogpt_platform/ | ||
|
||
# Explicitly re-ignore some folders | ||
.* | ||
**/__pycache__ | ||
|
||
autogpt_platform/frontend/.next/ | ||
autogpt_platform/frontend/node_modules | ||
autogpt_platform/frontend/.env.example | ||
autogpt_platform/frontend/.env.local | ||
autogpt_platform/backend/.env | ||
autogpt_platform/backend/.venv/ | ||
|
||
autogpt_platform/market/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.