From 854c25ede4c22542ad93802f5a23b9dba3df1014 Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 24 Jan 2017 14:44:36 +0000 Subject: [PATCH] Initial snap --- .gitignore | 6 ++ CONTRIBUTING.rst | 17 +++++ README.md | 23 +++++++ bindep.txt | 1 + generate-cmds | 9 +++ requirements.txt | 2 + snapcraft.yaml | 163 +++++++++++++++++++++++++++++++++++++++++++++++ tox.ini | 14 ++++ 8 files changed, 235 insertions(+) create mode 100644 .gitignore create mode 100644 CONTRIBUTING.rst create mode 100644 README.md create mode 100644 bindep.txt create mode 100644 generate-cmds create mode 100644 requirements.txt create mode 100644 snapcraft.yaml create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d347f81 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +parts +prime +stage +*.snap +*.bz2 +.tox diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst new file mode 100644 index 0000000..23645f2 --- /dev/null +++ b/CONTRIBUTING.rst @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..f28ac3c --- /dev/null +++ b/README.md @@ -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. diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 0000000..5816a55 --- /dev/null +++ b/bindep.txt @@ -0,0 +1 @@ +snapcraft [platform:dpkg] diff --git a/generate-cmds b/generate-cmds new file mode 100644 index 0000000..1ff38a0 --- /dev/null +++ b/generate-cmds @@ -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 + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4b00533 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +# Requirements to build snap +# NOTE empty for now until snapcraft installable from branch diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 0000000..61f2f8d --- /dev/null +++ b/snapcraft.yaml @@ -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 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..997c257 --- /dev/null +++ b/tox.ini @@ -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