Skip to content

Commit

Permalink
chore: Make gui dependencies optional
Browse files Browse the repository at this point in the history
  • Loading branch information
georgedouzas committed Dec 30, 2024
1 parent 83fd195 commit 9b10914
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def tests(session: nox.Session) -> None:
Arguments:
session: The nox session.
"""
session.run('pdm', 'install', '-dG', 'tests', external=True)
session.run('pdm', 'install', '-dG', 'tests', '-G', 'gui', external=True)
env = {'COVERAGE_FILE': f'.coverage.{session.python}'}
if session.posargs:
session.run('pytest', '-k', *session.posargs, env=env)
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ dependencies = [
"click>=8.1.3",
"rich>=13.3.3",
"aiohttp>=3.8.4",
"reflex>=0.6.7",
"reflex-ag-grid>=0.0.10",
]

[project.urls]
Expand All @@ -53,6 +51,12 @@ Funding = "https://github.com/sponsors/georgedouzas"
sportsbet = "sportsbet.cli:main"
sportsbet-gui = "sportsbet.gui.main:run"

[project.optional-dependencies]
gui = [
"nest-asyncio>=1.6.0",
"reflex>=0.6.7",
"reflex-ag-grid>=0.0.10",
]
[tool.pdm]
version = {source = "scm"}
build = {package-dir = "src", editable-backend = "editables"}
Expand Down

0 comments on commit 9b10914

Please sign in to comment.