Configuration

How fastship discovers and loads project configuration

fastship uses one TOML configuration schema accepted in either ship.toml at the repository/site root or [tool.fastship] inside pyproject.toml (never both, and optional when defaults suffice).

Packaging metadata (name, version, description, authors, urls, dependencies, entry-points) stays in your native manifest (pyproject.toml, Cargo.toml, or package.json) and git remote — never duplicated in fastship config. Directory-level site defaults live in dir/index.md YAML frontmatter (an empty body acts as a metadata-only section with no landing page).

For example, here is fastship's own [tool.fastship] table in pyproject.toml:

tail: cannot open '../../pyproject.toml' for reading: No such file or directory

Create a new project (plain Python, notebook-enabled, maturin/Rust, crate, Zig, or standalone site) with ship-new:

TypeDefaultDetails
namestrProject or site name, e.g. "my-project"
kindstrpythonStarter kind: "python", "maturin", "crate", "zig", or "site"
nbboolFalseInclude notebook authoring starter (ship/index.ipynb and ship/00_core.ipynb, or index.ipynb for site)
packagestrNonePython package import name, e.g. "my_project" (defaults from name)
descriptionstrNoneShort project description (defaults per kind)
pathstr.Parent directory to create the project folder in
gh_orgstrAnswerDotAIGitHub organization for repository and docs URLs
forceboolFalseOverwrite the target folder if it already exists
ReturnsPathPath to the created project directory

At creation, ship-new reads author name and email from Git. After creation, fastship reads package authors strictly from the package manifest (pyproject.toml, Cargo.toml, or package.json) and resolves the GitHub owner from the repository remote (or --gh-org, defaulting to AnswerDotAI, for ship-new).

Declare Python runtime dependencies in [project].dependencies in pyproject.toml.

See fastship's pyproject.toml as a reference.