Merge "Cleanup py27 support"
This commit is contained in:
@@ -135,7 +135,7 @@ class ExtraATCsTable(tables.Table):
|
|||||||
return table
|
return table
|
||||||
|
|
||||||
|
|
||||||
_PATTERN = re.compile('(?P<project>.+):\s+(?P<name>.+)\s\((?P<email>.+)\)\s\[(?P<expires_in>.*)\]')
|
_PATTERN = re.compile(r'(?P<project>.+):\s+(?P<name>.+)\s\((?P<email>.+)\)\s\[(?P<expires_in>.*)\]')
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def _get_last_updated_file(src_file):
|
|||||||
try:
|
try:
|
||||||
return datetime.datetime.strptime(last_updated_t,
|
return datetime.datetime.strptime(last_updated_t,
|
||||||
'%Y-%m-%d %H:%M:%S')
|
'%Y-%m-%d %H:%M:%S')
|
||||||
except ValueError as err:
|
except ValueError:
|
||||||
LOG.info('[governance] Could not parse modification time of '
|
LOG.info('[governance] Could not parse modification time of '
|
||||||
'%s: %r',
|
'%s: %r',
|
||||||
src_file, last_updated_t)
|
src_file, last_updated_t)
|
||||||
|
|||||||
@@ -79,12 +79,12 @@ class TaggedProjectsDirective(rst.Directive):
|
|||||||
def _build_projects_by_tag():
|
def _build_projects_by_tag():
|
||||||
for proj_name, info in projects.get_project_data().items():
|
for proj_name, info in projects.get_project_data().items():
|
||||||
for tag in info.get('tags', []):
|
for tag in info.get('tags', []):
|
||||||
l = _projects_by_tag.setdefault(tag, [])
|
li = _projects_by_tag.setdefault(tag, [])
|
||||||
l.append((proj_name, None))
|
li.append((proj_name, None))
|
||||||
for name, deliverable in info.get('deliverables', {}).items():
|
for name, deliverable in info.get('deliverables', {}).items():
|
||||||
for tag in deliverable.get('tags', []):
|
for tag in deliverable.get('tags', []):
|
||||||
l = _projects_by_tag.setdefault(tag, [])
|
li = _projects_by_tag.setdefault(tag, [])
|
||||||
l.append((proj_name, name))
|
li.append((proj_name, name))
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@@ -142,10 +141,6 @@ html_static_path = ['_static']
|
|||||||
|
|
||||||
html_extra_path = ['_extra']
|
html_extra_path = ['_extra']
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
||||||
# using the given strftime format.
|
|
||||||
html_last_updated_fmt = '%Y-%m-%d'
|
|
||||||
|
|
||||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||||
# typographically correct entities.
|
# typographically correct entities.
|
||||||
#html_use_smartypants = True
|
#html_use_smartypants = True
|
||||||
|
|||||||
@@ -12,15 +12,6 @@ home-page = http://www.openstack.org/
|
|||||||
packages =
|
packages =
|
||||||
openstack_governance
|
openstack_governance
|
||||||
|
|
||||||
[build_sphinx]
|
|
||||||
all_files = 1
|
|
||||||
build-dir = doc/build
|
|
||||||
source-dir = doc/source
|
|
||||||
warning-is-error = 1
|
|
||||||
|
|
||||||
[pbr]
|
|
||||||
warnerrors = True
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E501,E226,H405
|
ignore = E501,E226,H405
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# needed for doc build
|
# needed for doc build
|
||||||
docutils>=0.11,!=0.13.1 # OSI-Approved Open Source, Public Domain
|
docutils>=0.11,!=0.13.1 # OSI-Approved Open Source, Public Domain
|
||||||
openstackdocstheme>=1.25.0 # Apache 2.0
|
openstackdocstheme>=2.0.0 # Apache 2.0
|
||||||
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2
|
sphinx!=2.1.0,>=2.0
|
||||||
PyYAML>=3.1.0
|
PyYAML>=3.1.0
|
||||||
yamllint>=0.5.2
|
yamllint>=0.5.2
|
||||||
requests-cache
|
requests-cache
|
||||||
Pillow>=2.4.0 # PIL License
|
Pillow>=2.4.0 # PIL License
|
||||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
hacking>=3.0,<3.1.0 # Apache-2.0
|
||||||
whereto>=0.3.0 # Apache-2.0
|
whereto>=0.3.0 # Apache-2.0
|
||||||
|
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
@@ -17,6 +17,3 @@ testtools>=1.4.0 # MIT
|
|||||||
oslotest>=1.10.0 # Apache-2.0
|
oslotest>=1.10.0 # Apache-2.0
|
||||||
|
|
||||||
coverage>=4.0 # Apache-2.0
|
coverage>=4.0 # Apache-2.0
|
||||||
|
|
||||||
# mocking framework
|
|
||||||
mock>=2.0 # BSD
|
|
||||||
|
|||||||
@@ -88,5 +88,6 @@ def main():
|
|||||||
|
|
||||||
projects.write_project_file(project_data, args.projects_file)
|
projects.write_project_file(project_data, args.projects_file)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -41,13 +41,14 @@ Then open os_universe.svg in your favorite web browser.
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import pydot
|
||||||
|
import six
|
||||||
|
import yaml
|
||||||
|
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
print(__doc__.strip())
|
print(__doc__.strip())
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import pydot
|
|
||||||
import six
|
|
||||||
import yaml
|
|
||||||
|
|
||||||
projects_file = sys.argv[1]
|
projects_file = sys.argv[1]
|
||||||
output_dot_file = sys.argv[2]
|
output_dot_file = sys.argv[2]
|
||||||
|
|||||||
11
tox.ini
11
tox.ini
@@ -1,11 +1,12 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = docs,linters
|
envlist = docs,linters
|
||||||
minversion = 1.6
|
minversion = 3.1.1
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -U {opts} {packages}
|
basepython = python3
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
PYTHON=coverage run --source openstack_governance --parallel-mode
|
PYTHON=coverage run --source openstack_governance --parallel-mode
|
||||||
@@ -38,28 +39,22 @@ commands =
|
|||||||
{toxinidir}/tools/validate_repositories.py
|
{toxinidir}/tools/validate_repositories.py
|
||||||
|
|
||||||
[testenv:validate_atcs]
|
[testenv:validate_atcs]
|
||||||
basepython = python3
|
|
||||||
commands = {toxinidir}/tools/validate_atcs.py
|
commands = {toxinidir}/tools/validate_atcs.py
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
commands =
|
commands =
|
||||||
flake8
|
flake8
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
|
||||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:validate]
|
[testenv:validate]
|
||||||
basepython = python3
|
|
||||||
commands = python3 tools/validate_tags.py
|
commands = python3 tools/validate_tags.py
|
||||||
|
|
||||||
[testenv:check-review-status]
|
[testenv:check-review-status]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
requests
|
requests
|
||||||
prettytable
|
prettytable
|
||||||
|
|||||||
Reference in New Issue
Block a user