Skip to content

Commit

Permalink
ci(project-settings): remove version parsing from Justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Jan 13, 2025
1 parent 152da1e commit 3cf79ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
10 changes: 0 additions & 10 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
# This setting will allow passing arguments through to recipes
set positional-arguments

# Parse current version from pyproject.toml
current_version := `grep -Po 'version\s*=\s*"\K[^"]*' pyproject.toml | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'`

# Custom git log format
gitstyle := '%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'

Expand All @@ -23,13 +20,6 @@ gitstyle := '%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s
$EDITOR ./Justfile


# PROJECT: Release version info and list of commits since last release
@version:
cz bump --dry-run | grep -E 'change\(bump\)|tag to create|increment detected'; \
echo "\nCommits since last release:"; \
git log -n 30 --graph --pretty="{{gitstyle}}" v{{current_version}}..HEAD


# PROJECT: Install development environment
@install:
pip install --require-virtualenv -e '.[dev,test]'
Expand Down
9 changes: 2 additions & 7 deletions requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
argcomplete==3.5.1 # via commitizen
backports-tarfile==1.2.0 # via jaraco-context
certifi==2024.8.30 # via requests
cffi==1.17.1 # via cryptography
cfgv==3.4.0 # via pre-commit
charset-normalizer==3.4.0 # via commitizen, requests
colorama==0.4.6 # via commitizen
commitizen==3.30.1 # via czespressif (pyproject.toml)
coverage==7.6.8 # via pytest-cov
cryptography==44.0.0 # via secretstorage
decli==0.6.2 # via commitizen
distlib==0.3.9 # via virtualenv
docutils==0.21.2 # via readme-renderer
Expand All @@ -26,7 +24,6 @@ iniconfig==2.0.0 # via pytest
jaraco-classes==3.4.0 # via keyring
jaraco-context==6.0.1 # via keyring
jaraco-functools==4.1.0 # via keyring
jeepney==0.8.0 # via keyring, secretstorage
jinja2==3.1.4 # via commitizen
just-bin==1.37.0 # via czespressif (pyproject.toml)
keyring==25.5.0 # via twine
Expand All @@ -37,12 +34,11 @@ more-itertools==10.5.0 # via jaraco-classes, jaraco-functools
nh3==0.2.19 # via readme-renderer
nodeenv==1.9.1 # via pre-commit
packaging==24.2 # via commitizen, pytest, pytest-sugar
pkginfo==1.11.2 # via twine
pkginfo==1.10.0 # via twine
platformdirs==4.3.6 # via virtualenv
pluggy==1.5.0 # via pytest
pre-commit==4.0.1 # via czespressif (pyproject.toml)
prompt-toolkit==3.0.48 # via questionary
pycparser==2.22 # via cffi
prompt-toolkit==3.0.36 # via questionary
pygments==2.18.0 # via readme-renderer, rich
pytest==7.4.4 # via czespressif (pyproject.toml), pytest-cov, pytest-mock, pytest-sugar, syrupy
pytest-cov==6.0.0 # via czespressif (pyproject.toml)
Expand All @@ -55,7 +51,6 @@ requests==2.32.3 # via requests-toolbelt, twine
requests-toolbelt==1.0.0 # via twine
rfc3986==2.0.0 # via twine
rich==13.9.4 # via twine
secretstorage==3.3.3 # via keyring
syrupy==4.8.0 # via czespressif (pyproject.toml)
termcolor==2.5.0 # via commitizen, pytest-sugar
tomli==2.2.1 # via coverage, pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ importlib-metadata==8.5.0 # via commitizen
jinja2==3.1.4 # via commitizen
markupsafe==3.0.2 # via jinja2
packaging==24.2 # via commitizen
prompt-toolkit==3.0.48 # via questionary
prompt-toolkit==3.0.36 # via questionary
pyyaml==6.0.2 # via commitizen
questionary==2.0.1 # via commitizen
termcolor==2.5.0 # via commitizen
Expand Down

0 comments on commit 3cf79ea

Please sign in to comment.