Skip to content

Commit

Permalink
fix inequality
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jun 7, 2024
1 parent 2031c3d commit 93e06b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject_toml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def version(ppath: Path) -> str | None:
fpath_versions = {p: version(p) for p in self._pkg_paths}
fpath_versions = {k: v for k, v in fpath_versions.items() if v is not None}

if len(set(fpath_versions.values())) != 1:
if len(set(fpath_versions.values())) > 1:
raise Exception(
f"Version mismatch between packages: {fpath_versions}. "
f"All __version__ tuples must be the same."
Expand Down

0 comments on commit 93e06b7

Please sign in to comment.