diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c06ee94f..742ccca03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -181,6 +181,7 @@ jobs: runs-on: ubuntu-latest permissions: id-token: write + attestations: write # upload to PyPI only on release if: github.event.release && github.event.action == 'published' diff --git a/can/__init__.py b/can/__init__.py index d504aa16b..86e0f8a6c 100644 --- a/can/__init__.py +++ b/can/__init__.py @@ -8,7 +8,7 @@ import logging from typing import Any, Dict -__version__ = "4.4.0-rc.1" +__version__ = "4.4.0-rc.2" __all__ = [ "ASCReader", "ASCWriter", diff --git a/doc/development.rst b/doc/development.rst index ec7b7dc24..f635ffc06 100644 --- a/doc/development.rst +++ b/doc/development.rst @@ -117,13 +117,19 @@ Creating a new Release - Update ``CONTRIBUTORS.txt`` with any new contributors. - For larger changes update ``doc/history.rst``. - Sanity check that documentation has stayed inline with code. -- Create a temporary virtual environment. Run ``python setup.py install`` and ``tox``. -- Create and upload the distribution: ``python setup.py sdist bdist_wheel``. -- Sign the packages with gpg ``gpg --detach-sign -a dist/python_can-X.Y.Z-py3-none-any.whl``. -- Upload with twine ``twine upload dist/python-can-X.Y.Z*``. - In a new virtual env check that the package can be installed with pip: ``pip install python-can==X.Y.Z``. - Create a new tag in the repository. - Check the release on `PyPi `__, `Read the Docs `__ and `GitHub `__. + + +Manual release steps (deprecated) +--------------------------------- + +- Create a temporary virtual environment. +- Build with ``pipx run build`` +- Create and upload the distribution: ``python setup.py sdist bdist_wheel``. +- Sign the packages with gpg ``gpg --detach-sign -a dist/python_can-X.Y.Z-py3-none-any.whl``. +- Upload with twine ``twine upload dist/python-can-X.Y.Z*``.