Skip to content

Commit

Permalink
Build: set version dynamically in pyproject.toml (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp authored Feb 3, 2025
1 parent c5217fe commit eb76eda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

To create a new `jax-ai-stack` release, take the following steps:

1. Send a pull request updating the version in `pyproject.toml` and
`jax-ai-stack/__init__.py` to the version based on the release date.
1. Send a pull request updating the version in `jax-ai-stack/__init__.py`
to the version based on the release date.
Also update `CHANGELOG.md` with the pinned package versions.
(an example for the 2024.10.1 release is [PR #50]).
2. Once this is merged, create the release tag and push it to github. An
Expand Down
2 changes: 1 addition & 1 deletion jax_ai_stack/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""jax-ai-stack metapackage."""

__version__ = "2025.1.9" # keep in sync with pyproject.toml
__version__ = "2025.1.9"
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jax-ai-stack"
version = "2025.1.9" # keep in sync with jax_ai_stack/__init__.py
dynamic = ["version"]
description = ""
readme = "README.md"
license = {file = "LICENSE"}
Expand Down Expand Up @@ -65,6 +65,9 @@ requires = [
packages = ["jax_ai_stack"]
include-package-data = false

[tool.setuptools.dynamic]
version = {attr = "jax_ai_stack.__version__"}

[tool.ruff.lint.per-file-ignores]
# F811: Redefinition of unused name.
"docs/source/digits_vae.ipynb" = ["F811"]

0 comments on commit eb76eda

Please sign in to comment.