Retire project

Leave README around for those that follow.

http://lists.openstack.org/pipermail/openstack-discuss/2019-February/003186.html
http://lists.openstack.org/pipermail/openstack-discuss/2018-November/000057.html

Change-Id: I3474873ffdf7162fff2bbda9c1b37eed33084392
This commit is contained in:
Ryan Beisner 2018-11-01 20:50:00 -05:00
parent 1f275b39e9
commit 199c67b69f
No known key found for this signature in database
GPG Key ID: 952BACDC1C1A05FB
7 changed files with 7 additions and 94 deletions

View File

@ -1,3 +1,3 @@
- project:
templates:
- python-charm-interface-jobs
- noop-jobs

6
README.md Normal file
View File

@ -0,0 +1,6 @@
This project is no longer maintained.
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".

View File

@ -1,9 +0,0 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
Files: *
Copyright: 2015, Canonical Ltd.
License: GPL-3
License: GPL-3
On Debian GNU/Linux system you can find the complete text of the
GPL-3 license in '/usr/share/common-licenses/GPL-3'

View File

@ -1,3 +0,0 @@
name: odl-controller-api
summary: Interface for intergrating with an OpenDayLight Controller RESTful API
maintainer: James Page <james.page@ubuntu.com>

View File

@ -1,38 +0,0 @@
from charms.reactive import hook
from charms.reactive import RelationBase
from charms.reactive import scopes
class ControllerAPIRequires(RelationBase):
scope = scopes.GLOBAL
auto_accessors = ['private-address', 'host', 'port',
'username', 'password']
@hook('{requires:odl-controller-api}-relation-{joined,changed,departed}')
def changed(self):
self.set_state('{relation_name}.connected')
if self.connection():
self.set_state('{relation_name}.available')
else:
self.remove_state('{relation_name}.available')
@hook('{requires:odl-controller-api}-relation-broken')
def broken(self):
self.remove_state('{relation_name}.connected')
self.remove_state('{relation_name}.available')
def connection(self):
"""OpenDayLight Controller Access Details
Returns a dict of key value pairs for accessing the ODL controller API.
"""
data = {
'host': self.host() or self.private_address(),
'port': self.port() or '8181',
'username': self.username(),
'password': self.password(),
}
if all(data.values()):
return data
else:
return None

View File

@ -1,2 +0,0 @@
flake8>=2.2.4,<=2.4.1
os-testr>=0.4.1

41
tox.ini
View File

@ -1,41 +0,0 @@
[tox]
envlist = pep8,py27,py34,py35
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
install_command =
pip install {opts} {packages}
commands = ostestr {posargs}
[testenv:py27]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:py35]
basepython = python3.5
deps = -r{toxinidir}/test-requirements.txt
# TODO: Need to write unit tests then remove the following command.
commands = /bin/true
[testenv:pep8]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
ignore = E402,E226