Remove pyflakes jobs
pyflakes is run py flake8. Patches have been submitted to all project to ensure that they are using flake8 instead. Change-Id: I541e47911e4dd79626646f66320d16ad0b2dc881
This commit is contained in:
parent
1c70ce9072
commit
7409bde2b7
@ -1,31 +0,0 @@
|
|||||||
#!/bin/bash -xe
|
|
||||||
|
|
||||||
# Copyright 2013 OpenStack Foundation
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
org=$1
|
|
||||||
project=$2
|
|
||||||
|
|
||||||
if [[ -z "$org" || -z "$project" ]]
|
|
||||||
then
|
|
||||||
echo "Usage: $0 ORG PROJECT"
|
|
||||||
echo
|
|
||||||
echo "ORG: The project organization (eg 'openstack')"
|
|
||||||
echo "PROJECT: The project name (eg 'nova')"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
source /usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
|
||||||
|
|
||||||
tox -v -epyflakes
|
|
@ -38,7 +38,6 @@ class jenkins::params {
|
|||||||
$mongodb_package = 'mongodb-server'
|
$mongodb_package = 'mongodb-server'
|
||||||
$pandoc_package = 'pandoc'
|
$pandoc_package = 'pandoc'
|
||||||
$pkgconfig_package = 'pkgconfig'
|
$pkgconfig_package = 'pkgconfig'
|
||||||
$pyflakes_package = 'pyflakes'
|
|
||||||
$python_libvirt_package = 'libvirt-python'
|
$python_libvirt_package = 'libvirt-python'
|
||||||
$python_lxml_package = 'python-lxml'
|
$python_lxml_package = 'python-lxml'
|
||||||
$python_zmq_package = 'python-zmq'
|
$python_zmq_package = 'python-zmq'
|
||||||
@ -98,7 +97,6 @@ class jenkins::params {
|
|||||||
$mongodb_package = 'mongodb'
|
$mongodb_package = 'mongodb'
|
||||||
$pandoc_package = 'pandoc'
|
$pandoc_package = 'pandoc'
|
||||||
$pkgconfig_package = 'pkg-config'
|
$pkgconfig_package = 'pkg-config'
|
||||||
$pyflakes_package = 'pyflakes'
|
|
||||||
$python_libvirt_package = 'python-libvirt'
|
$python_libvirt_package = 'python-libvirt'
|
||||||
$python_lxml_package = 'python-lxml'
|
$python_lxml_package = 'python-lxml'
|
||||||
$python_zmq_package = 'python-zmq'
|
$python_zmq_package = 'python-zmq'
|
||||||
|
@ -51,7 +51,6 @@ class jenkins::slave(
|
|||||||
$::jenkins::params::libffi_dev_package, # xattr's cffi dependency
|
$::jenkins::params::libffi_dev_package, # xattr's cffi dependency
|
||||||
$::jenkins::params::pandoc_package, #for docs, markdown->docbook, bug 924507
|
$::jenkins::params::pandoc_package, #for docs, markdown->docbook, bug 924507
|
||||||
$::jenkins::params::pkgconfig_package, # for spidermonkey, used by ceilometer
|
$::jenkins::params::pkgconfig_package, # for spidermonkey, used by ceilometer
|
||||||
$::jenkins::params::pyflakes_package,
|
|
||||||
$::jenkins::params::python_libvirt_package,
|
$::jenkins::params::python_libvirt_package,
|
||||||
$::jenkins::params::python_lxml_package, # for validating openstack manuals
|
$::jenkins::params::python_lxml_package, # for validating openstack manuals
|
||||||
$::jenkins::params::python_zmq_package, # zeromq unittests (not pip installable)
|
$::jenkins::params::python_zmq_package, # zeromq unittests (not pip installable)
|
||||||
|
@ -57,11 +57,6 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-pylint.sh {github-org} {project}"
|
- shell: "/usr/local/jenkins/slave_scripts/run-pylint.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
|
||||||
name: pyflakes
|
|
||||||
builders:
|
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-pyflakes.sh {github-org} {project}"
|
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: puppet-lint
|
name: puppet-lint
|
||||||
builders:
|
builders:
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-puppet-lint
|
- gate-{name}-puppet-lint
|
||||||
- gate-{name}-puppet-syntax
|
- gate-{name}-puppet-syntax
|
||||||
- gate-{name}-pyflakes
|
- gate-{name}-pep8
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: savanna
|
name: savanna
|
||||||
@ -231,7 +231,6 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-pep8
|
- gate-{name}-pep8
|
||||||
- gate-{name}-pyflakes
|
|
||||||
- '{name}-tarball'
|
- '{name}-tarball'
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
@ -244,7 +243,6 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-pep8
|
- gate-{name}-pep8
|
||||||
- gate-{name}-pyflakes
|
|
||||||
- '{name}-tarball'
|
- '{name}-tarball'
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
@ -431,7 +429,6 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: keystone
|
name: keystone
|
||||||
@ -532,7 +529,6 @@
|
|||||||
- python-jobs
|
- python-jobs
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
@ -546,7 +542,6 @@
|
|||||||
- python-jobs
|
- python-jobs
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: oslo.sphinx
|
name: oslo.sphinx
|
||||||
@ -559,7 +554,6 @@
|
|||||||
- python-jobs
|
- python-jobs
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
@ -585,7 +579,6 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- openstack-publish-jobs
|
- openstack-publish-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
@ -856,7 +849,6 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
|
|
||||||
@ -919,7 +911,6 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
|
||||||
|
|
||||||
@ -1249,7 +1240,6 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- gate-{name}-pyflakes
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: taskflow
|
name: taskflow
|
||||||
|
@ -154,20 +154,6 @@
|
|||||||
node: '{node}'
|
node: '{node}'
|
||||||
|
|
||||||
|
|
||||||
- job-template:
|
|
||||||
name: 'gate-{name}-pyflakes'
|
|
||||||
node: precise
|
|
||||||
|
|
||||||
builders:
|
|
||||||
- gerrit-git-prep
|
|
||||||
- pyflakes:
|
|
||||||
github-org: '{github-org}'
|
|
||||||
project: '{name}'
|
|
||||||
|
|
||||||
publishers:
|
|
||||||
- console-log
|
|
||||||
|
|
||||||
|
|
||||||
- job-template:
|
- job-template:
|
||||||
name: '{name}-tarball'
|
name: '{name}-tarball'
|
||||||
node: precise
|
node: precise
|
||||||
@ -235,5 +221,4 @@
|
|||||||
- 'gate-{name}-requirements'
|
- 'gate-{name}-requirements'
|
||||||
- '{name}-tarball'
|
- '{name}-tarball'
|
||||||
- '{name}-branch-tarball'
|
- '{name}-branch-tarball'
|
||||||
# pyflakes isn't standard
|
|
||||||
# pylint isn't standard
|
# pylint isn't standard
|
||||||
|
@ -36,8 +36,6 @@ jobs:
|
|||||||
voting: false
|
voting: false
|
||||||
- name: gate-nova-python26
|
- name: gate-nova-python26
|
||||||
branch: ^(?!stable/folsom).*$
|
branch: ^(?!stable/folsom).*$
|
||||||
- name: gate-oslo-incubator-pyflakes
|
|
||||||
branch: ^(?!stable/folsom).*$
|
|
||||||
- name: dev-zuul-coverage
|
- name: dev-zuul-coverage
|
||||||
voting: false
|
voting: false
|
||||||
- name: dev-heat-coverage
|
- name: dev-heat-coverage
|
||||||
@ -77,7 +75,6 @@ projects:
|
|||||||
check:
|
check:
|
||||||
- gate-zuul-pep8
|
- gate-zuul-pep8
|
||||||
- gate-zuul-docs
|
- gate-zuul-docs
|
||||||
- gate-zuul-pyflakes
|
|
||||||
- gate-zuul-python26
|
- gate-zuul-python26
|
||||||
- gate-zuul-python27
|
- gate-zuul-python27
|
||||||
- dev-zuul-coverage
|
- dev-zuul-coverage
|
||||||
@ -105,13 +102,11 @@ projects:
|
|||||||
- name: openstack-infra/jeepyb
|
- name: openstack-infra/jeepyb
|
||||||
check:
|
check:
|
||||||
- gate-jeepyb-pep8
|
- gate-jeepyb-pep8
|
||||||
- gate-jeepyb-pyflakes
|
|
||||||
|
|
||||||
- name: openstack-infra/jenkins-job-builder
|
- name: openstack-infra/jenkins-job-builder
|
||||||
check:
|
check:
|
||||||
- gate-jenkins-job-builder-docs
|
- gate-jenkins-job-builder-docs
|
||||||
- gate-jenkins-job-builder-pep8
|
- gate-jenkins-job-builder-pep8
|
||||||
- gate-jenkins-job-builder-pyflakes
|
|
||||||
- jenkins-job-builder-compare-xml
|
- jenkins-job-builder-compare-xml
|
||||||
|
|
||||||
- name: openstack-infra/lodgeit
|
- name: openstack-infra/lodgeit
|
||||||
@ -128,7 +123,7 @@ projects:
|
|||||||
- gate-config-layout
|
- gate-config-layout
|
||||||
- gate-config-puppet-lint
|
- gate-config-puppet-lint
|
||||||
- gate-config-puppet-syntax
|
- gate-config-puppet-syntax
|
||||||
- gate-config-pyflakes
|
- gate-config-pep8
|
||||||
|
|
||||||
- name: openstack-infra/puppet-apparmor
|
- name: openstack-infra/puppet-apparmor
|
||||||
check:
|
check:
|
||||||
@ -145,7 +140,6 @@ projects:
|
|||||||
- name: openstack-infra/reviewday
|
- name: openstack-infra/reviewday
|
||||||
check:
|
check:
|
||||||
- gate-reviewday-pep8
|
- gate-reviewday-pep8
|
||||||
- gate-reviewday-pyflakes
|
|
||||||
|
|
||||||
- name: openstack-infra/statusbot
|
- name: openstack-infra/statusbot
|
||||||
check:
|
check:
|
||||||
@ -228,7 +222,6 @@ projects:
|
|||||||
- gate-oslo-incubator-requirements
|
- gate-oslo-incubator-requirements
|
||||||
- gate-oslo-incubator-pep8
|
- gate-oslo-incubator-pep8
|
||||||
- gate-oslo-incubator-docs
|
- gate-oslo-incubator-docs
|
||||||
- gate-oslo-incubator-pyflakes
|
|
||||||
- gate-oslo-incubator-python26
|
- gate-oslo-incubator-python26
|
||||||
- gate-oslo-incubator-python27
|
- gate-oslo-incubator-python27
|
||||||
- gate-oslo-incubator-python33
|
- gate-oslo-incubator-python33
|
||||||
@ -509,14 +502,12 @@ projects:
|
|||||||
|
|
||||||
- name: stackforge/designate
|
- name: stackforge/designate
|
||||||
check:
|
check:
|
||||||
- gate-designate-pyflakes
|
|
||||||
- gate-designate-pep8
|
- gate-designate-pep8
|
||||||
- gate-designate-python26
|
- gate-designate-python26
|
||||||
- gate-designate-python27
|
- gate-designate-python27
|
||||||
|
|
||||||
- name: stackforge/python-designateclient
|
- name: stackforge/python-designateclient
|
||||||
check:
|
check:
|
||||||
- gate-python-designateclient-pyflakes
|
|
||||||
- gate-python-designateclient-pep8
|
- gate-python-designateclient-pep8
|
||||||
- gate-python-designateclient-python26
|
- gate-python-designateclient-python26
|
||||||
- gate-python-designateclient-python27
|
- gate-python-designateclient-python27
|
||||||
|
@ -162,8 +162,6 @@ jobs:
|
|||||||
branch: ^(?!stable/(folsom|grizzly)).*$
|
branch: ^(?!stable/(folsom|grizzly)).*$
|
||||||
- name: gate-nova-python26
|
- name: gate-nova-python26
|
||||||
branch: ^(?!stable/folsom).*$
|
branch: ^(?!stable/folsom).*$
|
||||||
- name: gate-oslo-incubator-pyflakes
|
|
||||||
branch: ^(?!stable/folsom).*$
|
|
||||||
- name: dev-zuul-coverage
|
- name: dev-zuul-coverage
|
||||||
voting: false
|
voting: false
|
||||||
- name: jenkins-job-builder-compare-xml
|
- name: jenkins-job-builder-compare-xml
|
||||||
@ -291,14 +289,12 @@ projects:
|
|||||||
check:
|
check:
|
||||||
- gate-zuul-pep8
|
- gate-zuul-pep8
|
||||||
- gate-zuul-docs
|
- gate-zuul-docs
|
||||||
- gate-zuul-pyflakes
|
|
||||||
- gate-zuul-python26
|
- gate-zuul-python26
|
||||||
- gate-zuul-python27
|
- gate-zuul-python27
|
||||||
- dev-zuul-coverage
|
- dev-zuul-coverage
|
||||||
gate:
|
gate:
|
||||||
- gate-zuul-docs
|
- gate-zuul-docs
|
||||||
- gate-zuul-pep8
|
- gate-zuul-pep8
|
||||||
- gate-zuul-pyflakes
|
|
||||||
- gate-zuul-python26
|
- gate-zuul-python26
|
||||||
- gate-zuul-python27
|
- gate-zuul-python27
|
||||||
post:
|
post:
|
||||||
@ -397,10 +393,8 @@ projects:
|
|||||||
- name: openstack-infra/jeepyb
|
- name: openstack-infra/jeepyb
|
||||||
check:
|
check:
|
||||||
- gate-jeepyb-pep8
|
- gate-jeepyb-pep8
|
||||||
- gate-jeepyb-pyflakes
|
|
||||||
gate:
|
gate:
|
||||||
- gate-jeepyb-pep8
|
- gate-jeepyb-pep8
|
||||||
- gate-jeepyb-pyflakes
|
|
||||||
pre-release:
|
pre-release:
|
||||||
- jeepyb-tarball
|
- jeepyb-tarball
|
||||||
release:
|
release:
|
||||||
@ -428,14 +422,12 @@ projects:
|
|||||||
check:
|
check:
|
||||||
- gate-jenkins-job-builder-docs
|
- gate-jenkins-job-builder-docs
|
||||||
- gate-jenkins-job-builder-pep8
|
- gate-jenkins-job-builder-pep8
|
||||||
- gate-jenkins-job-builder-pyflakes
|
|
||||||
- gate-jenkins-job-builder-python26
|
- gate-jenkins-job-builder-python26
|
||||||
- gate-jenkins-job-builder-python27
|
- gate-jenkins-job-builder-python27
|
||||||
- jenkins-job-builder-compare-xml
|
- jenkins-job-builder-compare-xml
|
||||||
gate:
|
gate:
|
||||||
- gate-jenkins-job-builder-docs
|
- gate-jenkins-job-builder-docs
|
||||||
- gate-jenkins-job-builder-pep8
|
- gate-jenkins-job-builder-pep8
|
||||||
- gate-jenkins-job-builder-pyflakes
|
|
||||||
- gate-jenkins-job-builder-python26
|
- gate-jenkins-job-builder-python26
|
||||||
- gate-jenkins-job-builder-python27
|
- gate-jenkins-job-builder-python27
|
||||||
post:
|
post:
|
||||||
@ -468,13 +460,11 @@ projects:
|
|||||||
- gate-config-layout
|
- gate-config-layout
|
||||||
- gate-config-puppet-lint
|
- gate-config-puppet-lint
|
||||||
- gate-config-puppet-syntax
|
- gate-config-puppet-syntax
|
||||||
- gate-config-pyflakes
|
|
||||||
- gate-ci-docs
|
- gate-ci-docs
|
||||||
gate:
|
gate:
|
||||||
- gate-config-layout
|
- gate-config-layout
|
||||||
- gate-config-puppet-lint
|
- gate-config-puppet-lint
|
||||||
- gate-config-puppet-syntax
|
- gate-config-puppet-syntax
|
||||||
- gate-config-pyflakes
|
|
||||||
post:
|
post:
|
||||||
- ci-docs
|
- ci-docs
|
||||||
|
|
||||||
@ -508,10 +498,8 @@ projects:
|
|||||||
- name: openstack-infra/reviewday
|
- name: openstack-infra/reviewday
|
||||||
check:
|
check:
|
||||||
- gate-reviewday-pep8
|
- gate-reviewday-pep8
|
||||||
- gate-reviewday-pyflakes
|
|
||||||
gate:
|
gate:
|
||||||
- gate-reviewday-pep8
|
- gate-reviewday-pep8
|
||||||
- gate-reviewday-pyflakes
|
|
||||||
post:
|
post:
|
||||||
- reviewday-branch-tarball
|
- reviewday-branch-tarball
|
||||||
- reviewday-coverage
|
- reviewday-coverage
|
||||||
@ -852,14 +840,12 @@ projects:
|
|||||||
- gate-oslo-incubator-requirements
|
- gate-oslo-incubator-requirements
|
||||||
- gate-oslo-incubator-pep8
|
- gate-oslo-incubator-pep8
|
||||||
- gate-oslo-incubator-docs
|
- gate-oslo-incubator-docs
|
||||||
- gate-oslo-incubator-pyflakes
|
|
||||||
- gate-oslo-incubator-python26
|
- gate-oslo-incubator-python26
|
||||||
- gate-oslo-incubator-python27
|
- gate-oslo-incubator-python27
|
||||||
gate:
|
gate:
|
||||||
- gate-oslo-incubator-requirements
|
- gate-oslo-incubator-requirements
|
||||||
- gate-oslo-incubator-docs
|
- gate-oslo-incubator-docs
|
||||||
- gate-oslo-incubator-pep8
|
- gate-oslo-incubator-pep8
|
||||||
- gate-oslo-incubator-pyflakes
|
|
||||||
- gate-oslo-incubator-python26
|
- gate-oslo-incubator-python26
|
||||||
- gate-oslo-incubator-python27
|
- gate-oslo-incubator-python27
|
||||||
experimental:
|
experimental:
|
||||||
@ -2959,11 +2945,9 @@ projects:
|
|||||||
|
|
||||||
- name: stackforge/barbican
|
- name: stackforge/barbican
|
||||||
check:
|
check:
|
||||||
- gate-barbican-pyflakes
|
|
||||||
- gate-barbican-pep8
|
- gate-barbican-pep8
|
||||||
- gate-barbican-python27
|
- gate-barbican-python27
|
||||||
gate:
|
gate:
|
||||||
- gate-barbican-pyflakes
|
|
||||||
- gate-barbican-pep8
|
- gate-barbican-pep8
|
||||||
- gate-barbican-python27
|
- gate-barbican-python27
|
||||||
post:
|
post:
|
||||||
|
16
setup.cfg
16
setup.cfg
@ -1,3 +1,19 @@
|
|||||||
|
[metadata]
|
||||||
|
name = openstack-infra-config
|
||||||
|
summary = OpenStack Infrastructure Config
|
||||||
|
description-file =
|
||||||
|
README.md
|
||||||
|
author = OpenStack Infrastructure Team
|
||||||
|
author-email = openstack-infra@lists.openstack.org
|
||||||
|
home-page = http://ci.openstack.org/
|
||||||
|
classifier =
|
||||||
|
Environment :: OpenStack
|
||||||
|
Intended Audience :: Information Technology
|
||||||
|
Intended Audience :: System Administrators
|
||||||
|
License :: OSI Approved :: Apache Software License
|
||||||
|
Operating System :: POSIX :: Linux
|
||||||
|
Programming Language :: Python
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
all_files = 1
|
all_files = 1
|
||||||
build-dir = doc/build
|
build-dir = doc/build
|
||||||
|
43
setup.py
43
setup.py
@ -1,26 +1,21 @@
|
|||||||
import datetime
|
#!/usr/bin/env python
|
||||||
from setuptools import setup
|
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
# implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
ci_cmdclass = {}
|
import setuptools
|
||||||
|
|
||||||
try:
|
setuptools.setup(
|
||||||
from sphinx.setup_command import BuildDoc
|
setup_requires=['pbr'],
|
||||||
|
pbr=True)
|
||||||
class local_BuildDoc(BuildDoc):
|
|
||||||
def run(self):
|
|
||||||
for builder in ['html', 'man']:
|
|
||||||
self.builder = builder
|
|
||||||
self.finalize_options()
|
|
||||||
BuildDoc.run(self)
|
|
||||||
ci_cmdclass['build_sphinx'] = local_BuildDoc
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
setup(name='openstack-infra-config',
|
|
||||||
version="%d.%02d" % (datetime.datetime.now().year,
|
|
||||||
datetime.datetime.now().month),
|
|
||||||
description="OpenStack Infrastructure Config",
|
|
||||||
author="OpenStack Infrastructure Team",
|
|
||||||
author_email="openstack-infra@lists.launchpad.net",
|
|
||||||
url="http://ci.openstack.org",
|
|
||||||
cmdclass=ci_cmdclass)
|
|
||||||
|
4
test-requirements.txt
Normal file
4
test-requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
hacking>=0.5.6,<0.8
|
||||||
|
sphinx>=1.1.2
|
||||||
|
docutils==0.9.1
|
||||||
|
oslo.sphinx
|
21
tox.ini
21
tox.ini
@ -1,20 +1,23 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
envlist = pyflakes,pep8
|
envlist = pep8
|
||||||
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
install_command = pip install -U {opts} {packages}
|
usedevelop = True
|
||||||
|
install_command = pip install {opts} {packages}
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[testenv:pyflakes]
|
||||||
deps = pyflakes
|
commands = flake8
|
||||||
commands = pyflakes modules setup.py
|
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = pep8
|
commands = flake8
|
||||||
commands = pep8 --count --repeat --show-source --exclude=.tox setup.py
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
deps = Sphinx
|
|
||||||
docutils==0.9.1
|
[flake8]
|
||||||
oslo.sphinx
|
show-source = True
|
||||||
|
exclude = .tox,modules
|
||||||
|
ignore = E125,H
|
||||||
|
Loading…
Reference in New Issue
Block a user