From 38a5aa714a3a9b9d2871a644d330c6d34fa087a3 Mon Sep 17 00:00:00 2001 From: BubuOT <97530794+BubuOT@users.noreply.github.com> Date: Thu, 20 Jan 2022 12:49:25 +0100 Subject: [PATCH 1/2] docs: mention flit-core sdist behaviour Ref: https://github.com/pypa/flit/issues/513#issuecomment-1017407065 --- doc/pyproject_toml.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/pyproject_toml.rst b/doc/pyproject_toml.rst index 6ef305ab..13296d8f 100644 --- a/doc/pyproject_toml.rst +++ b/doc/pyproject_toml.rst @@ -417,4 +417,13 @@ These paths: Exclusions have priority over inclusions. +.. note:: + + If you are not using :ref:`build_cmd` but ``flit_core`` via another build + frontend Flit doesn't doesn't check the VCS for files to include but instead + builds a 'minimal' sdist (which includes the files necessary to build a wheel). + You'll have to adaopt your inclusion/exclusion rules to achieve the same result + as you'd get with :ref:`build_cmd`. + + .. _environment marker: https://www.python.org/dev/peps/pep-0508/#environment-markers From da5fc0afbf6cf8ba522444413eaf4abac6a7eb01 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Thu, 20 Jan 2022 19:29:24 +0000 Subject: [PATCH 2/2] Spelling and punctuation fixes --- doc/pyproject_toml.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/pyproject_toml.rst b/doc/pyproject_toml.rst index 13296d8f..4e1392ef 100644 --- a/doc/pyproject_toml.rst +++ b/doc/pyproject_toml.rst @@ -420,9 +420,9 @@ Exclusions have priority over inclusions. .. note:: If you are not using :ref:`build_cmd` but ``flit_core`` via another build - frontend Flit doesn't doesn't check the VCS for files to include but instead + frontend, Flit doesn't doesn't check the VCS for files to include but instead builds a 'minimal' sdist (which includes the files necessary to build a wheel). - You'll have to adaopt your inclusion/exclusion rules to achieve the same result + You'll have to adapt your inclusion/exclusion rules to achieve the same result as you'd get with :ref:`build_cmd`.