See https://help.launchableinc.com/resources/cli-reference/ and https://help.launchableinc.com/sending-data-to-launchable/using-the-launchable-cli/getting-started/.
We recommend uv for dependency management:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies
uv sync --devIn order to automatically format files with autopep8, this repository contains a
configuration for pre-commit. Install the hook with
uv run pre-commit install.
# Activate virtual environment
source .venv/bin/activate
# or use uv run for individual commands
uv run <command># Using poethepoet (recommended)
uv run poe test
# Direct command
uv run python -m unittestbazel test ...
This project uses poethepoet for task management. Available tasks:
# Show all available tasks
uv run poe --help
# Run tests
uv run poe test
# Run tests with XML output
uv run poe test-xml
# Run linting
uv run poe lint
# Run type checking
uv run poe type
# Format code
uv run poe format
# Build package
uv run poe build
# Install package locally
uv run poe install# Add runtime dependency
uv add some-package
# Add development dependency
uv add --dev some-dev-packageWhen updating the Python version requirement, update the following files:
.python-version- Used by pyenv, uv, and local developmentpyproject.toml- Updaterequires-python = ">=X.Y"setup.cfg- Updatepython_requires = >=X.Y.github/workflows/python-package.yml- Updatepython-version: ["X.Y"].github/workflows/python-publish.yml- Updateuv python install X.YREADME.md- Update prerequisite sectionCLAUDE.md- Update development notes
Create new release on Github, then Github Actions automatically uploads the module to PyPI.
./build-java.sh
You can install the smart-tests command from either source or pypi.
- >= Python 3.13
- >= Java 8
$ pwd
~/cli
$ python setup.py install$ pip3 install --user --upgrade smart-tests~=1.0This module follows Semantic versioning such as X.Y.Z.
- Major (X)
- Drastic update breaking backward compatibility
- Minor (Y)
- Add new plugins, options with backward compatibility
- Patch (Z)-
- Fix bugs or minor behaviors