Support charm-helpers from submodule
This commit is contained in:
parent
42258023c2
commit
b30ed57436
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
lib
|
|
||||||
.tox
|
.tox
|
||||||
test-decrpyt.py
|
|
||||||
.swp
|
.swp
|
||||||
__pycache__
|
__pycache__
|
||||||
.stestr/
|
.stestr/
|
||||||
|
lib/*
|
||||||
|
!lib/README.txt
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -7,3 +7,6 @@
|
|||||||
[submodule "mod/ops-openstack"]
|
[submodule "mod/ops-openstack"]
|
||||||
path = mod/ops-openstack
|
path = mod/ops-openstack
|
||||||
url = https://github.com/gnuoy/ops-openstack.git
|
url = https://github.com/gnuoy/ops-openstack.git
|
||||||
|
[submodule "mod/charm-helpers"]
|
||||||
|
path = mod/charm-helpers
|
||||||
|
url = https://github.com/juju/charm-helpers.git
|
||||||
|
2
build-requirements.txt
Normal file
2
build-requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mod/charm-helpers
|
||||||
|
#file:///home/ubuntu/branches/ceph-iscsi/mod/charm-helpers
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rm -rf lib/*
|
rm -rf lib/*
|
||||||
rm adapters.py interface_ceph_client.py ops ops_openstack.py
|
|
||||||
|
|
||||||
pip install -t lib/ git+https://github.com/juju/charm-helpers.git
|
pip install -t lib/ git+https://github.com/juju/charm-helpers.git
|
||||||
|
|
||||||
|
1
lib/README.txt
Normal file
1
lib/README.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Only generated files should be in here
|
1
mod/charm-helpers
Submodule
1
mod/charm-helpers
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit f3f36f85f54380a651ba05972e78467ad22468e3
|
40
tox.ini
40
tox.ini
@ -1,12 +1,5 @@
|
|||||||
# Classic charm (with zaza): ./tox.ini
|
# Operator charm (with zaza): tox.ini
|
||||||
# This file is managed centrally by release-tools and should not be modified
|
|
||||||
# within individual charm repos. See the 'global' dir contents for available
|
|
||||||
# choices of tox.ini for OpenStack Charms:
|
|
||||||
# https://github.com/openstack-charmers/release-tools
|
|
||||||
#
|
|
||||||
# TODO: Distill the func test requirements from the lint/unit test
|
|
||||||
# requirements. They are intertwined. Also, Zaza itself should specify
|
|
||||||
# all of its own requirements and if it doesn't, fix it there.
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = pep8,py3
|
envlist = pep8,py3
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
@ -22,7 +15,9 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
install_command =
|
install_command =
|
||||||
pip install {opts} {packages}
|
pip install {opts} {packages}
|
||||||
commands = stestr run --slowest {posargs}
|
commands = stestr run --slowest {posargs}
|
||||||
whitelist_externals = juju
|
whitelist_externals =
|
||||||
|
git
|
||||||
|
ln
|
||||||
passenv = HOME TERM CS_* OS_* TEST_*
|
passenv = HOME TERM CS_* OS_* TEST_*
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
@ -84,6 +79,31 @@ omit =
|
|||||||
basepython = python3
|
basepython = python3
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
[testenv:build]
|
||||||
|
basepython = python3
|
||||||
|
deps =
|
||||||
|
commands =
|
||||||
|
git submodule update --init
|
||||||
|
pip install -t lib -r build-requirements.txt
|
||||||
|
ln -f -t lib -s ../mod/operator/ops
|
||||||
|
ln -f -t lib -s ../mod/interface-ceph-client/interface_ceph_client.py
|
||||||
|
ln -f -t lib -s ../mod/ops-openstack/ops_openstack.py
|
||||||
|
ln -f -t lib -s ../mod/ops-openstack/adapters.py
|
||||||
|
|
||||||
|
[testenv:update-deps]
|
||||||
|
basepython = python3
|
||||||
|
deps =
|
||||||
|
commands =
|
||||||
|
git submodule update --init
|
||||||
|
git -C mod/operator pull origin master
|
||||||
|
git -C mod/ops-openstack pull origin master
|
||||||
|
git -C mod/charm-helpers pull origin master
|
||||||
|
pip install -t lib -r build-requirements.txt --upgrade
|
||||||
|
ln -f -t lib -s ../mod/operator/ops
|
||||||
|
ln -f -t lib -s ../mod/interface-ceph-client/interface_ceph_client.py
|
||||||
|
ln -f -t lib -s ../mod/ops-openstack/ops_openstack.py
|
||||||
|
ln -f -t lib -s ../mod/ops-openstack/adapters.py
|
||||||
|
|
||||||
[testenv:func-noop]
|
[testenv:func-noop]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user