Skip to content

Commit

Permalink
Make dev dependencies optional (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo authored Jan 1, 2025
1 parent ae531dc commit b9d7ce8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
paths:
- '**.py'
- '.github/workflows/test_suite.yml'
- 'pyproject.toml'

# Run test suite whenever commits are pushed to an open PR
pull_request:
paths:
- '**.py'
- '.github/workflows/test_suite.yml'
- 'pyproject.toml'

# Run test suite every Sunday at 1AM
schedule:
Expand Down
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 opt_adapt..."
@python3 -m pip install -e .
@echo "Done."

install_dev:
@echo "Installing opt_adapt for development..."
@python3 -m pip install -e .[dev]
@echo "Done."
@echo "Setting up pre-commit..."
@pre-commit install
@echo "Done."
Expand Down
18 changes: 11 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ requires = ["setuptools"]
[project]
name = "opt_adapt"
version = "0.2"
dependencies = [
"netCDF4",
"pre-commit",
"pyproj",
"pytest",
"ruff",
]
authors = [
{name = "Joseph G. Wallwork", email = "[email protected]"},
{name = "Yihan Liu"},
Expand All @@ -26,6 +19,17 @@ classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
]
dependencies = [
"netCDF4",
"pyproj",
]

[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"ruff",
]

[project.urls]
Repository = "https://github.com/mesh-adaptation/opt_adapt"
Expand Down

0 comments on commit b9d7ce8

Please sign in to comment.