![Pete Vander Giessen](/assets/img/avatar_default.png)
This commit takes the cookie cutter output and fixes it up into a snap that builds and installs. - Added required names and such in openstack-snap.yaml and nginx and wsgi config templates. - Python packages that are declared in setup.cfg and not in requirements.txt are now called out explicitly in the snapcraft.yaml. (Note: a better fix might be to update snapcraft to be able to parse dependencies from setup.cfg.) - Removed upper constraints files on Python packages (and removed oslo patch). Gnocchi does not appear to respect the upper constraints. - Added gnocchi-config-generator command to apps. - Used the above to generate a default config. - Added snapstack tests (though they don't work yet). There's still plenty to do: snapstack tests need to be fixed up (see the TODO in tests/gnocchi.sh), and the snap as a whole needs to be thoroughly tested.
24 lines
399 B
INI
24 lines
399 B
INI
[tox]
|
|
envlist = snap
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3.5
|
|
install_command = pip install {opts} {packages}
|
|
passenv =
|
|
HOME
|
|
TERM
|
|
SNAPSTACK_HTTP_PROXY
|
|
SNAPSTACK_HTTPS_PROXY
|
|
whitelist_externals =
|
|
sudo
|
|
snapcraft
|
|
|
|
[testenv:snap]
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
git+https://github.com/openstack-snaps/snapstack
|
|
pytest
|
|
commands =
|
|
py.test -s tests/
|