Skip to content

Commit

Permalink
Update for tomli 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Aug 2, 2021
1 parent 0ab0b02 commit f2bdbb0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.3.3 (in development)
-----------------------
- Update for tomli 1.2.0

v0.3.2 (2021-07-08)
-------------------
- Replace `property-manager` with `functools.cached_property` (Python 3.8+) /
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ install_requires =
packaging
cached-property ~= 1.5; python_version < "3.8"
pydantic ~= 1.7
tomli ~= 1.0
tomli ~= 1.2
wheel-filename ~= 1.1

[options.packages.find]
Expand Down
2 changes: 1 addition & 1 deletion src/check_wheel_contents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Visit <https://github.com/jwodder/check-wheel-contents> for more information.
"""

__version__ = "0.3.2"
__version__ = "0.3.3.dev1"
__author__ = "John Thorvald Wodder II"
__author_email__ = "[email protected]"
__license__ = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/check_wheel_contents/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def from_file(cls, path: Path) -> Optional["Configuration"]:
`None` if the section does not exist.
"""
if path.suffix == ".toml":
with path.open(encoding="UTF-8") as fp:
tdata = tomli.load(fp)
with path.open("rb") as fb:
tdata = tomli.load(fb)
tool = tdata.get("tool")
if not isinstance(tool, dict):
return None
Expand Down

0 comments on commit f2bdbb0

Please sign in to comment.