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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint

on:
push:
branches: [master, develop]
branches: [main]
pull_request:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Specs

on:
push:
branches: [master, develop]
branches: [main]
pull_request:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
master
------
Unreleased
----------

7.3.0 (2026-09-07)
------------------
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Python SDK for Castle
=====================

.. image:: https://github.com/castle/castle-python/actions/workflows/specs.yml/badge.svg?branch=master
.. image:: https://github.com/castle/castle-python/actions/workflows/specs.yml/badge.svg?branch=main
:alt: Build Status
:target: https://github.com/castle/castle-python/actions/workflows/specs.yml

Expand Down Expand Up @@ -195,4 +195,4 @@ All exceptions inherit from ``CastleError``. The most useful ones:
- ``InternalServerError`` — 5xx response from Castle
- ``WebhookVerificationError`` — webhook signature did not match

The full list is in `castle/errors.py <https://github.com/castle/castle-python/blob/master/castle/errors.py>`_.
The full list is in `castle/errors.py <https://github.com/castle/castle-python/blob/main/castle/errors.py>`_.
17 changes: 8 additions & 9 deletions RELEASING.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
Releasing
=========

#. Create release branch ``X.Y.Z`` from ``develop``.
#. Create release branch ``X.Y.Z`` from ``main``.
#. Update ``VERSION`` in ``castle/version.py`` to the new version.
#. Update ``CHANGELOG.rst`` for the impending release.
#. ``git commit -am "release X.Y.Z"`` (where ``X.Y.Z`` is the new version).
#. Push to GitHub, open a PR to ``develop``, and merge when approved.
#. On ``develop``: run ``make test`` and ``make lint`` (or confirm CI is green).
#. Pull latest ``develop``, merge into ``master``, and **push ``master`` to ``origin``**.
#. Create a GitHub release from ``master`` with tag ``vX.Y.Z`` (see below).
#. Publish to PyPI from ``master`` (see below). A GitHub release does **not** publish the package; PyPI is updated only via ``twine upload``.
#. Push to GitHub, open a PR to ``main``, and merge when approved.
#. On ``main``: run ``make test`` and ``make lint`` (or confirm CI is green).
#. Create a GitHub release from ``main`` with tag ``vX.Y.Z`` (see below).
#. Publish to PyPI from ``main`` (see below). A GitHub release does **not** publish the package; PyPI is updated only via ``twine upload``.

GitHub release
--------------

Create the release only after ``master`` on ``origin`` contains the release commit.
Create the release only after ``main`` on ``origin`` contains the release commit.

.. code-block:: console

Expand All @@ -27,11 +26,11 @@ Use ``--latest`` as a separate flag if you need to mark the release as Latest; d
PyPI
----

From a clean checkout of ``master`` at the release commit:
From a clean checkout of ``main`` at the release commit:

.. code-block:: console

git checkout master && git pull
git checkout main && git pull
rm -rf dist build
pip install build twine
python3 -m build
Expand Down