chore: new default is 'latest'

This commit is contained in:
Daylin Morgan 2023-05-28 17:39:33 -05:00
parent d4b272f5d3
commit 8a252c5edc
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 6 additions and 4 deletions

View file

@ -10,9 +10,11 @@ types: ## run mypy
bump-version: ## update version and tag commit bump-version: ## update version and tag commit
@echo "bumping to version => $(VERSION)" @echo "bumping to version => $(VERSION)"
@sed -i 's/__version__ = ".*"/__version__ = "$(VERSION)"/g' src/viv/viv.py @sed -i 's/__version__ = ".*"/__version__ = "$(VERSION)"/g' src/viv/viv.py
@sed -i 's/install -r .*/install -r v$(VERSION)/g' README.md @git add src/viv/viv.py && git commit -m "chore: bump version" --no-verify
@git add src/viv/viv.py README.md && git commit -m "chore: bump version" --no-verify
@git tag v$(VERSION) @git tag v$(VERSION)
@git tag -d latest || true
@git tag latest
venv: ## generate environment venv: ## generate environment
pdm install pdm install

View file

@ -31,7 +31,7 @@ In any case they will be re-used across scripts (and generated on-demand, if nee
Run the below command to install `viv`. Run the below command to install `viv`.
```sh ```sh
python3 <(curl -fsSL gh.dayl.in/viv/viv.py) manage install -r v23.5a1 python3 <(curl -fsSL gh.dayl.in/viv/viv.py) manage install
``` ```
To access `viv` from within scripts you should add it's location to your `PYTHONPATH`. To access `viv` from within scripts you should add it's location to your `PYTHONPATH`.
@ -43,7 +43,7 @@ export PYTHONPATH="$PYTHONPATH:$HOME/.local/share/viv"
Advanced users may recognize that principally, Advanced users may recognize that principally,
the module just needs to be recognized at run time the module just needs to be recognized at run time
and the single script at `./src/viv/viv.py` can be invoked directly for the CLI. and the single script [`viv.py`](https://github.com/daylinmorgan/viv/blob/main/src/viv/viv.py) can be invoked directly for the CLI.
How you accomplish these options is ultimately up to you but the above instructions can get you started. How you accomplish these options is ultimately up to you but the above instructions can get you started.
### Pypi (Not Recommended) ### Pypi (Not Recommended)