monas
#
monas#
[cyan]Monas[/]: Python monorepo made easy
monas [OPTIONS] COMMAND [ARGS]...
Options
- --version#
Show the version and exit.
add#
Add a dependency(PEP 508 string) to specified packages.
monas add [OPTIONS] DEPENDENCY
Options
- --no-install#
Do not automatically chain [primary]monas install[/] after added
- -c, --concurrency <concurrency>#
The number of concurrent processes to use
- --include <GLOB>#
[cyan](multiple)[/]Include packages matching the given glob
- --exclude <GLOB>#
[cyan](multiple)[/]Exclude packages matching the given glob
Arguments
- DEPENDENCY#
Required argument
bump#
Bump version of all changed packages and release to git.
[bold]Example[/]: [green]0.1.0[/]
monas bump: [green]0.1.1[/]
monas bump major: [green]1.0.0[/]
monas bump minor: [green]0.2.0[/]
monas bump patch: [green]0.1.1[/]
monas bump alpha: [green]0.1.0alpha0[/]
monas bump dev: [green]0.1.0dev0[/]
monas bump post: [green]0.1.0post0[/]
monas major alpha: [green]1.0.0alpha0[/]
monas bump [OPTIONS] [PART] [TAG]
Options
- --skip-git#
Skip git operations
- -m, --message <message>#
Commit message
Arguments
- PART#
Optional argument
- TAG#
Optional argument
changed#
List packages changed since last tagged release.
monas changed [OPTIONS]
Options
- -l, --long#
Show the full path
- --json#
Output in JSON format
init#
Initialize the monas tool.
- Args:
path: The path to the pyproject.toml file.
monas init [OPTIONS]
Options
- -p, --python <PYTHON_VERSION>#
The Python version to use
- -v, --version <version>#
The version of the monorepo
- -d, --default-package-dir <default_package_dir>#
Default Package Directories to be created
- -n, --no-package-dir#
If specified, no package directories will be created
install#
Link the packages and install the remaining dependencies.
monas install [OPTIONS]
Options
- -c, --concurrency <concurrency>#
The number of concurrent processes to use
- --root#
Install all packages into the root project
- --include <GLOB>#
[cyan](multiple)[/]Include packages matching the given glob
- --exclude <GLOB>#
[cyan](multiple)[/]Exclude packages matching the given glob
list#
List packages managed by Monas. [yellow]alias: ls[/]
monas list [OPTIONS]
Options
- -l, --long#
Show the full path
- --json#
Output in JSON format
- --include <GLOB>#
[cyan](multiple)[/]Include packages matching the given glob
- --exclude <GLOB>#
[cyan](multiple)[/]Exclude packages matching the given glob
new#
Create a new <package> under <location>.
The package name must be locally unique and available on PyPI.
If location isn’t given, it defaults to the first location of packages config.
monas new [OPTIONS] PACKAGE [LOCATION]
Options
- -e, --explicit-package-entry#
If specified, an explicit package entry will be added to the list of packages
Arguments
- PACKAGE#
Required argument
- LOCATION#
Optional argument
publish#
Publish packages in this release to PyPI.
monas publish [OPTIONS]
Options
- -c, --concurrency <concurrency>#
The number of concurrent processes to use
- --no-sdist#
Do not build sdist
- -u, --username <username>#
PyPI username
- -p, --password <password>#
PyPI password or token
- -r, --repository <repository>#
Repository name or URL
remove#
Remove a dependency from specified packages.
monas remove [OPTIONS] DEPENDENCY
Options
- --no-install#
Do not automatically chain [primary]monas install[/] after added
- -c, --concurrency <concurrency>#
The number of concurrent processes to use
- --include <GLOB>#
[cyan](multiple)[/]Include packages matching the given glob
- --exclude <GLOB>#
[cyan](multiple)[/]Exclude packages matching the given glob
Arguments
- DEPENDENCY#
Required argument