mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 03:57:29 +02:00
Update poetry to 1.5.1 (#1804)
* update poetry to 1.5.1 inside workflows * update lock file to poetry 1.5.1 * test run 1 * test run 2 * run 3 * try different sortorder * cli should use --no-root here are the refereneces. https://python-poetry.org/docs/basic-usage/#installing-dependencies-only https://pip.pypa.io/en/stable/topics/local-project-installs/#regular-installs * cache migrations aswell * test flake * optimize docker image for regtest building * playng * remove test run 1 * remove run 2 * remove run 3 * run 4 * run 6 * run 7 * run 8 * run 9 * run 10
This commit is contained in:
4
.github/workflows/flake8.yml
vendored
4
.github/workflows/flake8.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,6 +22,6 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make flake8
|
run: make flake8
|
||||||
|
4
.github/workflows/formatting.yml
vendored
4
.github/workflows/formatting.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
npm install prettier
|
npm install prettier
|
||||||
- name: Check black
|
- name: Check black
|
||||||
run: make checkblack
|
run: make checkblack
|
||||||
|
11
.github/workflows/migrations.yml
vendored
11
.github/workflows/migrations.yml
vendored
@@ -23,17 +23,18 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
uses: abatilo/actions-poetry@v2
|
uses: abatilo/actions-poetry@v2
|
||||||
with:
|
with:
|
||||||
poetry-version: ${{ matrix.poetry-version }}
|
poetry-version: ${{ matrix.poetry-version }}
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install
|
||||||
|
4
.github/workflows/mypy.yml
vendored
4
.github/workflows/mypy.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,6 +22,6 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make mypy
|
run: make mypy
|
||||||
|
4
.github/workflows/pylint.yml
vendored
4
.github/workflows/pylint.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,6 +22,6 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make pylint
|
run: make pylint
|
||||||
|
4
.github/workflows/pyright.yml
vendored
4
.github/workflows/pyright.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
npm install
|
npm install
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make pyright
|
run: make pyright
|
||||||
|
20
.github/workflows/regtest.yml
vendored
20
.github/workflows/regtest.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
sudo chmod -R a+rwx .
|
sudo chmod -R a+rwx .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
sudo chmod -R a+rwx .
|
sudo chmod -R a+rwx .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -119,7 +119,7 @@ jobs:
|
|||||||
sudo chmod -R a+rwx .
|
sudo chmod -R a+rwx .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
@@ -139,7 +139,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
docker exec lnbits-legend-lnbits-1 /bin/bash -c "poetry run python tools/create_fake_admin.py"
|
docker exec lnbits-legend-lnbits-1 /bin/bash -c "poetry run python tools/create_fake_admin.py"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
@@ -183,7 +183,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -205,7 +205,7 @@ jobs:
|
|||||||
sudo chmod -R a+rwx .
|
sudo chmod -R a+rwx .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
PYTHONUNBUFFERED: 1
|
PYTHONUNBUFFERED: 1
|
||||||
|
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
postgres:
|
postgres:
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9"]
|
python-version: ["3.9"]
|
||||||
poetry-version: ["1.3.1"]
|
poetry-version: ["1.5.1"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Poetry ${{ matrix.poetry-version }}
|
- name: Set up Poetry ${{ matrix.poetry-version }}
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
cache: "poetry"
|
cache: "poetry"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install
|
poetry install --no-root
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
LNBITS_DATABASE_URL: postgres://postgres:postgres@0.0.0.0:5432/postgres
|
LNBITS_DATABASE_URL: postgres://postgres:postgres@0.0.0.0:5432/postgres
|
||||||
|
@@ -8,7 +8,7 @@ RUN curl -sSL https://install.python-poetry.org | python3 -
|
|||||||
ENV PATH="/root/.local/bin:$PATH"
|
ENV PATH="/root/.local/bin:$PATH"
|
||||||
|
|
||||||
# needed for backups postgresql-client version 14 (pg_dump)
|
# needed for backups postgresql-client version 14 (pg_dump)
|
||||||
RUN apt-get install -y wget
|
RUN apt-get install -y apt-utils wget
|
||||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
||||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
@@ -20,7 +20,6 @@ COPY . .
|
|||||||
|
|
||||||
RUN mkdir data
|
RUN mkdir data
|
||||||
|
|
||||||
RUN poetry config virtualenvs.create false
|
|
||||||
RUN poetry install --only main
|
RUN poetry install --only main
|
||||||
|
|
||||||
ENV LNBITS_PORT="5000"
|
ENV LNBITS_PORT="5000"
|
||||||
|
388
poetry.lock
generated
388
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user