snap-openstackclients/snapcraft.yaml
James Page 4c0fdd1d73 Update to core22 base
Misc refresh of snapcraft fields to align with requirements
for core22.

Change-Id: I5dcba7320b2ff2bf04e52542e1c1f426fa64afdc
2022-10-28 10:00:42 +02:00

202 lines
4.2 KiB
YAML

name: openstackclients
version: zed
summary: OpenStack Client tools
description: |
OpenStackClient (aka OSC) is a command-line client for OpenStack
that brings the command set for Compute, Identity, Image, Object
Store and Block Storage APIs together in a single shell with a
uniform command structure.
.
The primary goal is to provide a unified shell command structure
and a common language to describe operations in OpenStack.
.
This snap provides the openstack command-line client and other
project specific command-line clients.
confinement: strict
grade: stable
base: core22
environment:
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
PYTHONIOENCODING: utf-8
plugs:
dot-config-openstack:
interface: personal-files
read:
- $HOME/.config/openstack
etc-openstack:
interface: system-files
read:
- /etc/openstack
apps:
openstack:
command: bin/openstack
completer: usr/share/bash-completion/completions/openstack
plugs:
- network
- home
- dot-config-openstack
- etc-openstack
- ssh-public-keys
glance:
command: bin/glance
plugs:
- network
- home
gnocchi:
command: bin/gnocchi
plugs:
- network
- home
neutron:
command: bin/neutron
plugs:
- network
- home
nova:
command: bin/nova
plugs:
- network
- home
- ssh-public-keys
cinder:
command: bin/cinder
plugs:
- network
- home
aodh:
command: bin/aodh
plugs:
- network
- home
barbican:
command: bin/barbican
plugs:
- network
- home
cloudkitty:
command: bin/cloudkitty
plugs:
- network
- home
freezer:
command: bin/freezer
plugs:
- network
- home
heat:
command: bin/heat
plugs:
- network
- home
magnum:
command: bin/magnum
plugs:
- network
- home
manila:
command: bin/manila
plugs:
- network
- home
mistral:
command: bin/mistral
plugs:
- network
- home
monasca:
command: bin/monasca
plugs:
- network
- home
murano:
command: bin/murano
plugs:
- network
- home
swift:
command: bin/swift
plugs:
- network
- home
tacker:
command: bin/tacker
plugs:
- network
- home
trove:
command: bin/trove
plugs:
- network
- home
vitrage:
command: bin/vitrage
plugs:
- network
- home
watcher:
command: bin/watcher
plugs:
- network
- home
parts:
openstackclients:
plugin: python
source: .
python-packages:
- aodhclient
- osc-placement
- python-barbicanclient
- python-cloudkittyclient
- python-congressclient
- python-designateclient
- python-freezerclient
- python-glanceclient
- python-heatclient
- python-ironicclient
- python-keystoneclient
- python-magnumclient
- python-manilaclient
- python-masakariclient
- python-mistralclient
- python-monascaclient
- python-muranoclient
- python-saharaclient
- python-senlinclient
- python-swiftclient
- python-tackerclient
- python-troveclient
- python-vitrageclient
- python-watcherclient
- python-zaqarclient
- python-neutronclient
- python-openstackclient
- gnocchiclient
- python-octaviaclient
- setuptools_scm
- toml
- setuptools-rust
- Cython
python-constraints:
- https://raw.githubusercontent.com/openstack/requirements/stable/zed/upper-constraints.txt
build-packages:
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- pkg-config
- gcc
- cython3
- rustc
- cargo
override-prime: |
craftctl default
# This is the last step, let's now compile all our pyc files.
./bin/python3 -m compileall .
# Generate completer script snippets
mkdir -p usr/share/bash-completion/completions
./bin/openstack complete > usr/share/bash-completion/completions/openstack
echo "complete -F _openstack openstackclients.openstack" >> usr/share/bash-completion/completions/openstack