From 0069b63cd78cd7099ba5236fd58c22c6aefba049 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 08:52:40 +0000 Subject: [PATCH 1/3] [gh-actions](deps): Bump codecov/codecov-action from 3 to 4 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/no-vcs.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/no-vcs.yml b/.github/workflows/no-vcs.yml index ed17c26..1ade8aa 100644 --- a/.github/workflows/no-vcs.yml +++ b/.github/workflows/no-vcs.yml @@ -28,7 +28,7 @@ jobs: tox -e py -- -vv --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15c62cf..eb049f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,7 +75,7 @@ jobs: - name: Upload coverage to Codecov if: startsWith(matrix.toxenv, 'py') - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false From 3c6a6e0d91e85769245164da224b0b73e14ad0ba Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Mon, 5 Feb 2024 08:45:29 -0500 Subject: [PATCH 2/3] Update Codecov config --- .github/workflows/no-vcs.yml | 2 ++ .github/workflows/test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/no-vcs.yml b/.github/workflows/no-vcs.yml index 1ade8aa..12f43c8 100644 --- a/.github/workflows/no-vcs.yml +++ b/.github/workflows/no-vcs.yml @@ -31,5 +31,7 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} + name: no-vcs # vim:set et sts=2: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eb049f9..3e79b73 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -78,5 +78,7 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} + name: ${{ matrix.python-version }} # vim:set et sts=2: From b42dbb7c2e471e7d95a3be8613e93c80716b6117 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Fri, 9 Feb 2024 07:41:48 -0500 Subject: [PATCH 3/3] Document how to declare entry points in `pyproject.toml` --- docs/writing-methods.rst | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/writing-methods.rst b/docs/writing-methods.rst index 951b152..c1e6bd7 100644 --- a/docs/writing-methods.rst +++ b/docs/writing-methods.rst @@ -209,14 +209,23 @@ specify the method function as an entry point of the project. The name of the entry point group is ``versioningit.STEP`` (though, for ``next-version`` and ``template-fields``, the group is spelled with an underscore instead of a hyphen). For example, if you have a custom ``vcs`` method implemented as a -`foobar_vcs()` function in :file:`mypackage/vcs.py`, you would declare it in -:file:`setup.cfg` as follows: +`foobar_vcs()` function in :file:`mypackage/vcs.py`, you would declare it as +follows: -.. code:: ini +.. tab:: If using :file:`setup.cfg` - [options.entry_points] - versioningit.vcs = - foobar = mypackage.vcs:foobar_vcs + .. code:: ini + + [options.entry_points] + versioningit.vcs = + foobar = mypackage.vcs:foobar_vcs + +.. tab:: If using :file:`pyproject.toml` + + .. code:: toml + + [project.entry-points."versioningit.vcs"] + foobar = "mypackage.vcs:foobar_vcs" Once your package is on PyPI, package developers can use it by including it in their ``build-system.requires`` and specifying the name of the entry point (For