Commit Graph

22 Commits

Author SHA1 Message Date
Zuul 04ad310fb0 Merge "Upgrade to latest hacking - v6" 2023-04-25 14:36:06 +00:00
Jay Faulkner 167098720e Upgrade to latest hacking - v6
Updated dep to latest hacking - 6.0.0

Change-Id: Ic5f2a98d2368f6a4aa4393ebccaee8c805761ce8
2023-04-21 12:39:38 -07:00
Riccardo Pittau e0b4af905e Fix tox4 error
Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.

Change-Id: Ic1cb9d8f0f555e05d35c7e2201187a0b82b48d4c
2022-12-28 15:03:45 +01:00
Riccardo Pittau 8798275c99 Update pep8 requirements
Change-Id: Iba4503a329f65641f7521f67aa11b3ac5fda8da1
2021-11-25 15:12:59 +01:00
Riccardo Pittau c4ad6e2d99 Update min version of tox to use allowlist
The min version of tox is updated to 3.18.0 to replace whitelist_externals
with allowist_externals option [1]

[1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I3715bdc7079d6a8754be514a2131a3dae06769c2
2021-07-05 09:25:07 +00:00
Riccardo Pittau 13de53a462 Reconfigure tox.ini
Update minversion of tox to 3.9.0 to support inline comments [1]

Move pep8 and coverage requirements to tox.ini

Fix typo in coverage job

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-9-0-2019-04-17

Change-Id: I3f39b25ee0fd44c1bc51f94a7fbee74de8cba65d
2021-01-25 09:19:30 +00:00
Riccardo Pittau 7f71d49389 Enforce check on flake8 E129 test
Visually indented line with same indent as next logical line.

Change-Id: I9204313f2b8b52929366b00f5ac035ce06603122
2020-08-03 17:41:59 +02:00
Riccardo Pittau 6ac070b95b Set min version of tox to 3.2.1
As recommended, since version 3.2.0 tox switches pip invocations
to use the module -m pip instead of direct invocation.
We set min version to 3.2.1 [1] to also fix the behavior of
--parallel--safe-build

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-2-1-2018-08-10

Change-Id: I7a791c8239ae54b74e714145a69e9af00c96bc6f
2020-07-15 15:43:13 +02:00
Andreas Jaeger 7e2d6f2292 Update docs building
Update docs building:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
  python 3, create doc/requirements.txt file.
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Use TOX_CONSTRAINTS instead of obsolete UPPER_CONSTRAINTS

Change-Id: I6ff4427014fc967a6f7b28fc6cbe5a0f4eca601c
2020-05-03 11:22:47 +02:00
Riccardo Pittau 1609869f7b Upgrade flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: I0df965d62f2f431a145bcf16cdd7e3401f226f6f
2020-04-21 17:06:10 +02:00
Zuul 8ac8b7edf4 Merge "Upddate tox config" 2020-04-03 11:07:36 +00:00
Riccardo Pittau 441c50658f Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks, so a few
fixes are required. W503 is disabled as it conflicts with W504
and the latter seems to be preferred nowadays.

Change-Id: I3b1e20193a2cb3d28046ad0f2008577a95aaaefd
2020-03-30 16:32:07 +02:00
Iury Gregory Melo Ferreira 41a016b5ae Upddate tox config
- Removes py3 env since we don't run unit tests
- Update requirements to use stestr and coverage
- Update tox.ini to use stestr

Change-Id: Iecb18a3e616173217b7edb756dcaabd8df009629
2020-03-20 19:33:56 +01:00
Ghanshyam e83d220d03 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-tempest-plugin is ready with python 3 and ok to drop the
python 2.7 support.

All stable jobs need to run on py3 as master ironic-tempest-plugin
cannot support py2 anymore. Any py2 cloud/env can be tested by
installing the Temepest and plugins on py3 venv.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Ibea78605aedb955e3dc70252ca380c7e5f8f8726
2020-02-13 10:30:08 -06:00
Riccardo Pittau 7825e28725 Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: Ifcf0cab0b3f6a828a756ca8e5efe6e262c20fe30
2019-12-23 11:20:52 +01:00
Zuul d6645068f9 Merge "Build pdf doc" 2019-09-14 22:33:02 +00:00
Kaifeng Wang 6f4e2a3b08 Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: I8ebbe9ea1bb2914061a8307f3edfabab166a3c38
2019-09-05 14:27:16 +08:00
chenke 2494c8ad98 Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I3e9d3790efa4e37d8bac6ee3409bb55636738868
2019-06-17 22:06:36 +08:00
zhulingjie 948256ca96 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ib3d91d5d7cee2564848436f036ae14edca5fd88a
2019-04-24 01:16:14 +08:00
qingszhao aee506f53f change default python 3 env in tox to 3.5
Change-Id: I018fe4e9bae8d6b5be0b527dfc26e914ce77fb11
2018-06-25 01:46:03 +00:00
John L. Villalovos d22378da76 Script to extract the ironic_tempest_plugin/ directory
Add a script to extract the ironic_tempest_plugin/ directory from the
openstack/ironic repository. Then cherry-pick all of those commits
into this repository.

Also make ironic_tempest_plugins/__init__.py an empty file so 'diff'
will be correct.

Remove the following files, so 'diff' will be correct:
    ironic_tempest_plugin/tests/base.py
    ironic_tempest_plugin/tests/test_ironic_tempest_plugin.py

Ignore E129 errors in flake8, like we do in Ironic. As it will fail
pep8 when we import all the upcoming patches.

Change-Id: I1625128717c8a848c6d673314b09d0a6c9c96679
2017-08-03 13:07:32 -07:00
Jim Rollenhagen 4f8f2299fd Initial commit from cookiecutter
Change-Id: Ia8fd7b9310e598b1e9d7c1eb3d2a484bc667432a
2017-01-27 15:55:29 -08:00