Skip to content
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

Flaw References and Comments support #14

Merged
merged 5 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion osidb_bindings/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import Dict, List

OSIDB_API_VERSION: str = "v1"
OSIDB_BINDINGS_USERAGENT: str = "osidb-bindings-3.1.0"
OSIDB_BINDINGS_VERSION: str = "3.1.0"
OSIDB_BINDINGS_USERAGENT: str = f"osidb-bindings-{OSIDB_BINDINGS_VERSION}"
JakubFrejlach marked this conversation as resolved.
Show resolved Hide resolved
OSIDB_BINDINGS_API_PATH: str = ".bindings.python_client.api.osidb"

# all available session operations
Expand Down
4 changes: 2 additions & 2 deletions scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ update_version() {
echo "Replacing version in pyproject.toml of low level bindings to ${version}"
sed -i 's/version = "[0-9]*\.[0-9]*\.[0-9]*"/version = "'${version}'"/g' osidb_bindings/bindings/pyproject.toml

echo "Replacing user agent version in constants.py to ${version}"
sed -i 's/"osidb-bindings-[0-9]*\.[0-9]*\.[0-9]*"/"osidb-bindings-'${version}'"/g' osidb_bindings/constants.py
echo "Replacing version in constants.py to ${version}"
sed -i 's/OSIDB_BINDINGS_VERSION: str = "[0-9]*\.[0-9]*\.[0-9]*"/OSIDB_BINDINGS_VERSION: str = "'${version}'"/g' osidb_bindings/constants.py

echo "Updating the CHANGELOG.md to ${version}"
sed -i 's/^## Unreleased.*/## Unreleased\n\n## ['"${version}"'] - '$(date '+%Y-%m-%d')'/' CHANGELOG.md
Expand Down