Upgrade CI workflows to poetry 1.6.1. (#11344)

This commit is contained in:
Predrag Gruevski 2023-10-03 19:23:54 -04:00 committed by GitHub
parent 6a936488db
commit d21dd72d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 10 deletions

View File

@ -64,7 +64,7 @@ For a [development container](https://containers.dev/), see the [.devcontainer f
### Dependency Management: Poetry and other env/dependency managers ### Dependency Management: Poetry and other env/dependency managers
This project uses [Poetry](https://python-poetry.org/) v1.5.1+ as a dependency manager. This project uses [Poetry](https://python-poetry.org/) v1.6.1+ as a dependency manager.
❗Note: *Before installing Poetry*, if you use `Conda`, create and activate a new Conda env (e.g. `conda create -n langchain python=3.9`) ❗Note: *Before installing Poetry*, if you use `Conda`, create and activate a new Conda env (e.g. `conda create -n langchain python=3.9`)
@ -105,8 +105,8 @@ make test
If the tests don't pass, you may need to pip install additional dependencies, such as `numexpr` and `openapi_schema_pydantic`. If the tests don't pass, you may need to pip install additional dependencies, such as `numexpr` and `openapi_schema_pydantic`.
If during installation you receive a `WheelFileValidationError` for `debugpy`, please make sure you are running If during installation you receive a `WheelFileValidationError` for `debugpy`, please make sure you are running
Poetry v1.5.1+. This bug was present in older versions of Poetry (e.g. 1.4.1) and has been resolved in newer releases. Poetry v1.6.1+. This bug was present in older versions of Poetry (e.g. 1.4.1) and has been resolved in newer releases.
If you are still seeing this bug on v1.5.1, you may also try disabling "modern installation" If you are still seeing this bug on v1.6.1, you may also try disabling "modern installation"
(`poetry config installer.modern-installation false`) and re-installing requirements. (`poetry config installer.modern-installation false`) and re-installing requirements.
See [this `debugpy` issue](https://github.com/microsoft/debugpy/issues/1246) for more details. See [this `debugpy` issue](https://github.com/microsoft/debugpy/issues/1246) for more details.

View File

@ -9,7 +9,7 @@ on:
description: "From which folder this pipeline executes" description: "From which folder this pipeline executes"
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }} WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
jobs: jobs:

View File

@ -9,7 +9,7 @@ on:
description: "From which folder this pipeline executes" description: "From which folder this pipeline executes"
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
jobs: jobs:
build: build:

View File

@ -9,7 +9,7 @@ on:
description: "From which folder this pipeline executes" description: "From which folder this pipeline executes"
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
jobs: jobs:
if_release: if_release:

View File

@ -9,7 +9,7 @@ on:
description: "From which folder this pipeline executes" description: "From which folder this pipeline executes"
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
jobs: jobs:
build: build:

View File

@ -26,7 +26,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
WORKDIR: "libs/langchain" WORKDIR: "libs/langchain"
jobs: jobs:

View File

@ -26,7 +26,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
WORKDIR: "libs/experimental" WORKDIR: "libs/experimental"
jobs: jobs:

View File

@ -6,7 +6,7 @@ on:
- cron: '0 13 * * *' - cron: '0 13 * * *'
env: env:
POETRY_VERSION: "1.5.1" POETRY_VERSION: "1.6.1"
jobs: jobs:
build: build: