Skip to content

Commit

Permalink
MAINT: Support pyproject.toml and PEP 518 better
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 10, 2024
1 parent 970bcde commit f05e705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Other Changes and Additions
- The default ``build_command`` now allows fetching from PyPI, which is required
for modern build backends including ``pdm.backend``, ``poetry-core``,
``hatchling``.
- ASV sets up build backends for ``poetry``, ``build``, and ``pdm``.

0.6.1 (2023-09-11)
----------------------------
Expand Down
3 changes: 3 additions & 0 deletions asv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ def __init__(self, conf, python, requirements, tagged_env_vars):
if (Path.cwd() / "pdm.lock").exists():
self._base_requirements["pdm"] = ""

if (Path.cwd() / "pyproject.toml").exists():
self._base_requirements["build"] = ""

# Update the _base_requirements if needed
for key in list(self._requirements.keys()):
if key in self._base_requirements:
Expand Down

0 comments on commit f05e705

Please sign in to comment.