Commit 8181469
committed
Simplify version management and update for next release
As a general principle, it makes sense to update the internal version number as soon as we've completed a release so that `dashboard-dev` is clearly distinguished from `dashboard`. So having released v0.2.1, I'm updating the version to v0.2.2.
When I created the `version.py` build script, I'd envisioned reading the version directly from the `pyproject.toml` file, but for "simplicity" (of implementation) I ended up creating a separate `VERSION` file with the base version string. While easy to write, this is harder to manage over time.
Python 3.11 includes a built-in `tomllib` package, but as we're still depending on 3.9 I experimented with several alternatives -- `toml` can't parse our `pyproject.toml` and was difficult to debug; but `tomlkit` is recommended by Python documentation (for pre-3.11 and for *writing* toml files), and that works.
So we now have `[project] version = "v0.2.2"` as our only source of version truth in the repo, and the `version.py` script is now able to read that and generate our live version information from that.1 parent 64f6c43 commit 8181469
4 files changed
+22
-10
lines changedThis file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 60 | + | |
0 commit comments