fix(openstack)

use new tooling (old depended on `which`)

closes #5078
This commit is contained in:
Jacob Heider 2024-02-01 12:22:52 -05:00 committed by Jacob Heider
parent f39be11032
commit 0bfec00a12

View file

@ -2,24 +2,23 @@ distributable:
url: https://opendev.org/openstack/python-openstackclient/archive/{{version}}.tar.gz
strip-components: 1
# if theres a github then we can parse the versions
versions:
url: https://opendev.org/api/v1/repos/openstack/python-openstackclient/tags
match: /"name":"\d+\.\d+\.\d+"/
# often maintainers prepend or append junk, this can be a single or an array of regexes.
# almost always required with web scraping.
strip:
- /^"name":"/
- /"$/
dependencies:
python.org: ^3
pkgx.sh: ^1
build:
script: |
python-venv.py {{prefix}}/bin/openstack
python-venv.py {{prefix}}/bin/openstack-inventory
dependencies:
python.org: ^3
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
- bkpyvenv seal {{prefix}} openstack openstack-inventory
provides:
- bin/openstack