summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-11-14 09:49:21 +0300
committerAAGaming <aagaming@riseup.net>2023-12-29 18:34:19 -0500
commite2ade0d731f66d1ef2520bb1f108829c2907a053 (patch)
treee9bba210d8d8e97e2e854a5f93a55f39c27c9aaa
parent06690890fb8f9381c640b9ba7bb3050a670cc2b7 (diff)
downloaddecky-loader-e2ade0d731f66d1ef2520bb1f108829c2907a053.tar.gz
decky-loader-e2ade0d731f66d1ef2520bb1f108829c2907a053.zip
feat(backend): enable poetry-dynamic-versioning
-rw-r--r--.github/workflows/build-win.yml8
-rw-r--r--.github/workflows/build.yml10
-rw-r--r--backend/pyproject.toml12
3 files changed, 23 insertions, 7 deletions
diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml
index 5de21402..7b545425 100644
--- a/.github/workflows/build-win.yml
+++ b/.github/workflows/build-win.yml
@@ -33,7 +33,9 @@ jobs:
- name: Install Python dependencies ⬇️
working-directory: ./backend
- run: C:\Users\runneradmin\.local\bin\poetry install --no-interaction
+ run: |
+ C:\Users\runneradmin\.local\bin\poetry self add "poetry-dynamic-versioning[plugin]"
+ C:\Users\runneradmin\.local\bin\poetry install --no-interaction
- name: Install JS dependencies ⬇️
working-directory: ./frontend
@@ -47,7 +49,9 @@ jobs:
- name: Build Python Backend 🛠️
working-directory: ./backend
- run: C:\Users\runneradmin\.local\bin\poetry run pyinstaller pyinstaller.spec
+ run: |
+ C:\Users\runneradmin\.local\bin\poetry dynamic-versioning
+ C:\Users\runneradmin\.local\bin\poetry run pyinstaller pyinstaller.spec
- name: Build Python Backend (noconsole) 🛠️
working-directory: ./backend
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4333e87e..0440e582 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,6 +41,8 @@ jobs:
- name: Checkout 🧰
uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
- name: Set up NodeJS 18 💎
uses: actions/setup-node@v3
@@ -76,7 +78,9 @@ jobs:
- name: Install Python dependencies ⬇️
working-directory: ./backend
- run: poetry install --no-interaction
+ run: |
+ poetry self add "poetry-dynamic-versioning[plugin]"
+ poetry install --no-interaction
- name: Install JS dependencies ⬇️
working-directory: ./frontend
@@ -90,7 +94,9 @@ jobs:
- name: Build Python Backend 🛠️
working-directory: ./backend
- run: pyinstaller pyinstaller.spec
+ run: |
+ poetry dynamic-versioning
+ pyinstaller pyinstaller.spec
- name: Upload package artifact ⬆️
if: ${{ !env.ACT }}
diff --git a/backend/pyproject.toml b/backend/pyproject.toml
index 5ead2d15..eb9f3db6 100644
--- a/backend/pyproject.toml
+++ b/backend/pyproject.toml
@@ -3,7 +3,6 @@ name = "decky-loader"
version = "0.0.0" # the real version will be autogenerated
description = "A plugin loader for the Steam Deck"
license = "GPLv2"
-readme = "../README.md"
authors = []
packages = [
{include = "decky_loader"},
@@ -31,6 +30,13 @@ decky-loader = 'decky_loader.main:main'
[tool.pyright]
strict = ["*"]
+[tool.poetry-dynamic-versioning]
+enable = true
+
+[tool.poetry-dynamic-versioning.substitution]
+# don't replace version in decky_plugin.py
+files = []
+
[build-system]
-requires = ["poetry-core"]
-build-backend = "poetry.core.masonry.api"
+requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
+build-backend = "poetry_dynamic_versioning.backend"