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

chore: bump version to 1.8.1 #342

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
17 changes: 13 additions & 4 deletions config-verify.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
"""QPC pyproject toml file verification."""
"""QPC pyproject toml and spec file verification."""

import re
import sys
from pathlib import Path
from tomllib import load

spec_path = Path(__file__).absolute().parent / "qpc.spec"
match_version = re.search(r"Version:\s+(\d+\.\d+\.\d+)", spec_path.read_text())
if not match_version:
print("Unable to parse version on qpc.spec", file=sys.stderr)
sys.exit(1)
spec_version = match_version.groups()[0]

toml_path = Path(__file__).absolute().parent / "pyproject.toml"
with toml_path.open("rb") as toml_file:
toml_data = load(toml_file)
Expand All @@ -19,10 +27,11 @@
)
sys.exit(1)

if project["version"] != tool_poetry["version"]:
if spec_version != project["version"] or spec_version != tool_poetry["version"]:
print(
"Project version {v1} does not match tool.poetry version {v2}".format(
v1=project["version"], v2=tool_poetry["version"]
"Versions {v1} (project) and {v2} (tool.poetry) in pyproject.toml, and "
"{v3} in qpc.spec are inconsistent.".format(
v1=project["version"], v2=tool_poetry["version"], v3=spec_version
),
file=sys.stderr,
)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "qpc"
version = "1.8.0"
version = "1.8.1"
license = {file = "LICENSE"}
requires-python = ">=3.11,<3.13"
dynamic = ["scripts"]

[tool.poetry]
name = "qpc"
version = "1.8.0"
version = "1.8.1"
description = ""
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
Expand Down
6 changes: 5 additions & 1 deletion qpc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Name: qpc
Summary: command-line client interface for quipucords

Version: 1.8.0
Version: 1.8.1
Release: 1%{?dist}
Epoch: 0

Expand Down Expand Up @@ -49,6 +49,10 @@ sed \
%{python3_sitelib}/qpc-*.egg-info/

%changelog
* Tue Jun 11 2024 Bruno Ciconelle <[email protected]> - 0:1.8.1-1
- Add support for aggregate report (Brad Smith)
- Upgrade python version to 3.12

* Mon May 13 2024 Bruno Ciconelle <[email protected]> - 0:1.8.0-1
- Drop support to Decision Manager (BRMS).
- Refactor report upload to use the async view.
Expand Down
Loading