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

swap toml with tomli #354

Merged
merged 13 commits into from
Jul 7, 2021
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"Programming Language :: Python :: Implementation :: PyPy",
],
use_incremental=True,
install_requires=["click", "click-default-group", "incremental", "jinja2", "setuptools", "toml"],
install_requires=["click", "click-default-group", "incremental", "jinja2", "setuptools", "tomli"],
extras_require={"dev": ["packaging"]},
package_dir={"": "src"},
packages=find_packages("src"),
Expand Down
6 changes: 3 additions & 3 deletions src/towncrier/_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import os
import pkg_resources
import toml
import tomli

from collections import OrderedDict

Expand Down Expand Up @@ -69,8 +69,8 @@ def load_config(directory):

def load_config_from_file(directory, config_file):

with open(config_file, "r") as conffile:
config = toml.load(conffile)
with open(config_file, "r", encoding="utf8") as conffile:
graingert marked this conversation as resolved.
Show resolved Hide resolved
config = tomli.load(conffile)

return parse_toml(directory, config)

Expand Down