From 15620f3d414c680221126a0951dca6bc567e207e Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 10 Jun 2024 17:45:15 -0400 Subject: [PATCH 1/2] support `pipx run setuptools_scm` --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 11f927c9..e0ca3307 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,6 +103,9 @@ PKG-INFO = "setuptools_scm.fallbacks:parse_pkginfo" "post-release" = "setuptools_scm.version:postrelease_version" "python-simplified-semver" = "setuptools_scm.version:simplified_semver_version" "release-branch-semver" = "setuptools_scm.version:release_branch_semver_version" +[project.entry-points."pipx.run"] +# support `pipx run setuptools_scm` +setuptools_scm = "setuptools_scm._cli:main" [tool.setuptools.packages.find] where = ["src"] From 74fa5be0cd1f45a53c83b81104353b0ce45ef80c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:53:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e0ca3307..891579f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,8 @@ documentation = "https://setuptools-scm.readthedocs.io/" repository = "https://github.com/pypa/setuptools_scm/" [project.entry-points."distutils.setup_keywords"] use_scm_version = "setuptools_scm._integration.setuptools:version_keyword" +[project.entry-points."pipx.run"] +setuptools_scm = "setuptools_scm._cli:main" [project.entry-points."setuptools.file_finders"] setuptools_scm = "setuptools_scm._file_finders:find_files" [project.entry-points."setuptools.finalize_distribution_options"] @@ -103,9 +105,6 @@ PKG-INFO = "setuptools_scm.fallbacks:parse_pkginfo" "post-release" = "setuptools_scm.version:postrelease_version" "python-simplified-semver" = "setuptools_scm.version:simplified_semver_version" "release-branch-semver" = "setuptools_scm.version:release_branch_semver_version" -[project.entry-points."pipx.run"] -# support `pipx run setuptools_scm` -setuptools_scm = "setuptools_scm._cli:main" [tool.setuptools.packages.find] where = ["src"]