Skip to content

Commit

Permalink
Switch toml parser to stdlib's tomllib
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Sep 29, 2023
1 parent 546e0ed commit 523da67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autospec/buildreq.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
import json
import os
import re
import tomllib

import pypidata
import specdescription
import toml
import util


Expand Down Expand Up @@ -549,7 +549,7 @@ def grab_python_requirements(self, descfile, packages):
def add_pyproject_requires(self, filename):
"""Detect build requirements listed in pyproject.toml in the build-system's requires lists."""
with util.open_auto(filename) as pfile:
pyproject = toml.loads(pfile.read())
pyproject = tomllib.loads(pfile.read())
if not (buildsys := pyproject.get("build-system")):
return

Expand Down

0 comments on commit 523da67

Please sign in to comment.