Commit Graph

34 Commits

Author SHA1 Message Date
Sharpz7 778403a47b [codespell] Adding Tox Target for Codespell
First in a series of commits to add Codespell to Ironic Repos. This one adds the command that was used to fix the spelling errors.

Future Commits will add CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: Ibeb4cd8bd38e6bfe04adb8ce66ce36f30f06eb61
2024-01-26 04:26:33 +00:00
Jay Faulkner 255fdc7709 Update to hacking v6
Updated pin to hacking 6.0.0. No related code changes needed.

Change-Id: I8b36314e6171d5294f2f166b3616a0b96d4dbb62
2023-04-21 12:45:03 -07:00
Jay Faulkner f1800efeb4 Fixes for tox 4.0
Before this, the config would not parse with tox >=4.0

Change-Id: I687568e85656d984ee69ac62e751c4fcbea7acaa
2022-12-15 09:42:55 -08:00
Dmitry Tantsur 77d802f3d6 Deprecate instance network boot
Remove or update the corresponding CI jobs. Use the new custom Cirros
image in the HTTP job to avoid relying on CentOS.

Temporary increase complexity requirements while we have a deprecation
warning in the provisioner.

Change-Id: I5e65f9949ee3b78430309017800b88c1ba21dd02
2022-08-24 13:19:52 +02:00
Riccardo Pittau f234b87bbb Add linters job
Fix lint errors to unblock CI

Change-Id: I02c1d7cc9f2f91e76d1b3edbc340df7ea83d2902
2022-07-12 10:05:31 +02:00
Zuul eefbe08138 Merge "Ensure tox.ini is ASCII" 2022-02-21 21:11:18 +00:00
Steve Baker 72677fcaec Ensure tox.ini is ASCII
The left/right single quotation marks cause an ascii decode error in
some python3.6 environments.

Change-Id: I1675929d410ab46278fcac001eae4a1aea321126
2022-02-18 12:51:28 +13:00
Riccardo Pittau 5e5e421ddd Update pep8 test requirements
Change-Id: I9a50f796b0b2ce762e1054a6b5e900ccd53bf796
2021-10-28 14:53:49 +02:00
wu.shiming 606c88b5fb Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I9c7bff59c195480ce6bd11dfdab7601bbdcba9e2
2021-07-06 16:00:29 +08:00
wu.shiming db6069331d Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ic98fc2735ebd81443ace12a04111749d10967719
2020-12-14 18:04:21 +08:00
Dmitry Tantsur 912e0a37e5 Move pep8 requirements to tox.ini
We don't need them for unit tests and they're not usually constrained.

Change-Id: Ib1f9235c339df02f2e8c27a46700c9fb1b4be826
2020-12-09 14:38:01 +01:00
Zuul a0ad704754 Merge "Move roles into a standard directory layout" 2020-08-16 17:53:49 +00:00
Riccardo Pittau c086a4d51f 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: I5b02daeb1a2b073dc25a9646975a840f22d03058
2020-07-15 15:45:08 +02:00
Steve Baker 53636ba03c Move roles into a standard directory layout
This change adopts the same directory layout as tripleo-ansible[1]
in preparation for the metalsmith repo containing ansible plugins such
as modules.

Like in tripleo-ansible, the roles directory becomes a symlink to the
new roles location so that ansible can discover the role without
having to install.

[1] https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible

Change-Id: I34114e653a0714cb5991672af1192e9fad95ea6b
2020-07-01 13:30:35 +12:00
Iury Gregory Melo Ferreira a1bdb28c51 Update tox.ini
Added minversion field, using 3.1.0 so we can use `ignore_basepython_conflict`.
Added ignore_basepython_conflict, this will ensure we are testing with
the correct python version, see [1] for more details.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014809.html

Change-Id: If87c8ada21fc591adbfe51d06a562c942b597f71
2020-05-11 19:55:46 +02:00
Dmitry Tantsur 954a6cab6d Start enforcing W504 in pep8
Apparently, not disabling W503 results in W504 ignored. The latter
seems to be preferred now.

Change-Id: I53124ff7b4083382dc24f32fe9affe6fc7478281
2020-05-04 11:27:57 +02:00
Iury Gregory Melo Ferreira 33871b187b Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

metalsmith is ready with python 3 and ok to drop the
python 2.7 support.

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://review.opendev.org/#/c/691178/

Change-Id: Icf19488a3f230084faaf2ab5ece626b03495592e
2019-11-25 13:33:37 +01:00
Kaifeng Wang 386d5df557 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: Id2244fa8c70e8b8c09e309998012041883b98ab1
2019-09-06 10:56:57 +08:00
caoyuan 3281a67382 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I90e7b946ef53765f40213098c3a430b9d4f2baf0
2019-04-23 12:38:57 +00:00
Dmitry Tantsur 192b740d96 Add release notes
Change-Id: I99e5fa5596928c977826ac62e7408ec6629ec55d
2018-10-16 15:24:20 +02:00
Doug Hellmann b764e04e57 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ief7a2b6846c3035d4d0a17ad54768d483da14802
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:54:45 -04:00
Dmitry Tantsur be21ac731b Updates after becoming an official projects
* Build documentation on docs.openstack.org
* Add badges, update README
* Adjust docs subdirs to match the standards

Change-Id: Ie4f51f994ef783c4924a6523fbdfe600fede6d12
2018-09-21 14:09:39 +02:00
Dmitry Tantsur d12d966218 Switch to stestr for unit tests
Moves coverage to a separate test environment and CI job.

Change-Id: I94697ba41afbae194136202dfab349eb0367a125
2018-09-10 13:05:02 +02:00
Dmitry Tantsur c91a08fb16 Simple role to deploy instances
Story: #2002170
Task: #20029
Change-Id: I3fc0ea5144b83262a39593c8211bd88ce90e13f8
2018-06-11 11:01:08 +02:00
Dmitry Tantsur 26e3ed13c6 Add a lower-constraints job
Change-Id: I03d79ff429673791b189ea419ec85772ea142a8e
2018-05-29 10:25:00 +02:00
Dmitry Tantsur 53e84255f1 Pass OS_CLOUD and OS_CACERT to environments
Also limit this exceptions to the 'venv' environment only.

Change-Id: I0324644bbf3f2251c99b19fd269455398ba8b4a4
2018-05-23 17:43:45 +02:00
Dmitry Tantsur 9a2fd614ca Install all dependencies when building docs
RTD cannot install several requirements files (SIGH), not does it use
pip to install projects (SIGH#2). This change creates a new requirement
file doc/joined-requirements.txt and links to both doc/requirements.txt
and root requirements.txt from it.

Note that we cannot put -r instructions to doc/requirements.txt since
it's managed by global-requirements.

Change-Id: Iaebf5917dc20d063e506a055d9f5af4daee0415b
2018-05-18 18:19:42 +02:00
Dmitry Tantsur 23fbeea112 Add docs generation (+ clean up)
Moved public access to exceptions from metalsmith itself to
metalsmith.exceptions to avoid clutterning the former.

Updated tox.ini to use upper-constraints.

Change-Id: I136e036749171dc6d36d644e79c6fcfeef6242af
2018-05-18 13:12:29 +02:00
Dmitry Tantsur 06826b80e9 Bring test coverage to 90% and keep it there 2018-05-09 15:48:35 +02:00
Dmitry Tantsur 9f1b7755fc Grand refactor to split out reusable bits 2018-05-08 21:32:14 +02:00
Dmitry Tantsur 5b08c2658d Use modern hacking rules 2017-09-20 12:44:56 +02:00
Dmitry Tantsur 7f33880d77 tox.ini cleanup 2017-09-20 12:41:35 +02:00
Dmitry Tantsur fac53fbef3 Reservation and stubs for deployment 2015-08-27 15:52:10 +02:00
Dmitry Tantsur 4ea236c786 Initial structure 2015-08-27 12:15:49 +02:00