diff --git a/Makefile b/Makefile index a66b960..951cfb0 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,11 @@ install: @echo "Installing UM2N..." @python3 -m pip install -e . @echo "Done." + +install_dev: + @echo "Installing UM2N for development..." + @python3 -m pip install -e .[dev] + @echo "Done." @echo "Setting up pre-commit..." @pre-commit install @echo "Done." diff --git a/pyproject.toml b/pyproject.toml index bc786fa..4316545 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,22 +4,6 @@ requires = ["setuptools"] [project] name = "UM2N" version = "1.0" -dependencies = [ - "einops", - "gmsh", - "jupyter", - "ipython", - "matplotlib", - "numpy", - "pandas", - "pytest", - "rich", - "ruff", - "seaborn", - # "torch", # NOTE: Should be installed beforehand - "torch_geometric", - "wandb", -] authors = [ {name = "Chunyang Wang"}, {name = "Mingrui Zhang"}, @@ -35,6 +19,26 @@ classifiers = [ "Development Status :: 4 - Beta", "Programming Language :: Python", ] +dependencies = [ + "einops", + "gmsh", + "jupyter", + "ipython", + "matplotlib", + "numpy", + "pandas", + "rich", + "seaborn", + # "torch", # NOTE: Should be installed beforehand + "torch_geometric", + "wandb", +] + +[project.optional-dependencies] +dev = [ + "pytest", + "ruff", +] [project.urls] Homepage = "https://erizmr.github.io/UM2N"