Skip to content

Commit

Permalink
Document that "onbuild" doesn't work with Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 19, 2023
1 parent dfcd3d7 commit 3210601
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,13 @@ The ``[tool.versioningit.onbuild]`` Subtable

.. versionadded:: 1.1.0

.. attention::

Currently, the ``onbuild`` step is not supported when using
``versioningit`` with Hatch. See `issue #54`__ for more information.

__ https://github.com/jwodder/versioningit/issues/54

The ``onbuild`` subtable configures an optional feature, inserting the project
version and/or other fields into built project trees when building an sdist or
wheel. Specifically, this feature allows you to create sdists & wheels in
Expand Down
7 changes: 7 additions & 0 deletions docs/hatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ way as for setuptools:
# `write` step:
artifacts = ["src/mypackage/_version.py"]
.. attention::

Currently, :ref:`the onbuild step <onbuild>` is not supported when using
``versioningit`` with Hatch. See `issue #54`__ for more information.

__ https://github.com/jwodder/versioningit/issues/54

.. note::

If you use ``versioningit`` with Hatch, you will not be able to set your
Expand Down
1 change: 1 addition & 0 deletions docs/runtime-version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ usually also want to expose that version at runtime, usually via a
Modifies working tree? [#f1]_ **Yes** **No**
Requires configuration in ``setup.{py,cfg}``? **No** **Yes**
Run when installing in editable mode? **Yes** **No**
Usable with Hatch? **Yes** **No**
============================================== ========= ===========

.. [#f1] That is, the ``write`` method causes a file to be present (though
Expand Down

0 comments on commit 3210601

Please sign in to comment.