Skip to content

Commit

Permalink
Add newsfragment
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jul 27, 2024
1 parent b5ad054 commit 4adf23b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/incremental/newsfragments/106.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Incremental could mis-identify that a project had opted in to version management.

If a ``pyproject.toml`` in the current directory contained a ``[project]`` table with a ``name`` key, but did not contain the opt-in ``[tool.incremental]`` table, Incremental would still treat the file as if the opt-in were present and attempt to validate the configuration. This could happen in contexts outside of packaging, such as when creating a virtualenv. When operating as a setuptools plugin Incremental now always requires the ``[tool.incremental]`` opt-in. Additionally, it suppresses any exceptions that occur while attempting to read ``pyproject.toml`` until it finds a valid ``[tool.incremental]`` table.

0 comments on commit 4adf23b

Please sign in to comment.