Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/do_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,6 @@ jobs:
with:
ref: v${{ needs.get-description.outputs.version }}

publish-to-testpypi:
name: Publish to TestPyPI
if: false
needs: [build-python-packages]
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/capsuli
permissions:
id-token: write
steps:
- name: Download packages
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/

- name: Publish packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: Publish to PyPI
needs: [build-python-packages]
Expand Down
37 changes: 37 additions & 0 deletions docs/source/developing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Developing
==========

Making a release
----------------

There are four steps to making a release:

1. Choose the next version number

It should be of the form ``x.y.z``, and be larger than all previous versions

2. Update the change log

Edit ``CHANGELOG.md`` and add ``## x.y.z`` at the top with a description of the new
version. Take care to keep the formatting and structure of the file intact, as the
release automation relies on it.

3. Create a release PR

Create a new pull request that merges ``develop`` into ``main`` and is titled
``Release x.y.z``. Wait for the checks to run, then check

- that the release description is what you want (see the comment posted by the
workflow),
- that the documentation rendered correctly on ReadTheDocs (click the RTD check),
- that there are no warnings in the package build (click on the "Build distribution"
check)

If there are any issues, put more commits onto ``develop`` to fix them; the PR will
update accordingly as you go.

4. Merge the release PR

Once happy, merge the PR, and check that the ``do_release`` workflow finished
correctly. Congratulations, you have a release!

1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Capsuli
:caption: Contents:

tutorial
developing

Indices and tables
==================
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ dev = [
"sphinx-autoapi",
"tox",
]
docs = [
"myst_parser",
"pytest",
"recommonmark",
"sphinx",
"sphinx_rtd_theme",
"sphinx-autoapi",
]

[project.urls]
Repository = "https://github.com/NaturalHPC/capsuli"
Expand Down
3 changes: 3 additions & 0 deletions src/capsuli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from importlib.metadata import version

__version__ = version("capsuli")