Skip to content

Commit

Permalink
update upgrade docs & version updating script
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Jun 1, 2024
1 parent 7eb4f5c commit 0c643c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pages/installation/upgrading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
cd /opt/hyperglass
docker compose down
docker compose rm -f
git pull
git fetch
git checkout v2.0.1
docker compose build
docker compose up
```
4 changes: 4 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
CONSTANTS = Path(__file__).parent / "hyperglass" / "constants.py"
CONSTANT_PATTERN = re.compile(r"^__version__\s\=\s\"(.+)\"$")

UPGRADE_DOC = Path(__file__).parent / "docs" / "pages" / "installation" / "upgrading.mdx"
UPGRADE_DOC_PATTERN = re.compile(r"^git\scheckout\sv(.+)$")

UPGRADES = (
("package.json", PACKAGE_JSON, PACKAGE_JSON_PATTERN),
("pyproject.toml", PYPROJECT_TOML, PYPROJECT_PATTERN),
("constants.py", CONSTANTS, CONSTANT_PATTERN),
("upgrading.mdx", UPGRADE_DOC, UPGRADE_DOC_PATTERN),
)

cli = typer.Typer(name="version", no_args_is_help=True)
Expand Down

0 comments on commit 0c643c6

Please sign in to comment.