Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 1.6 KB

CONTRIBUTING.md

File metadata and controls

97 lines (63 loc) · 1.6 KB

Contributing

Local Development

We recommend installing , but you can also use pip.

# get the code
git clone git@github.com:metaist/ds.git
cd ds

If using uv (recommended):

uv sync --extra dev
. .venv/bin/activate

If using pip:

python -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"

As you work on the code, you should periodically run:

ds dev # check lint, type-checks, and run tests

This repo generally tries to maintain type-correctness (via mypy and pyright) and complete unit test coverage.

Making a Release

Checkout prod:

git checkout prod
git merge --no-ff --no-edit main

Update top-most __init__.py:

__version__ = "X.0.1"

Update CHANGELOG.md. To see recently closed issues run:

ds recent-closed

You can also look at the unreleased log too.

Sections order is: Fixed, Changed, Added, Deprecated, Removed, Security.

---

[X.0.1]: https://github.com/metaist/ds/compare/X.0.0...X.0.1

## [X.0.1] - XXXX-XX-XXT00:00:00Z

**Fixed**

**Changed**

**Added**

**Deprecated**

**Removed**

**Security**

Final checks, tag, and push

export VER="X.0.1"

# final checks again every supported python version
ds dev-all # requires uv >= 0.3.0

# final build
ds docs build

# commit and push tags
ds release: $VER

Create the release on GitHub. The pypi.yaml workflow will attempt to publish it to PyPI.