Add .gitreview file. pep8 fixes
Change-Id: Ibe974423bd1bc302e4cd416dbef1758374842abf
This commit is contained in:
parent
92c5963378
commit
fffe8692cd
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=stackforge/python-monascaclient.git
|
@ -1,9 +1,9 @@
|
|||||||
pbr>=0.6,<1.0
|
|
||||||
argparse
|
argparse
|
||||||
|
babel
|
||||||
iso8601>=0.1.8
|
iso8601>=0.1.8
|
||||||
|
pbr>=0.6,<1.0
|
||||||
PrettyTable>=0.7,<0.8
|
PrettyTable>=0.7,<0.8
|
||||||
python-keystoneclient>=0.6.0
|
python-keystoneclient>=0.6.0
|
||||||
PyYAML>=3.1.0
|
PyYAML>=3.1.0
|
||||||
six>=1.4.1
|
|
||||||
requests>=1.1
|
requests>=1.1
|
||||||
babel
|
six>=1.4.1
|
||||||
|
11
setup.cfg
11
setup.cfg
@ -1,9 +1,9 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = python-monclient
|
name = python-monascaclient
|
||||||
summary = Monitoring API Client Library
|
summary = Monasca API Client Library
|
||||||
description-file = README.rst
|
description-file = README.rst
|
||||||
author = Hewlett-Packard
|
author = Hewlett-Packard
|
||||||
home-page = https://git.hpcloud.net/mon/python-monclient
|
home-page = https://github.com/stackforge/python-monascaclient
|
||||||
classifier =
|
classifier =
|
||||||
Environment :: Console
|
Environment :: Console
|
||||||
Intended Audience :: Information Technology
|
Intended Audience :: Information Technology
|
||||||
@ -29,10 +29,5 @@ console_scripts =
|
|||||||
[pbr]
|
[pbr]
|
||||||
autodoc_index_modules = True
|
autodoc_index_modules = True
|
||||||
|
|
||||||
[build_sphinx]
|
|
||||||
all_files = 1
|
|
||||||
build-dir = doc/build
|
|
||||||
source-dir = doc/source
|
|
||||||
|
|
||||||
[wheel]
|
[wheel]
|
||||||
universal = 1
|
universal = 1
|
||||||
|
4
setup.py
4
setup.py
@ -1,5 +1,5 @@
|
|||||||
from setuptools import setup
|
import setuptools
|
||||||
|
|
||||||
setup(
|
setuptools.setup(
|
||||||
setup_requires=['pbr'],
|
setup_requires=['pbr'],
|
||||||
pbr=True)
|
pbr=True)
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# Hacking already pins down pep8, pyflakes and flake8
|
# Hacking already pins down pep8, pyflakes and flake8
|
||||||
tox>=1.6,<1.7
|
#tox>=1.6,<1.7
|
||||||
hacking>=0.8.0,<0.9
|
|
||||||
coverage>=3.6
|
coverage>=3.6
|
||||||
discover
|
discover
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
|
hacking>=0.8.0,<0.9
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
mox3>=0.7.0
|
mox3>=0.7.0
|
||||||
sphinx>=1.1.2,<1.2
|
sphinx>=1.1.2,<1.2
|
||||||
testscenarios>=0.4
|
|
||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
|
testscenarios>=0.4
|
||||||
testtools>=0.9.34
|
testtools>=0.9.34
|
||||||
|
@ -24,4 +24,4 @@ _mon()
|
|||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
complete -o default -o nospace -F _mon mon
|
complete -o default -F _mon mon
|
||||||
|
32
tools/requirements_style_check.sh
Executable file
32
tools/requirements_style_check.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Enforce the requirement that dependencies are listed in the input
|
||||||
|
# files in alphabetical order.
|
||||||
|
|
||||||
|
# FIXME(dhellmann): This doesn't deal with URL requirements very
|
||||||
|
# well. We should probably sort those on the egg-name, rather than the
|
||||||
|
# full line.
|
||||||
|
|
||||||
|
function check_file() {
|
||||||
|
typeset f=$1
|
||||||
|
|
||||||
|
# We don't care about comment lines.
|
||||||
|
grep -v '^#' $f > ${f}.unsorted
|
||||||
|
sort -i -f ${f}.unsorted > ${f}.sorted
|
||||||
|
diff -c ${f}.unsorted ${f}.sorted
|
||||||
|
rc=$?
|
||||||
|
rm -f ${f}.sorted ${f}.unsorted
|
||||||
|
return $rc
|
||||||
|
}
|
||||||
|
|
||||||
|
exit_code=0
|
||||||
|
for filename in $@
|
||||||
|
do
|
||||||
|
check_file $filename
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "Please list requirements in $filename in alphabetical order" 1>&2
|
||||||
|
exit_code=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit $exit_code
|
5
tox.ini
5
tox.ini
@ -13,6 +13,7 @@ commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
{toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
@ -27,6 +28,6 @@ downloadcache = ~/cache/pip
|
|||||||
[flake8]
|
[flake8]
|
||||||
show-source = True
|
show-source = True
|
||||||
# H302: Do not import objects, only modules
|
# H302: Do not import objects, only modules
|
||||||
ignore = H302
|
ignore = H302,H803
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,client_api_example.py,*openstack/common*,*lib/python*,*egg,build
|
||||||
|
Loading…
Reference in New Issue
Block a user