diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a813f34 --- /dev/null +++ b/.gitignore @@ -0,0 +1,48 @@ +*.py[cod] +*.pyc +cirros* +tempest.conf +etc/ + +# Packages +*.egg* +*.egg-info +dist +build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg +lib +lib64 + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +cover/ +.coverage* +!.coveragerc +.tox +nosetests.xml +.venv +.stestr + +# Mr Developer +.project +.pydevproject + +# Sphinx +doc/build + +# pbr generates these +AUTHORS +ChangeLog + +# Editors +*~ +.*.swp +.*sw? diff --git a/.stestr.conf b/.stestr.conf new file mode 100644 index 0000000..bf7e43b --- /dev/null +++ b/.stestr.conf @@ -0,0 +1,3 @@ +[DEFAULT] +test_path=${OS_TEST_PATH:-./novajoin_tempest_plugin} +top_dir=./ diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 471161e..5bde7ae 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -1,17 +1,17 @@ If you would like to contribute to the development of OpenStack, you must follow the steps in this page: - http://docs.openstack.org/infra/manual/developers.html + https://docs.opendev.org/opendev/infra-manual/latest/developers.html If you already have a good understanding of how the system works and your OpenStack accounts are set up, you can skip to the development workflow section of this documentation to learn how changes to OpenStack should be submitted for review via the Gerrit tool: - http://docs.openstack.org/infra/manual/developers.html#development-workflow + https://docs.opendev.org/opendev/infra-manual/latest/developers.html#development-workflow Pull requests submitted through GitHub will be ignored. Bugs should be filed on Launchpad, not GitHub: - https://bugs.launchpad.net/Tempest plugin novajoin-tempest-plugin + http://bugs.launchpad.net/novajoin diff --git a/README.rst b/README.rst index de45c63..cf2a9a4 100644 --- a/README.rst +++ b/README.rst @@ -14,10 +14,10 @@ existence of an IPA server. Developers ---------- For more information on novajoin, refer to: -http://docs.openstack.org/developer/novajoin/ +https://opendev.org/x/novajoin For more information on tempest plugins, refer to: -http://docs.openstack.org/developer/tempest/plugin.html#using-plugins +https://docs.openstack.org/tempest/latest/plugins/index.html Bugs ---- diff --git a/doc/source/conf.py b/doc/source/conf.py index fa67cbd..caadfbf 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -41,9 +41,8 @@ project = u'novajoin-tempest-plugin' copyright = u'2017, OpenStack Developers' # openstackdocstheme options -repository_name = 'openstack/novajoin-tempest-plugin' -bug_project = 'Tempest plugin novajoin-tempest-plugin' -bug_tag = '' +openstackdocs_repo_name = 'x/novajoin-tempest-plugin' +openstackdocs_use_storyboard = False # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True @@ -72,7 +71,7 @@ htmlhelp_basename = '%sdoc' % project # [howto/manual]). latex_documents = [ ('index', - '%s.tex' % project, + 'doc-%s.tex' % project, u'%s Documentation' % project, u'OpenStack Developers', 'manual'), ] diff --git a/doc/source/index.rst b/doc/source/index.rst index c2537c5..5d273fd 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -8,6 +8,7 @@ Welcome to the documentation of novajoin-tempest-plugin ======================================================= Contents: +--------- .. toctree:: :maxdepth: 2 @@ -15,9 +16,5 @@ Contents: readme contributing -Indices and tables -================== -* :ref:`genindex` -* :ref:`modindex` * :ref:`search` diff --git a/setup.cfg b/setup.cfg index fd6e684..4551817 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,11 +1,11 @@ [metadata] name = novajoin_tempest_plugin summary = OpenStack Novajoin tempest tests. -description-file = +description_file = README.rst author = OpenStack -author-email = openstack-dev@lists.openstack.org -home-page = http://www.openstack.org/ +author_email = openstack-discuss@lists.openstack.org +home_page = https://opendev.org/x/novajoin-tempest-plugin classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -24,13 +24,13 @@ packages = novajoin_tempest_plugin [build_sphinx] -all-files = 1 -warning-is-error = 1 -source-dir = doc/source -build-dir = doc/build +all_files = 1 +warning_is_error = 1 +source_dir = doc/source +build_dir = doc/build [upload_sphinx] -upload-dir = doc/build/html +upload_dir = doc/build/html [entry_points] tempest.test_plugins = diff --git a/test-requirements.txt b/test-requirements.txt index e1a49d0..1129510 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,16 +2,17 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. -hacking>=0.12.0,<0.13 # Apache-2.0 +hacking>=0.12.0,<=3.2.0 # Apache-2.0 -doc8 # Apache-2.0 +doc8>=0.6.0 # Apache-2.0 python-subunit>=0.0.18 # Apache-2.0/BSD -sphinx>=1.2.1,!=1.3b1,<1.4 # BSD +sphinx>=1.2.1 # BSD oslosphinx>=4.7.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0 -testrepository>=0.0.18 # Apache-2.0/BSD +stestr>=1.1.0 # Apache-2.0 testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT openstackdocstheme>=1.11.0 # Apache-2.0 - +pyflakes>=0.8,!=2.0.0 # MIT +flake8!=3.0.0,!=2.6.2 # MIT oslo.log>=3.22.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 4b7e2bb..1b66da2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py35,py27,pep8,docs +envlist = py36,py35,py27,pep8,docs skipsdist = True [testenv] @@ -10,7 +10,10 @@ setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +whitelist_externals = find +commands = + find . -type f -name "*.pyc" -delete + stestr run --slowest {posargs} [testenv:pep8] commands = @@ -33,6 +36,6 @@ extension=.rst # E123, E125 skipped as they are invalid PEP-8. show-source = True -ignore = E123,E125 +ignore = E123,E125,W504,W605 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build diff --git a/zuul.d/layout.yaml b/zuul.d/project.yaml similarity index 70% rename from zuul.d/layout.yaml rename to zuul.d/project.yaml index 35eab68..872e17e 100644 --- a/zuul.d/layout.yaml +++ b/zuul.d/project.yaml @@ -3,3 +3,4 @@ templates: - check-requirements - tempest-plugin-jobs + - publish-openstack-docs-pti