diff --git a/.github/workflows/update-pages.yml b/.github/workflows/update-pages.yml index 63311c769..40030874b 100644 --- a/.github/workflows/update-pages.yml +++ b/.github/workflows/update-pages.yml @@ -36,7 +36,7 @@ jobs: - name: Setup python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.12' + python-version: '3.14' - name: Setup node uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 @@ -46,7 +46,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install -r requirements.txt + python -m pip install . - name: Install npm dependencies run: npm install --ignore-scripts diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..96d47f4d4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "dashboard" +dynamic = ["version"] +description = "Dashboard for LizardByte" +requires-python = ">=3.14" +license = {text = "MIT"} +authors = [ + {name = "LizardByte", email = "lizardbyte@users.noreply.github.com"} +] + +dependencies = [ + "cloudscraper==1.2.71", + "crowdin-api-client==1.26.0", + "ipython==9.10.0", + "itables==2.7.0", + "notebook==7.5.3", + "pandas==3.0.1", + "pillow==12.1.1", + "plotly==5.24.1", + "pygithub==2.8.1", + "python-dotenv==1.2.1", + "requests==2.32.5", + "svgwrite==1.4.3", + "tqdm==4.67.3", + "unhandled_exit==1.0.0", +] + +[project.optional-dependencies] +dev = [ + "nb-clean==4.0.1", + "nbqa[toolchain]==1.9.1", +] + +[project.urls] +Homepage = "https://app.lizardbyte.dev/Sunshine" +Repository = "https://github.com/LizardByte/Sunshine" +Issues = "https://github.com/LizardByte/Sunshine/issues" diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index db9657e08..000000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,2 +0,0 @@ -nb-clean==4.0.1 -nbqa[toolchain]==1.9.1 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5aa033cd1..000000000 --- a/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -cloudscraper==1.2.71 -crowdin-api-client==1.26.0 -ipython==9.10.0 -itables==2.7.0 -notebook==7.5.3 -pandas==3.0.1 -pillow==12.1.1 -plotly==5.24.1 -pygithub==2.8.1 -python-dotenv==1.2.1 -requests==2.32.5 -svgwrite==1.4.3 -tqdm==4.67.3 -unhandled_exit==1.0.0