/scientific-python-development:python-packaging runs instead · from scientific-python-development
Creates and publishes scientific Python packages following Scientific Python community standards. Covers pyproject.toml, src layout, Hatchling, CLI entry points, and PyPI publishing.
This skill never runs in Claude Code
It ships in scientific-python-development at skills/, but /scientific-python-development:python-packaging (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
my-sci-package/
├── pyproject.toml
├── README.md
├── LICENSE
├── src/
│ └── my_sci_package/
│ ├── __init__.py
│ └── analysis.py
└── tests/
└── test_analysis.py
Use src/ layout — prevents accidental import of uninstalled code, required for Hatchling auto-discovery.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "my-sci-package"
version = "0.1.0"
description = "A scientific Python package"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.9"
authors = [
{name = "Your Name", email = "[email protected]"},
]
dependencies = [
"numpy>=1.20",
"scipy>=1.7",
]
[project.urls]
Homepage = "https://github.com/username/my-sci-package"
[dependency-groups]
dev = ["pytest>=7.0", "ruff>=0.1", "mypy>=1.0"]
Full template with classifiers, optional deps, and CI config: assets/pyproject-minimal.toml and assets/pyproject-full-featured.toml.
[project.scripts]
sci-analyze = "my_sci_package.cli:main"
See scripts/cli-example.py for a Click-based CLI implementation.
# 1. Build
python -m build
# 2. Check metadata and distribution
twine check dist/*
# If check fails: fix metadata in [project] section of pyproject.toml and rebuild
# 3. Test on TestPyPI
twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ <my-sci-package>
# If install fails: check package name availability, verify dist/ contents with tar -tvf dist/*.tar.gz
# 4. Publish to PyPI
twine upload dist/*
For automated publishing on GitHub release: assets/github-actions-publish.yml (uses OIDC Trusted Publishers — no stored tokens needed).
src/ layout — no setup.py, setup.cfg, or MANIFEST.inrequires-python with minimum only — no upper cap>= for dependency lower bounds — avoid upper caps unless absolutely necessarytar -tvf dist/*.tar.gzpython -m build succeedstwine check dist/* passesrequires-python and dependency versions are correctLICENSE file present; license field uses SPDX identifierproject.urls includes repository linkassets/github-actions-publish.yml (opens in a new tab)assets/pyproject-full-featured.toml (opens in a new tab)assets/pyproject-minimal.toml (opens in a new tab)assets/readme-template.md (opens in a new tab)assets/sphinx-conf.py (opens in a new tab)references/common-issues.md (opens in a new tab)references/docstrings.md (opens in a new tab)references/metadata.md (opens in a new tab)references/patterns.md (opens in a new tab)scripts/cli-example.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (uw-ssec/savvy) — no native marketplace selected
npx claudepluginhub p/uw-ssec-scientific-python-development-plugins-scientific-python-development5 skills in this plugin
/code-quality-toolsUse when the user asks about setting up linting, type checking, code formatting, or pre-commit hooks for Python projects, or mentions ruff, mypy, or pre-commit configuration. Configure and use automated code quality tools (ruff, mypy, pre-commit) for scientific Python projects. Covers linting rules, type checking configuration, formatting, and CI integration./pixi-package-managerUse when the user works with pixi (pixi.toml, pixi.lock, pixi add/run/task/global/exec) or wants a reproducible scientific Python environment that mixes conda-forge and PyPI packages: creating environments, adding dependencies, defining tasks, multi-platform lockfiles, or migrating from conda environment.yml / requirements.txt. Not for pure uv/pip projects or for building and publishing packages to PyPI (use python-packaging)./python-testingUse when writing or organizing tests for scientific Python code, or when the user mentions pytest, test fixtures, parametrization, numerical assertions, or property-based testing. Write and organize tests for scientific Python packages using pytest. Covers fixtures, parametrization, numerical testing with NumPy utilities, property-based testing with Hypothesis, and CI integration.Other plugins' skills for the same job