Skip to content

Commit

Permalink
Merge pull request #142 from neutrinoceros/hotfix_crash_full_version
Browse files Browse the repository at this point in the history
BUG: fix a crash when calling wxc --full for packages for which no implemented method to get the version tag works.
  • Loading branch information
neutrinoceros committed Nov 15, 2021
2 parents 33e474f + bd145e4 commit 24fb0e5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to

## [6.5.3] - 2021-11-15

BUG: fix a crash when calling `wxc <pkg> --full` for packages for which no implemented method
to get the version tag works.
[PR #142](https://github.com/neutrinoceros/wxc/pull/142)


## [6.5.3] - 2021-09-04

ENH: add fallback support for properties, which are not yet supported by inspect.getfile
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# wxc

[![PyPI](https://img.shields.io/pypi/v/wxc.svg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.org/project/wxc/)
[![PyPI](https://img.shields.io/pypi/pyversions/wxc?logo=python&logoColor=white&label=Python)](https://pypi.org/project/wxc/)
[![PyPI](https://img.shields.io/pypi/pyversions/wxc/6.5.4?logo=python&logoColor=white&label=Python)](https://pypi.org/project/wxc/)
[![](https://img.shields.io/badge/contributions-welcome-brightgreen)](https://github.com/neutrinoceros/wxc/pulls)

[![codecov](https://codecov.io/gh/neutrinoceros/wxc/branch/master/graph/badge.svg)](https://codecov.io/gh/neutrinoceros/wxc)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = wxc
version = 6.5.3
version = 6.5.4
description = A CLI facility to inspect Python environments.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
2 changes: 1 addition & 1 deletion wxc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "6.5.3"
__version__ = "6.5.4"
2 changes: 1 addition & 1 deletion wxc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def main(argv: list[str] | None = None) -> int:

if args.full:
data["name"] = args.name
ver = f"version = {data.pop('version')}"
ver = f"version = {data.pop('version', 'unknown')}"
print("\n".join(f"{k} = {v}" for k, v in data.items()))
builtin_print(ver)
return 0
Expand Down

0 comments on commit 24fb0e5

Please sign in to comment.