Fix the tools directory files

For some reason .venv wouldn't install the pip
packages. Fixed installation.

Change-Id: I5a80c42976c9534290f278561dc2e23edd5a04a9
This commit is contained in:
Dimitri Mazmanov 2015-11-13 14:28:33 +01:00
parent 09c99dc02d
commit 83a3c784af
6 changed files with 59 additions and 9 deletions

53
.gitignore vendored Normal file
View File

@ -0,0 +1,53 @@
*.py[cod]
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
.testrepository
.venv
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Complexity
output/*.html
output/*/index.html
# Sphinx
doc/build
# pbr generates these
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?

View File

@ -9,4 +9,3 @@ namespace = oslo.db
namespace = oslo.log
namespace = oslo.messaging
namespace = oslo.policy

1
tools/gen-config Normal file → Executable file
View File

@ -1,4 +1,3 @@
#!/bin/sh
oslo-config-generator --config-file=tools/config-generator.conf

View File

@ -12,11 +12,10 @@
from __future__ import print_function
import install_venv_common as install_venv
import os
import sys
import install_venv_common as install_venv
def print_help(venv, root):
help = """
@ -25,7 +24,7 @@ def print_help(venv, root):
Kingbird development uses virtualenv to track and manage Python
dependencies while in development and testing.
To activate the Nova virtualenv for the extent of your current shell
To activate the Kingbird virtualenv for the extent of your current shell
session you can run:
$ source %s/bin/activate
@ -62,5 +61,6 @@ def main(argv):
install.install_dependencies()
print_help(venv, root)
if __name__ == '__main__':
main(sys.argv)

7
tools/setup-service Normal file → Executable file
View File

@ -5,7 +5,7 @@ if [ $# -ne 2 ]; then
exit -1
fi
PORT=8778
PORT=8118
HOST=$1 # Put your host IP here
SVC_PASSWD=$2
@ -13,9 +13,9 @@ SERVICE_ID=$(openstack service show kingbird -f value -cid 2>/dev/null)
if [[ -z $SERVICE_ID ]]; then
SERVICE_ID=$(openstack service create \
--name kingbird \
--description 'Kingbird Service V1' \
--description 'Kingbird Service V1.0' \
-f value -cid \
synchronisation)
multisite)
fi
if [[ -z $SERVICE_ID ]]; then
@ -44,4 +44,3 @@ openstack role add \
service \
--user kingbird \
--project demo

0
tools/with-env.sh → tools/with_venv.sh Normal file → Executable file
View File