Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/auto-update-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:

- name: Setup Python Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e .

- name: Parse Issue
uses: stefanbuck/github-issue-parser@10dcc54158ba4c137713d9d69d70a2da63b6bda3 # v3.2.3
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -r requirements-dev.txt
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev]"

- name: Install npm dependencies
run: npm install --ignore-scripts
Expand All @@ -38,14 +38,7 @@ jobs:
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
id: test
shell: bash
run: |
python -m pytest \
-rxXs \
--tb=native \
--verbose \
--color=yes \
--cov=src \
tests
run: python -m pytest tests

- name: Upload test coverage
# any except cancelled or skipped
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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 -e .

- name: Install npm dependencies
run: npm install --ignore-scripts
Expand Down
73 changes: 73 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "themerrdb"
version = "0.0.0"
description = "Database for movie, TV show, and game theme songs"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "AGPL-3.0-only"}
authors = [
{name = "LizardByte", email = "lizardbyte@users.noreply.github.com"}
]

dependencies = [
"google-api-python-client==2.190.0",
"igdb-api-v4==0.3.3",
"isodate==0.7.2",
"plotly==5.24.1",
"psutil==6.0.0", # required for orca, orca is required to save plotly figures as images
"python-dotenv==1.2.1",
"requests==2.32.5",
]

[project.optional-dependencies]
dev = [
"pytest==9.0.2",
"pytest-cov==7.0.0",
]

[project.urls]
Homepage = "https://app.lizardbyte.dev/ThemerrDB"
Repository = "https://github.com/LizardByte/ThemerrDB"
Issues = "https://github.com/LizardByte/ThemerrDB/issues"

[tool.setuptools]
packages = ["src"]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-rxXs",
"--tb=native",
"--verbose",
"--color=yes",
"--cov=src",
"--cov-report=term-missing",
"--junitxml=junit.xml",
"-o", "junit_family=legacy",
]

[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/__pycache__/*",
]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
3 changes: 0 additions & 3 deletions requirements-dev.txt

This file was deleted.

7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.