Skip to main content

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.

Metadata

Release files for sectionate 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sectionate 0.3.5
File Size Uploaded Provenance Actions
sectionate-0.3.5.tar.gz 44.6 kB Without provenance Details for sectionate-0.3.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sectionate 0.3.5
File Interpreter ABI Platform Actions
sectionate-0.3.5-py3-none-any.whl Python 3 none any Details for sectionate-0.3.5-py3-none-any.whl

Total release size: 88.9 kB

Release files / sectionate-0.3.5.tar.gz

Download URL sectionate-0.3.5.tar.gz
Size 44.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f8062b775cad27a1aa53ff4642b260bdccf1096db1324b267905a23c54e4b31
BLAKE2b-256 checksum
How to use checksums
bcba6a26f3e7a76d50f010f2e55bb516e8b3dfd0cbeb44e5a54c376bf453fb3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / sectionate-0.3.5-py3-none-any.whl

Download URL sectionate-0.3.5-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ceedab86b27180b12b90b1b6019624506547e8574c069287b80a4068e244045
BLAKE2b-256 checksum
How to use checksums
3a5111328b28ab1a55efe1c819b97a16f97cddad2cb8f8465b82f41fcaff172c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for sectionate 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page