From ec25744cb38a7a3e422de59b71ca19943a6b2b30 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 5 Mar 2023 19:21:53 +0000 Subject: [PATCH] [7.2.x] Fix example in the documentation (#10782) (#10796) Co-authored-by: Bruno Oliveira --- changelog/10782.doc.rst | 1 + doc/en/explanation/goodpractices.rst | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog/10782.doc.rst diff --git a/changelog/10782.doc.rst b/changelog/10782.doc.rst new file mode 100644 index 000000000..c2bd4af8c --- /dev/null +++ b/changelog/10782.doc.rst @@ -0,0 +1 @@ +Fixed the minimal example in :ref:`goodpractices`: ``pip install -e .`` requires a ``version`` entry in ``pyproject.toml`` to run successfully. diff --git a/doc/en/explanation/goodpractices.rst b/doc/en/explanation/goodpractices.rst index 6b32875d3..c6659b1a7 100644 --- a/doc/en/explanation/goodpractices.rst +++ b/doc/en/explanation/goodpractices.rst @@ -24,8 +24,9 @@ The first few lines should look like this: [project] name = "PACKAGENAME" + version = "PACKAGEVERSION" -where ``PACKAGENAME`` is the name of your package. +where ``PACKAGENAME`` and ``PACKAGEVERSION`` are the name and version of your package respectively. You can then install your package in "editable" mode by running from the same directory: