-
Notifications
You must be signed in to change notification settings - Fork 1
BREAK: dropped python3.9, support py3.10+, updated commitizen #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7816e18 to
5b04407
Compare
CONTRIBUTING.md
Outdated
|
|
||
| ```bash | ||
| docker run --rm -v $(pwd):/app -w /app --name cz-kpn kpnnl/cz-kpn:3.2.12 'cz ls' | ||
| docker run --rm -v $(pwd):/app -w /app --name cz-kpn kpnnl/cz-kpn:4.0.0 'cz ls' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the latest version here, all versions are automatically updated by cz in here:
Lines 4 to 9 in 6949330
| version_files = [ | |
| "scripts/build", | |
| "CONTIRBUTING.md", | |
| "Dockerfile:cz-kpn==", | |
| "README.md:^docker" | |
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't update the CHANGELOG, commitizen will automatically create it, that's the whole point of using it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old habbit
pyproject.toml
Outdated
| [tool.poetry] | ||
| name = "cz-kpn" | ||
| version = "3.2.12" | ||
| version = "4.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is handled by commitizen automatically, revert this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
scripts/build
Outdated
| # scope: local development | ||
|
|
||
| docker build -t kpnnl/cz-kpn:3.2.12 . | ||
| VERSION=${1:-4.0.0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert to version 3.2.12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
|
|
||
| ## Local development with pyenv | ||
|
|
||
| 1. Install pyenv (if not already installed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use pyenv and it doesn't work on my machine. Do we need this when we already have a github action with the matrix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no only usefull for local dev and testing with tox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note and made more clear that it is useful in case of local dev and testing with tox
Dockerfile
Outdated
| @@ -1,4 +1,5 @@ | |||
| FROM python:3-alpine | |||
| ARG CZ_KPN_VERSION=4.0.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the current version as well here
.github/workflows/bump.yaml
Outdated
| jobs: | ||
| bump-version: | ||
| if: "!startsWith(github.event.head_commit.message, 'BUMP:')" | ||
| if: startsWith(github.event.head_commit.message, 'BUMP:') == false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most project we have been doing this:
if: ${{ !startsWith(github.event.head_commit.message, 'BUMP:') }}
do you know if your suggestion would work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was getting some review comments from copilot that double quotes were not correct (it would be interpreted as string) and without it, !startsWith was not recognized.
But changed it to ${{ !startsWith(github.event.head_commit.message, 'BUMP:') }} which seems to be accepted too.
5b04407 to
4c2caab
Compare
4c2caab to
9950f2c
Compare
No description provided.