diff --git a/pyproject.toml b/pyproject.toml index 2e4f8be..be8e8b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,14 +11,7 @@ authors = [ description = "Create your own Shit Happens playing cards!" readme = "README.md" requires-python = ">=3.11" -dependencies = [ - "matplotlib", - "pandas", - "openpyxl", # For pandas to open excel files. - "PyPDF2", - "tqdm", - "babel", -] +dynamic = ["dependencies", "optional-dependencies"] license = {file = "LICENSE"} keywords = ["shit happens", "card-game"] classifiers = [ @@ -35,9 +28,6 @@ classifiers = [ "Typing :: Typed", ] -[project.optional-dependencies] -ui = ["streamlit"] - [project.urls] "Homepage" = "https://github.com/siemdejong/shit-happens" "Bug Tracker" = "https://github.com/siemdejong/shit-happens/issues" @@ -56,6 +46,10 @@ namespaces = false [tool.setuptools.package-data] shithappens = ["opensans/fonts/ttf/*.ttf", "images/*.png", "locales/*/LC_MESSAGES/*.mo"] +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} +optional-dependencies = {dev = { file = ["requirements-dev.txt"] }} + [tool.ruff] extend-exclude = ["opensans"] diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..ede3eb4 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +ruff \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f7aef4c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +matplotlib +pandas +openpyxl +PyPDF2 +tqdm +babel \ No newline at end of file