mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 20:15:40 +00:00
Upgrade CI poetry version to 1.5.1. (#9479)
Poetry v1.5.1 was released on May 29, almost 3 months ago. Probably a safe upgrade.
This commit is contained in:
parent
85a1c6d0b7
commit
a03003f5fd
7
.github/CONTRIBUTING.md
vendored
7
.github/CONTRIBUTING.md
vendored
@ -61,11 +61,11 @@ we do not want these to get in the way of getting good code into the codebase.
|
|||||||
|
|
||||||
> **Note:** You can run this repository locally (which is described below) or in a [development container](https://containers.dev/) (which is described in the [.devcontainer folder](https://github.com/hwchase17/langchain/tree/master/.devcontainer)).
|
> **Note:** You can run this repository locally (which is described below) or in a [development container](https://containers.dev/) (which is described in the [.devcontainer folder](https://github.com/hwchase17/langchain/tree/master/.devcontainer)).
|
||||||
|
|
||||||
This project uses [Poetry](https://python-poetry.org/) as a dependency manager. Check out Poetry's [documentation on how to install it](https://python-poetry.org/docs/#installation) on your system before proceeding.
|
This project uses [Poetry](https://python-poetry.org/) v1.5.1 as a dependency manager. Check out Poetry's [documentation on how to install it](https://python-poetry.org/docs/#installation) on your system before proceeding.
|
||||||
|
|
||||||
❗Note: If you use `Conda` or `Pyenv` as your environment / package manager, avoid dependency conflicts by doing the following first:
|
❗Note: If you use `Conda` or `Pyenv` as your environment / package manager, avoid dependency conflicts by doing the following first:
|
||||||
1. *Before installing Poetry*, create and activate a new Conda env (e.g. `conda create -n langchain python=3.9`)
|
1. *Before installing Poetry*, create and activate a new Conda env (e.g. `conda create -n langchain python=3.9`)
|
||||||
2. Install Poetry (see above)
|
2. Install Poetry v1.5.1 (see above)
|
||||||
3. Tell Poetry to use the virtualenv python environment (`poetry config virtualenvs.prefer-active-python true`)
|
3. Tell Poetry to use the virtualenv python environment (`poetry config virtualenvs.prefer-active-python true`)
|
||||||
4. Continue with the following steps.
|
4. Continue with the following steps.
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ poetry install -E all
|
|||||||
|
|
||||||
This will install all requirements for running the package, examples, linting, formatting, tests, and coverage. Note the `-E all` flag will install all optional dependencies necessary for integration testing.
|
This will install all requirements for running the package, examples, linting, formatting, tests, and coverage. Note the `-E all` flag will install all optional dependencies necessary for integration testing.
|
||||||
|
|
||||||
❗Note: If you're running Poetry 1.4.1 and receive a `WheelFileValidationError` for `debugpy` during installation, you can try either downgrading to Poetry 1.4.0 or disabling "modern installation" (`poetry config installer.modern-installation false`) and re-install requirements. See [this `debugpy` issue](https://github.com/microsoft/debugpy/issues/1246) for more details.
|
❗Note: 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. If you are still seeing this bug on v1.5.1, you may also try disabling "modern installation" (`poetry config installer.modern-installation false`) and re-installing requirements. See [this `debugpy` issue](https://github.com/microsoft/debugpy/issues/1246) for more details.
|
||||||
|
|
||||||
Now, you should be able to run the common tasks in the following section. To double check, run `make test`, all tests should pass. If they don't you may need to pip install additional dependencies, such as `numexpr` and `openapi_schema_pydantic`.
|
Now, you should be able to run the common tasks in the following section. To double check, run `make test`, all tests should pass. If they don't you may need to pip install additional dependencies, such as `numexpr` and `openapi_schema_pydantic`.
|
||||||
|
|
||||||
@ -307,4 +307,3 @@ even patch releases may contain [non-backwards-compatible changes](https://semve
|
|||||||
|
|
||||||
If your contribution has made its way into a release, we will want to give you credit on Twitter (only if you want though)!
|
If your contribution has made its way into a release, we will want to give you credit on Twitter (only if you want though)!
|
||||||
If you have a Twitter account you would like us to mention, please let us know in the PR or in another manner.
|
If you have a Twitter account you would like us to mention, please let us know in the PR or in another manner.
|
||||||
|
|
||||||
|
4
.github/workflows/_lint.yml
vendored
4
.github/workflows/_lint.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.4.2"
|
POETRY_VERSION: "1.5.1"
|
||||||
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
|
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -91,7 +91,7 @@ jobs:
|
|||||||
key: pip-editable-langchain-deps-${{ runner.os }}-${{ runner.arch }}-py-${{ matrix.python-version }}
|
key: pip-editable-langchain-deps-${{ runner.os }}-${{ runner.arch }}-py-${{ matrix.python-version }}
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
run: |
|
run: |
|
||||||
pipx install poetry==$POETRY_VERSION
|
pipx install "poetry==$POETRY_VERSION"
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
env:
|
env:
|
||||||
|
4
.github/workflows/_release.yml
vendored
4
.github/workflows/_release.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.4.2"
|
POETRY_VERSION: "1.5.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
if_release:
|
if_release:
|
||||||
@ -23,7 +23,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install poetry
|
- name: Install poetry
|
||||||
run: pipx install poetry==$POETRY_VERSION
|
run: pipx install "poetry==$POETRY_VERSION"
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/_test.yml
vendored
4
.github/workflows/_test.yml
vendored
@ -13,7 +13,7 @@ on:
|
|||||||
default: '["core", "extended", "core-pydantic-2"]'
|
default: '["core", "extended", "core-pydantic-2"]'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.4.2"
|
POETRY_VERSION: "1.5.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
poetry-version: "1.4.2"
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
cache-key: ${{ matrix.test_type }}
|
cache-key: ${{ matrix.test_type }}
|
||||||
install-command: |
|
install-command: |
|
||||||
if [ "${{ matrix.test_type }}" == "core" ]; then
|
if [ "${{ matrix.test_type }}" == "core" ]; then
|
||||||
|
4
.github/workflows/scheduled_test.yml
vendored
4
.github/workflows/scheduled_test.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- cron: '0 13 * * *'
|
- cron: '0 13 * * *'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
POETRY_VERSION: "1.4.2"
|
POETRY_VERSION: "1.5.1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -29,7 +29,7 @@ jobs:
|
|||||||
uses: "./.github/actions/poetry_setup"
|
uses: "./.github/actions/poetry_setup"
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
poetry-version: "1.4.2"
|
poetry-version: ${{ env.POETRY_VERSION }}
|
||||||
working-directory: libs/langchain
|
working-directory: libs/langchain
|
||||||
install-command: |
|
install-command: |
|
||||||
echo "Running scheduled tests, installing dependencies with poetry..."
|
echo "Running scheduled tests, installing dependencies with poetry..."
|
||||||
|
Loading…
Reference in New Issue
Block a user