mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 21:11:58 +00:00
feat(backend): enable poetry-dynamic-versioning
This commit is contained in:
@@ -33,7 +33,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python dependencies ⬇️
|
- name: Install Python dependencies ⬇️
|
||||||
working-directory: ./backend
|
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 ⬇️
|
- name: Install JS dependencies ⬇️
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
@@ -47,7 +49,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Python Backend 🛠️
|
- name: Build Python Backend 🛠️
|
||||||
working-directory: ./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) 🛠️
|
- name: Build Python Backend (noconsole) 🛠️
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout 🧰
|
- name: Checkout 🧰
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up NodeJS 18 💎
|
- name: Set up NodeJS 18 💎
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@@ -76,7 +78,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python dependencies ⬇️
|
- name: Install Python dependencies ⬇️
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: poetry install --no-interaction
|
run: |
|
||||||
|
poetry self add "poetry-dynamic-versioning[plugin]"
|
||||||
|
poetry install --no-interaction
|
||||||
|
|
||||||
- name: Install JS dependencies ⬇️
|
- name: Install JS dependencies ⬇️
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
@@ -90,7 +94,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Python Backend 🛠️
|
- name: Build Python Backend 🛠️
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: pyinstaller pyinstaller.spec
|
run: |
|
||||||
|
poetry dynamic-versioning
|
||||||
|
pyinstaller pyinstaller.spec
|
||||||
|
|
||||||
- name: Upload package artifact ⬆️
|
- name: Upload package artifact ⬆️
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ name = "decky-loader"
|
|||||||
version = "0.0.0" # the real version will be autogenerated
|
version = "0.0.0" # the real version will be autogenerated
|
||||||
description = "A plugin loader for the Steam Deck"
|
description = "A plugin loader for the Steam Deck"
|
||||||
license = "GPLv2"
|
license = "GPLv2"
|
||||||
readme = "../README.md"
|
|
||||||
authors = []
|
authors = []
|
||||||
packages = [
|
packages = [
|
||||||
{include = "decky_loader"},
|
{include = "decky_loader"},
|
||||||
@@ -31,6 +30,13 @@ decky-loader = 'decky_loader.main:main'
|
|||||||
[tool.pyright]
|
[tool.pyright]
|
||||||
strict = ["*"]
|
strict = ["*"]
|
||||||
|
|
||||||
|
[tool.poetry-dynamic-versioning]
|
||||||
|
enable = true
|
||||||
|
|
||||||
|
[tool.poetry-dynamic-versioning.substitution]
|
||||||
|
# don't replace version in decky_plugin.py
|
||||||
|
files = []
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry_dynamic_versioning.backend"
|
||||||
|
|||||||
Reference in New Issue
Block a user