Commit Graph

21 Commits

Author SHA1 Message Date
Zuul 800c6040fb Merge "[codespell] Adding Tox Target for Codespell" 2024-02-01 00:44:14 +00:00
Takashi Kajinami beabe8591c Bump hacking to 6.1.0
... which is the latest version available now.

Change-Id: I0829b8aa90d66037c9fa7d803203b835f8735414
2024-01-29 18:28:06 +09:00
Sharpz7 da3fccba48 [codespell] Adding Tox Target for Codespell
Second 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: Ie6d9f79138c39a530daeb471b2cf4a9bf19b5a98
2024-01-26 04:11:43 +00:00
Jay Faulkner f99b3da74b Update pep8 deps - including hacking v6
Upgraded to latest hacking. Also had to bump the upper limit for
pycodestyle to be in line with other repos in order for pip to be happy
installing new hacking.

Change-Id: I4fd9e1e135b6759738f7faecfe8a8a046274d566
2023-04-21 12:36:13 -07:00
Riccardo Pittau 9416e82903 Fix tox4 and setuptools errors
- Remove skipsdist that it was never supported and causes breakage
when used with usedevelop.
- disable setuptools autodiscovery

Change-Id: I3dd1ab78de71a2a2feb9e7d59612b5c2a09e1f4a
2022-12-28 15:44:17 +01:00
Riccardo Pittau 70ffdc565b 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: I42091bde2be25a52399fe66c2ca4600274dd0350
2021-06-15 10:01:17 +02:00
Dmitry Tantsur d7c121ab92 Avoid empty dependencies in tox.ini
Specifying only constraints does not work, there must be some real deps.
Add documentation deps since the documented way to use reno is via
`tox -evenv -- reno`.

Change-Id: I68182adbac4eaadc2fbb2c70b27683c5589103bf
2021-03-09 12:29:50 +01:00
Riccardo Pittau 55972ab6fb Reconfigure tox.ini
Update minversion of tox to 3.9.0 to support inline comments [1]

Remove test-requirements and move pep8 requirements to tox.ini

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

Change-Id: I5875b1ab383fef4bc49432e678e38941a7f5763e
2021-01-23 18:52:04 +01:00
Iury Gregory Melo Ferreira dc090b273a Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver for the release team.
Removed specific doc requirements from test-requirements.txt

Change-Id: Ibeb6253046787a7a0768879067facaaeb0137cdb
2021-01-06 15:46:09 +01:00
Riccardo Pittau bceeea1b0a Use more generic TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is deprecated[1], we should start using the
new better shiny TOX_CONSTRAINTS_FILE instead.
Also this should fix broken tinyipa jobs after this[2] change merged.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
[2] https://review.opendev.org/760703

Change-Id: I99762e25133967c31679d2962607b2bf30459af5
2020-11-04 13:07:29 +00:00
Riccardo Pittau 654e9c729e 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: I79338f6a5c67e189dfd6783ab40d2e6bd7d8b628
2020-07-15 15:43:52 +02:00
Iury Gregory Melo Ferreira 53d67f38df Update tox.ini
Bump minversion to 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: I2a13efdd19da8eb114b1dd510f32bf0d78110c8b
2020-05-11 19:54:57 +02:00
Andreas Jaeger 9fddc46bdc Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Update hacking to version 3

Change-Id: I7e9e3993aeb05fb623be531160e418572fa9de54
2020-04-16 18:52:41 +02:00
Madhuri Kumari 55aaf172b1 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-python-agent-builder 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: I4dc5fe4cbb2ec4e604e18f77da4b5723ab7f9c2b
2019-11-23 18:39:21 +05:30
pengyuesheng 3195471e80 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ibbc7c119d635edb74c59d1999c3ae39b1195e943
2019-09-25 14:57:46 +08:00
Zuul 7e1581bc06 Merge "Build pdf doc" 2019-09-09 14:42:50 +00:00
Kaifeng Wang cea462b0e4 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: Ic036194e33224be9341dbde901c4ba4717ccbbc8
2019-09-05 14:31:51 +08:00
Dmitry Tantsur c56bffbefe Make ironic-python-agent-builder packaging-friendly
* Install dib files to /usr/share (tinyipa TBD later)
* Add an executable that can be installed into /usr/bin

Since we now have python code, make pep8 operational.

Change-Id: I9235885485833c4011e42da6db01e150821bd8da
2019-08-12 15:28:34 +02:00
zhulingjie 13f4f483da Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ic1b2673587a207e4f075a0bcbe9ec256aa3a0c35
2019-04-23 09:09:06 +00:00
Doug Hellmann 57aa973d42 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: I2dcdaa2452f30bd597407796945a79ed640eec59
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:54:35 -04:00
Dmitry Tantsur 77c8f45838 Initial structure
Change-Id: If014272a204953da387855e2666f01d4e9229eaa
2017-11-03 14:34:47 +01:00