Smart Tests CLI
Project description
Usage
See https://www.launchableinc.com/docs/resources/cli-reference/ and https://www.launchableinc.com/docs/getting-started/.
Development
Preparation
We recommend uv for dependency management:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies
uv sync --dev
In order to automatically format files with autopep8, this repository contains a
configuration for pre-commit. Install the hook with
uv run pre-commit install.
Load development environment
# Activate virtual environment
source .venv/bin/activate
# or use uv run for individual commands
uv run <command>
Run tests cli
# Using poethepoet (recommended)
uv run poe test
# Direct command
uv run python -m unittest
Run tests exe_deploy.jar
bazel test ...
Available Development Tasks
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 dependency
# Add runtime dependency
uv add some-package
# Add development dependency
uv add --dev some-dev-package
Updating Python Version
When 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
How to release
Create new release on Github, then Github Actions automatically uploads the module to PyPI.
How to update smart_tests/jar/exe_deploy.jar
./build-java.sh
Installing CLI
You can install the smart-tests command from either source or pypi.
Prerequisite
- >= Python 3.13
- >= Java 8
Install from source
$ pwd
~/cli
$ python setup.py install
Install from pypi
$ pip3 install --user --upgrade smart-tests~=1.0
Versioning
This 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smart_tests_cli-2.0.0rc2.tar.gz.
File metadata
- Download URL: smart_tests_cli-2.0.0rc2.tar.gz
- Upload date:
- Size: 9.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be9afea35207bf8b82239ca9a8e6ae9cde802252fbe9ae8e997643ac29eea1d5
|
|
| MD5 |
243b8e0b1b06ae8d909588f77d2ad2d0
|
|
| BLAKE2b-256 |
1d30f9dbae0f630e2dadbbe8f6226f6b7df965ce6eea31bb7738ef4e260789f5
|
File details
Details for the file smart_tests_cli-2.0.0rc2-py3-none-any.whl.
File metadata
- Download URL: smart_tests_cli-2.0.0rc2-py3-none-any.whl
- Upload date:
- Size: 9.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97677d453fdc97c3bfd43cb3c6d45a6c8ff390260b39fa6cb38a14dc2a20ca68
|
|
| MD5 |
3b1cbafa99180512e83eabc756ff3730
|
|
| BLAKE2b-256 |
818b84b13079397c257edfe3eb2546880153cb5b3fd0e49f4ccfdeb191a2c4c6
|