Skip to content

Commit c8bb83f

Browse files
Use poetry source add + poetry lock to resolve via JFrog
Match databricks-sql-python2 pattern: add JFrog as primary Poetry source and run full poetry lock to re-resolve through JFrog proxy. This replaces the installer.modern-installation approach which is not supported in Poetry 2.x. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent f1ea869 commit c8bb83f

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
poetry config virtualenvs.create true
3737
poetry config virtualenvs.in-project true
3838
poetry config installer.parallel true
39-
poetry config installer.modern-installation false
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
4045
- name: Load cached venv
4146
id: cached-poetry-dependencies
4247
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
@@ -74,7 +79,12 @@ jobs:
7479
poetry config virtualenvs.create true
7580
poetry config virtualenvs.in-project true
7681
poetry config installer.parallel true
77-
poetry config installer.modern-installation false
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
7888
- name: Load cached venv
7989
id: cached-poetry-dependencies
8090
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

.github/workflows/integration.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ jobs:
4040
poetry config virtualenvs.create true
4141
poetry config virtualenvs.in-project true
4242
poetry config installer.parallel true
43-
poetry config installer.modern-installation false
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
4449
- name: Load cached venv
4550
id: cached-poetry-dependencies
4651
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

0 commit comments

Comments
 (0)