diff --git a/.github/workflows/no-vcs.yml b/.github/workflows/no-vcs.yml index ed17c26..12f43c8 100644 --- a/.github/workflows/no-vcs.yml +++ b/.github/workflows/no-vcs.yml @@ -28,8 +28,10 @@ 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 + 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 15c62cf..3e79b73 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,8 +75,10 @@ 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 + token: ${{ secrets.CODECOV_TOKEN }} + name: ${{ matrix.python-version }} # vim:set et sts=2: 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