From 4d38babb1508bcd913877a1c8a35ea993e6e9e96 Mon Sep 17 00:00:00 2001 From: Serhii Koropets <33310880+koropets@users.noreply.github.com> Date: Mon, 20 Dec 2021 15:42:56 +0200 Subject: [PATCH] New PyPi repo (#1206) --- .github/workflows/main.yml | 2 +- .github/workflows/release.yml | 2 +- Dockerfile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 838511750..f468732ab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - name: Install run: | pip install --upgrade pip==20.1.1 - pip install -i "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt + pip install --extra-index-url "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt pip install -r requirements/test_requirements.txt - name: Test ${{ matrix.component }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4cb8c62b..62f9e9f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: run: | pip install --upgrade pip pip uninstall -y aws-sam-cli pyyaml # Workaround for fixing an issue with incompatible package versions - pip install -i "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt + pip install --extra-index-url "${{ secrets.INDEX_URL }}" -r requirements/full_requirements.txt - name: Build run: | diff --git a/Dockerfile b/Dockerfile index a3add7b80..014d2fe93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,11 +39,11 @@ ENV PATH "${HOME}/.local/bin:${PATH}" # Install requirements separately for improved docker caching COPY --from=builder /code/prereq.txt . RUN --mount=type=secret,id=pip_index_url \ - pip install -i "$(cat /run/secrets/pip_index_url)" --no-deps -r prereq.txt --no-cache-dir + pip install --extra-index-url "$(cat /run/secrets/pip_index_url)" --no-deps -r prereq.txt --no-cache-dir COPY requirements/full_requirements.txt . RUN --mount=type=secret,id=pip_index_url \ - pip install -i "$(cat /run/secrets/pip_index_url)" -r full_requirements.txt --no-cache-dir + pip install --extra-index-url "$(cat /run/secrets/pip_index_url)" -r full_requirements.txt --no-cache-dir # Install gordo, packaged from earlier 'python setup.py sdist' COPY --from=builder /code/dist/gordo-packed.tar.gz .