Skip to content

Commit f1ea869

Browse files
Use legacy pip installer for Poetry to respect PIP_INDEX_URL
Poetry's modern installer resolves directly from pypi.org, ignoring PIP_INDEX_URL. Setting installer.modern-installation=false makes Poetry use pip for installation, which respects PIP_INDEX_URL and routes through JFrog. This avoids modifying pyproject.toml in CI. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent ee9dda0 commit f1ea869

2 files changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/code-quality-checks.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,7 @@ jobs:
3636
poetry config virtualenvs.create true
3737
poetry config virtualenvs.in-project true
3838
poetry config installer.parallel true
39-
- name: Configure Poetry JFrog source
40-
run: |
41-
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
42-
poetry config http-basic.jfrog gha-service-account "${JFROG_ACCESS_TOKEN}"
43-
poetry source add --priority=primary jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
44-
poetry lock --no-update
39+
poetry config installer.modern-installation false
4540
- name: Load cached venv
4641
id: cached-poetry-dependencies
4742
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
@@ -79,12 +74,7 @@ jobs:
7974
poetry config virtualenvs.create true
8075
poetry config virtualenvs.in-project true
8176
poetry config installer.parallel true
82-
- name: Configure Poetry JFrog source
83-
run: |
84-
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
85-
poetry config http-basic.jfrog gha-service-account "${JFROG_ACCESS_TOKEN}"
86-
poetry source add --priority=primary jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
87-
poetry lock --no-update
77+
poetry config installer.modern-installation false
8878
- name: Load cached venv
8979
id: cached-poetry-dependencies
9080
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

.github/workflows/integration.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ jobs:
4040
poetry config virtualenvs.create true
4141
poetry config virtualenvs.in-project true
4242
poetry config installer.parallel true
43-
- name: Configure Poetry JFrog source
44-
run: |
45-
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
46-
poetry config http-basic.jfrog gha-service-account "${JFROG_ACCESS_TOKEN}"
47-
poetry source add --priority=primary jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
48-
poetry lock --no-update
43+
poetry config installer.modern-installation false
4944
- name: Load cached venv
5045
id: cached-poetry-dependencies
5146
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

0 commit comments

Comments
 (0)