Skip to content

Commit

Permalink
automate version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtoshev committed Feb 26, 2024
1 parent 908407f commit cacade4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ source $PATH_TO_LAGRANGEBENCH_VENV/bin/activate
# install pre-commit hooks defined in .pre-commit-config.yaml
# ruff is configured in pyproject.toml
pre-commit install

# if you want to bump the version in both pyproject.toml and __init__.py, do
poetry self add poetry-bumpversion
poetry version patch # or minor/major
```

After you have run `git add <FILE>` and try to `git commit`, the pre-commit hook will
Expand All @@ -201,6 +205,7 @@ LagrangeBench can be installed by cloning the repository or as a standalone libr
- Configs in `configs/` and `lagrangebench/defaults.py`
- Zenodo URLs in `download_data.sh` and `lagrangebench/data/data.py`
- Dependencies in `pyproject.toml`, `requirements_cuda.txt`, and `docs/requirements.txt`
- Library version in `pyproject.toml` and `lagrangebench/__init__.py`


## Citation
Expand Down
13 changes: 1 addition & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ matscipy = "^0.8.0"
torch = {version = "2.1.0+cpu", source = "torchcpu"}
wget = "^3.2"
omegaconf = "^2.3.0"
toml = "^0.10.2"

[tool.poetry.group.dev.dependencies]
# mypy = ">=1.8.0" - consider in the future
Expand Down Expand Up @@ -106,6 +105,7 @@ filterwarnings = [
"ignore::DeprecationWarning:^(?!.*lagrangebench).*"
]

[tool.poetry_bumpversion.file."lagrangebench/__init__.py"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 0 additions & 1 deletion requirements_cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ optax>=0.1.7
ott-jax>=0.4.2
pyvista
PyYAML
toml>=0.10.2
torch==2.1.0+cpu
wandb
wget
Expand Down

0 comments on commit cacade4

Please sign in to comment.