From: Sorin Sbarnea Date: Mon, 6 Sep 2021 21:10:39 +0000 (+0100) Subject: Fix missing toml extra w/ setuptools-scm (GH-2475) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/41e670064063e3e221b1c3c40db5aaae784b5231 Fix missing toml extra w/ setuptools-scm (GH-2475) Project packaging is using TOML due to pyproject.toml but fails to mention it, causing installation failures with newer setuptools-scm 6.3.0. Commit history before merge: * Fix missing toml extra Fixed breakage uncovered by setuptools-scm 6.3.0 where installation would fail for project that missed to mention the toml extra. * Bump setuptools[-scm] to avoid toml extra https://github.com/psf/black/pull/2475#issuecomment-912730714 > If you constraint greater than 6.3.0 and setuptools greater than 45 > you can skip the extra, * Actually for safety reasons, just use the extra Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com> --- diff --git a/CHANGES.md b/CHANGES.md index ef0a57d..4b5a291 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ ### Packaging - Fix missing modules in self-contained binaries (#2466) +- Fix missing toml extra used during installation (#2475) ## 21.8b0 diff --git a/pyproject.toml b/pyproject.toml index 30e6297..73e1960 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,10 +23,7 @@ extend-exclude = ''' # NOTE: You don't need this in your own Black configuration. [build-system] -# We're pinning setuptools-scm to bugfix versions only because for build-time -# deps having them work on install by default is really important. Especially -# since it's hard for users to work-around the specified build requirements. -requires = ["setuptools>=41.0", "setuptools_scm~=6.0.1", "wheel"] +requires = ["setuptools>=45.0", "setuptools_scm[toml]>=6.3.1", "wheel"] build-backend = "setuptools.build_meta" [tool.pytest.ini_options] diff --git a/setup.cfg b/setup.cfg index dbd667e..1a0a217 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,3 @@ [options] setup_requires = - setuptools_scm~=6.0.1 + setuptools_scm[toml]>=6.3.1