From e92e68b8198eb619acf0f8d77ba1494b945383dd Mon Sep 17 00:00:00 2001 From: zmao Date: Sat, 29 Apr 2023 19:17:42 -0500 Subject: [PATCH] 1. Fix the missing dependencies for build and test --- pyproject.toml | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1af4111c..67b08ab3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,30 +4,40 @@ build-backend = "setuptools.build_meta" [project] name = "streamsync" -authors = [ - {name = "Ramiro Medina", email = "ramiro.a.medina@gmail.com"}, -] +authors = [{ name = "Ramiro Medina", email = "ramiro.a.medina@gmail.com" }] description = "Streamsync helps you create performant data apps, via Python code and its built-in visual UI editor." readme = "README.md" requires-python = ">=3.9.2" keywords = ["data apps", "gui", "ui"] -license = {text = "Apache 2.0"} -classifiers = [ - "Development Status :: 3 - Alpha", -] +license = { text = "Apache 2.0" } +classifiers = ["Development Status :: 3 - Alpha"] dependencies = [ - "fastapi >= 0.89.1, < 1", - "websockets >= 10.4, < 11", - "uvicorn >= 0.20.0, < 1", - "watchdog >= 2.2.1, < 3", - "pandas >= 1.5.3, < 2", - "plotly-express >= 0.4.1, < 1" + "fastapi >= 0.89.1, < 1", + "websockets >= 10.4, < 11", + "uvicorn >= 0.20.0, < 1", + "watchdog >= 2.2.1, < 3", + "pandas >= 1.5.3, < 2", + "plotly-express >= 0.4.1, < 1", ] dynamic = ["version"] +[project.optional-dependencies] +test = [ + "pytest >= 7.0.0, < 8", + "altair >= 4.1.0, < 5", + "httpx >= 0.18.2, < 1" +] +build = [ + "build >= 0.7.0, < 1", + "mypy >= 0.900, < 2", + "pytest >= 7.0.0, < 8", + "altair >= 4.1.0, < 5", + "httpx >= 0.18.2, < 1" +] + [project.scripts] streamsync = "streamsync.command_line:main" [tool.setuptools.dynamic] -version = {attr = "streamsync.VERSION"} \ No newline at end of file +version = { attr = "streamsync.VERSION" }