From b02f160507424534f3cb3a6fc86fc641c6ef42b6 Mon Sep 17 00:00:00 2001 From: Oleksandr Bulanov Date: Wed, 9 Oct 2024 11:11:56 +0300 Subject: [PATCH] Upgrade Python version to 3.13 & poetry non package-mode --- .github/workflows/default.yml | 6 +++--- pyproject.toml | 13 ++----------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 49c055b..efcc627 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -14,11 +14,11 @@ jobs: # Check-out repo and set-up python - name: Checkout uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python id: setup-python uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 # Install & configure poetry - name: Install Poetry uses: snok/install-poetry@v1 @@ -37,7 +37,7 @@ jobs: # Install dependencies if cache does not exist - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root + run: poetry install --no-interaction # Run tests on skeleton code; # NOTE: there are nothing to test yet, unless we add some hooks, just check that it runs - name: Run tests on hooks diff --git a/pyproject.toml b/pyproject.toml index 46428db..f8644c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,22 +1,13 @@ [tool.poetry] -name = "backend-skeleton" -version = "0.1.0" -description = "" -authors = ["DS "] -readme = "README.md" +package-mode = false [tool.poetry.dependencies] -python = "^3.12" +python = "^3.13" cookiecutter = "^2.6.0" pytest = "^8.3.3" pytest-cov = "^5.0.0" invoke = "^2.2.0" - -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" - [tool.pytest.ini_options] testpaths = ["tests"] python_files = ["tests.py", "test_*.py", "*_tests.py"]