Reference
Commands
usage: ivpm [-h]
{activate,build,pkg-info,share,update,init,git-status,git-update,snapshot}
...
Positional Arguments
- command
Possible choices: activate, build, pkg-info, share, update, init, git-status, git-update, snapshot
Sub-commands
activate
Starts a new shell that contains the activated python virtual environment
ivpm activate [-h] [-c C] [-p PROJECT_DIR] [args ...]
Positional Arguments
- args
Named Arguments
- -c
When specified, executes the specified string
- -p, --project-dir
Specifies the project directory to use (default: cwd)
build
Build all sub-projects with an IVPM-supported build infrastructure (Python)
ivpm build [-h] [-d DEP_SET] [-g]
Named Arguments
- -d, --dep-set
Uses dependencies from specified dep-set instead of ‘default-dev’
- -g, --debug
Enables debug for native extensions
Default: False
pkg-info
Collect cflags for a listed set of packages
ivpm pkg-info [-h] [-k KIND] {paths,libdirs,libs,flags} pkgs [pkgs ...]
Positional Arguments
- type
Possible choices: paths, libdirs, libs, flags
Specifies what info to query
- pkgs
Named Arguments
- -k, --kind
Specifies qualifiers on the type of info to query
update
Fetches packages specified in ivpm.yaml that have not already been loaded
ivpm update [-h] [-p PROJECT_DIR] [-d DEP_SET] [-a]
Named Arguments
- -p, --project-dir
Specifies the project directory to use (default: cwd)
- -d, --dep-set
Uses dependencies from specified dep-set instead of ‘default-dev’
- -a, --anonymous-git
Clones git repositories in ‘anonymous’ mode
Default: False
init
Creates an initial ivpm.yaml file
ivpm init [-h] [-v VERSION] [-f] name
Positional Arguments
- name
Named Arguments
- -v, --version
Default: “0.0.1”
- -f, --force
Default: False
git-status
Runs git status on any git packages
ivpm git-status [-h] [-p PROJECT_DIR]
Named Arguments
- -p, -project-dir
git-update
Undocumented
ivpm git-update [-h] [-p PROJECT_DIR]
Named Arguments
- -p, -project-dir
snapshot
Creates a snapshot of required packages
ivpm snapshot [-h] [-p PROJECT_DIR] [-r] snapshot_dir
Positional Arguments
- snapshot_dir
Specifies the directory where the snapshot will be created
Named Arguments
- -p, -project-dir
- -r, --rls-deps
Uses release deps from project root instead of dev deps
Default: False
YAML File Format
Package Definition
type |
object |
|
properties |
||
|
Name of the package |
|
type |
string |
|
|
List of named depdendency sets |
|
type |
array |
|
items |
Named package-dependency set
type |
object |
|
properties |
||
|
Dependency-set identifier. ‘default’ and ‘default-dev’ are builtin names |
|
type |
string |
|
|
Package dependencies |
|
type |
array |
|
items |
Package Dependency specification
type |
object |
||
properties |
|||
|
[‘name’] |
||
|
Package identifier |
||
type |
string |
||
|
URL from which to obtain the dependency. Used for all execpt ‘pypi’ |
||
type |
string |
||
|
Specifies the source type. Most of the time auto-detect works |
||
type |
string |
||
oneOf |
URL points to a Git repository |
||
const |
git |
||
URL points to a .jar file. IVPM will not expand |
|||
const |
jar |
||
URL points to a gzip-compressed TAR file. IVPM will expand |
|||
const |
tgz |
||
URL points to a xz-compressed TAR File. IVPM will expand |
|||
const |
txz |
||
URL points to a zip file. IPVM will expand |
|||
const |
zip |
||
Dependency name is a PyPi package to be installed with pip |
|||
const |
pypi |
||
|
Specifies package type. Most of the time auto-detect works |
||
type |
string |
||
oneOf |
Data package. IVPM will not attempt to interpret |
||
const |
raw |
||
Python package that IVPM will install into the venv |
|||
const |
python |
||
|
Version-specification string for Python packages from PyPi |
||
type |
string |
||
|
Clone using anonymous (non-PAT) Git |
||
type |
boolean |
||
|
Git branch to checkout |
||
type |
string |
||
|
Git tag to checkout |
||
type |
string |
||
|
Git commit to checkout |
||
type |
string |
||
|
When set to ‘skip’, sub-dependencies will not be loaded |
||
type |
string |
||
|
Git clone depth |
||
type |
integer |
||
|
Assuming the target is an IVPM package, Specifies the named dep-set to use |
||
type |
string |