Initial snap

This commit is contained in:
James Page 2017-01-24 14:44:36 +00:00
commit 854c25ede4
8 changed files with 235 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
parts
prime
stage
*.snap
*.bz2
.tox

17
CONTRIBUTING.rst Normal file
View File

@ -0,0 +1,17 @@
If you would like to contribute to the development of OpenStack, you must
follow the steps in this page:
http://docs.openstack.org/infra/manual/developers.html
If you already have a good understanding of how the system works and your
OpenStack accounts are set up, you can skip to the development workflow
section of this documentation to learn how changes to OpenStack should be
submitted for review via the Gerrit tool:
http://docs.openstack.org/infra/manual/developers.html#development-workflow
Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.net/snap-openstackclients

23
README.md Normal file
View File

@ -0,0 +1,23 @@
# OpenStack Clients Snap
This repository contains the source code of the snap for all OpenStack Client
tools.
## Installing this snap
The openstackclients snap can be installed directly from the snap store:
sudo snap install --edge --classic openstackclients
then setup the aliases for all client tools (this will automatically happen at
some point in the future):
ls -1 /snap/bin/openstackclients.* | cut -f 2 -d . | xargs sudo snap alias openstackclients
## Support
Please report any bugs related to this snap on
[Launchpad](https://bugs.launchpad.net/snap-openstackclients/+filebug).
Alternatively you can find the OpenStack Snap team in `#openstack-snaps`
on Freenode IRC.

1
bindep.txt Normal file
View File

@ -0,0 +1 @@
snapcraft [platform:dpkg]

9
generate-cmds Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
for i in aodh barbican ceilometer cloudkitty congress designate freezer glance heat ironic magnum manila mistral monasca murano sahara searchlight senlin swift tacker trove vitrage watch zaqar; do
echo " $i:
command: bin/$i
aliases:
- $i"
done

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
# Requirements to build snap
# NOTE empty for now until snapcraft installable from branch

163
snapcraft.yaml Normal file
View File

@ -0,0 +1,163 @@
name: openstackclients
version: newton
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: classic
grade: devel
apps:
openstack:
command: bin/openstack
aliases:
- openstack
glance:
command: bin/glance
aliases:
- glance
neutron:
command: bin/neutron
aliases:
- neutron
nova:
command: bin/nova
aliases:
- nova
cinder:
command: bin/cinder
aliases:
- cinder
aodh:
command: bin/aodh
aliases:
- aodh
barbican:
command: bin/barbican
aliases:
- barbican
ceilometer:
command: bin/ceilometer
aliases:
- ceilometer
cloudkitty:
command: bin/cloudkitty
aliases:
- cloudkitty
designate:
command: bin/designate
aliases:
- designate
freezer:
command: bin/freezer
aliases:
- freezer
glance:
command: bin/glance
aliases:
- glance
heat:
command: bin/heat
aliases:
- heat
ironic:
command: bin/ironic
aliases:
- ironic
magnum:
command: bin/magnum
aliases:
- magnum
manila:
command: bin/manila
aliases:
- manila
mistral:
command: bin/mistral
aliases:
- mistral
monasca:
command: bin/monasca
aliases:
- monasca
murano:
command: bin/murano
aliases:
- murano
sahara:
command: bin/sahara
aliases:
- sahara
senlin:
command: bin/senlin
aliases:
- senlin
swift:
command: bin/swift
aliases:
- swift
tacker:
command: bin/tacker
aliases:
- tacker
trove:
command: bin/trove
aliases:
- trove
vitrage:
command: bin/vitrage
aliases:
- vitrage
watcher:
command: bin/watcher
aliases:
- watcher
parts:
openstackclients:
plugin: python
python-version: python3
python-packages:
- aodhclient
- python-barbicanclient
- python-ceilometerclient
- python-cloudkittyclient
- python-congressclient
- python-designateclient
- python-freezerclient
- python-glanceclient
- python-heatclient
- python-ironicclient
- python-keystoneclient
- python-magnumclient
- python-manilaclient
- python-mistralclient
- python-monascaclient
- python-muranoclient
- python-saharaclient
- python-searchlightclient
- python-senlinclient
- python-swiftclient
- python-tackerclient
- python-troveclient
- python-vitrageclient
- python-watcherclient
- python-zaqarclient
- python-neutronclient
- python-openstackclient
constraints: https://raw.githubusercontent.com/openstack/requirements/stable/newton/upper-constraints.txt
build-packages:
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- pkg-config
- gcc

14
tox.ini Normal file
View File

@ -0,0 +1,14 @@
[tox]
envlist = snap
skipsdist = True
[testenv]
basepython = python3.5
install_command = pip install {opts} {packages}
passenv = HOME TERM
[testenv:snap]
deps = -r{toxinidir}/requirements.txt
commands =
snapcraft clean
snapcraft snap