pantry/projects/opendev.org/openstack/python-openstackclient/package.yml

33 lines
676 B
YAML
Raw Normal View History

distributable:
url: https://opendev.org/openstack/python-openstackclient/archive/{{version}}.tar.gz
strip-components: 1
versions:
url: https://opendev.org/api/v1/repos/openstack/python-openstackclient/tags
match: /"name":"\d+\.\d+\.\d+"/
strip:
- /^"name":"/
- /"$/
dependencies:
pkgx.sh: ^1
build:
dependencies:
python.org: ^3
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} openstack openstack-inventory
provides:
- bin/openstack
- bin/openstack-inventory
test:
env:
TERM: vt100
script:
- openstack help server list
- openstack-inventory --help