Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sectionate

A package to sample grid-consistent sections from ocean model outputs

(Currently only supports structured grids.)

PyPI Conda Version Docs License

Quick Start Guide

For users: minimal installation within an existing environment

conda install -c conda-forge sectionate

For developers: installing dependencies from scratch using conda

git clone https://github.com/MOM6-community/sectionate.git
cd sectionate
conda env create -f docs/environment.yml
conda activate docs_env_sectionate
pip install -e .
python -m ipykernel install --user --name docs_env_sectionate --display-name "docs_env_sectionate"
jupyter-lab

Releasing

The git tag is the version. sectionate has no version string checked into the source tree: hatch-vcs derives it from the tag at build time and writes sectionate/_version.py (gitignored, but shipped inside the sdist and wheel). To cut a release you tag; there is no file to bump and nothing to keep in sync.

  1. Make sure master is green and has everything you want in the release.
  2. Publish a GitHub Release whose tag is vX.Y.Z, targeting the commit you want to ship:
    gh release create vX.Y.Z --target "$(git rev-parse origin/master)" \
      --title vX.Y.Z --generate-notes
    
    Publishing it (not merely pushing a tag) is what fires the workflow. Target the commit you actually want: a tag placed before the commit you meant to release builds the previous version, and PyPI rejects it as a duplicate.
  3. The Publish to PyPI workflow builds from that tag and uploads. It checks out with fetch-depth: 0 so the tag is visible to hatch-vcs, and asserts that the built version matches the tag before publishing.
  4. Verify: https://pypi.org/project/sectionate/.
  5. conda-forge builds from the PyPI sdist and lags by design; the autotick bot opens the version-bump PR. Its recipe must list hatch-vcs alongside hatchling in host, since it builds with --no-build-isolation.

Two things follow from the tag being the version. Never add a version literal back to the tree — sectionate/version.py is a shim over the generated file, and a 0.0.0+unknown from it means the package was imported without being built or installed, not that a number is missing. And any checkout that installs the package needs its tags: a shallow clone, or a fork that never fetched them, resolves a .devN version instead of the release line. That is why CI checks out with fetch-depth: 0 and Read the Docs unshallows in post_checkout.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sectionate-0.4.0rc2.tar.gz (96.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sectionate-0.4.0rc2-py3-none-any.whl (95.4 kB view details)

Uploaded Python 3

File details

Details for the file sectionate-0.4.0rc2.tar.gz.

File metadata

  • Download URL: sectionate-0.4.0rc2.tar.gz
  • Upload date:
  • Size: 96.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for sectionate-0.4.0rc2.tar.gz
Algorithm Hash digest
SHA256 d59f5dd413c6fbf61b7cb074e5e3eef92055e2d753e156dba2f2fdfab0dd2a44
MD5 8b13d52a5f86270382a7fd70e3424d7b
BLAKE2b-256 b20c4824ac1b537d9a31bce74e40eaf5ab78724ab5204f9d1f32ab5dea806705

See more details on using hashes here.

File details

Details for the file sectionate-0.4.0rc2-py3-none-any.whl.

File metadata

  • Download URL: sectionate-0.4.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 95.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for sectionate-0.4.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d201f8d5aea431f063bdf3000200c41c323af819745f1ace342087292f15677
MD5 64b69427d320343f76426b5d2f6a6f4b
BLAKE2b-256 082d4628295413e36780aec7c32830896fb6cfd5ce2cd22ee61bb2063006f55f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page