Skip to content

Commit b07b4a9

Browse files
committed
release 2023.1.1
1 parent 1de9291 commit b07b4a9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All major and minor version changes will be documented in this file. Details of
44
patch-level version changes can be found in [commit messages](../../commits/master).
55

6+
## 2023.1.1 - 2023/03/07
7+
8+
- Merge PR https://github.com/FHPythonUtils/LicenseCheck/pull/33
9+
(implements feature: Support for PEP631: Declaring dependencies in pyproject.toml enhancement)
10+
- Fix crash if setup.cfg exists with no metadata section
11+
(https://github.com/FHPythonUtils/LicenseCheck/issues/34)
12+
613
## 2023
714

815
- Fix: https://github.com/FHPythonUtils/LicenseCheck/issues/26

licensecheck/packageinfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def getMyPackageMetadata() -> dict[str, Any]:
133133
if Path("setup.cfg").exists():
134134
config = configparser.ConfigParser()
135135
config.read("setup.cfg")
136-
if "license" in config["metadata"]:
136+
if "metadata" in config.sections() and "license" in config["metadata"]:
137137
return config["metadata"].__dict__
138138
if Path("pyproject.toml").exists():
139139
pyproject = tomli.loads(Path("pyproject.toml").read_text(encoding="utf-8"))

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "licensecheck"
3-
version = "2023.1.0"
3+
version = "2023.1.1"
44
license = "mit"
55
description = "Output the licenses used by dependencies and check if these are compatible with the project license"
66
authors = ["FredHappyface"]

0 commit comments

Comments
 (0)