Skip to content

Commit

Permalink
Make dev dependencies optional (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo authored Dec 30, 2024
1 parent fbfe9fc commit e596b19
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
36 changes: 20 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand All @@ -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"
Expand Down

0 comments on commit e596b19

Please sign in to comment.