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
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,25 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false

- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: true
enable-cache: true
python-version: "3.14"

- name: Set up Hatch and Twine
run: uv pip install hatch twine

- name: Build package
run: uv build
run: hatch build

- name: Validate package
run: twine check dist/*

- name: Publish package to PyPI
if: startsWith(github.event.ref, 'refs/tags')
Expand Down
8 changes: 5 additions & 3 deletions DEVELOP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ In the release branch:

- Add a section for the new version in the ``CHANGES.rst`` file

- Commit your changes with a message like "prepare release x.y.z"
- Commit your changes with a message like "Release x.y.z"

- Push to origin/<release_branch>

- Create a tag by running ``git tag -s <version>`` and push it ``git push --tags``.
This will trigger a Github action which releases the new version to PyPi.
This will trigger a Github action which releases the new version to PyPI.

- Announce the new release on the `GitHub Releases`_ page.

On branch ``main``:

Expand Down Expand Up @@ -113,7 +115,7 @@ The docs are automatically built from Git by `Read the Docs`_ and there is
nothing special you need to do to get the live docs to update.

.. _@crate/docs: https://github.com/orgs/crate/teams/docs
.. _buildout: https://pypi.python.org/pypi/zc.buildout
.. _GitHub Releases: https://github.com/crate/crate-python/releases
.. _PyPI: https://pypi.python.org/pypi
.. _Python versions: https://docs.astral.sh/uv/concepts/python-versions/
.. _Read the Docs: http://readthedocs.org
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ name = "crate"
dynamic = ["version"]
description = "CrateDB Python Client"
authors = [{ name = "Crate.io", email = "office@crate.io" }]
requires-python = ">=3.10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to ensure python -m pip install crate picks up a crate-python version that actually works under the given python version.

We can't just remove this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. If it's absolutely required it will be brought back.

readme = "README.rst"
license = "Apache-2.0"
classifiers = [
Expand Down
Loading