These are notes to help me (and other contributors) remember how to set up the project and do common tasks.
This project uses Flit. It is a simple build tool that uses pyproject.toml
to define the project.
- Create a virtual environment and activate it
pip install flit
flit install
Linting and formatting utilizes ruff
ruff check
ruff check --select I --fix
ruff format
mypy applecrate
pytest -vv
rm -rf dist && rm -rf build
flit build
flit publish
flit install
to install the latest version of the packagecog -r README.md
to update the CLI help in README.md
bump2version [patch|minor|major] --verbose [--dry-run]
- Configuration is in
applecrate.toml
- Run
./build.sh
to build, sign, and package the executable