2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 19:57:47 +00:00

20 Commits

Author SHA1 Message Date
Riccardo Pittau
16b62119d7 Reconfigure tox
Update minversion of tox to 3.9.0 to allow inline comments.

Add skipsdist and ignore_basepython_conflict for better compatibility
and to use correct python version when specified.

Move pep8 test requirements to tox.ini for easier management and update
requirement versions.

Fix a small typo found with new pep8 deps.

Add py27 constraints file for Python 2.7 tox jobs.

Use wallaby jobs.

Remove lower-constraints (it was not used anyway).

Fix docs job

Change-Id: I1132814a86b46a154b3a8eed5bc3e73ad7950589
2021-01-29 15:36:11 +00:00
Riccardo Pittau
a5129fbdb3 Update pep8 import order check
Set flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.

Change-Id: I3ef01e49c0e6822368146434f056ac7a1aa7ce4d
2020-05-11 14:08:17 +02:00
Riccardo Pittau
b76d3b3cd2 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: I0d2fa8c88f081d553ebefb5f764397b2761dc2b5
2020-03-30 16:33:49 +02:00
Riccardo Pittau
90d02c0a03 Use flake8 for testing
Start using flake8 for style guide enforcement.

Change-Id: I9d7c89498c10e682acf0f75bad20dfd4bb6152b5
2019-12-17 16:04:42 +01:00
Riccardo Pittau
d5213a7369 Drop old Python versions
Python 2.6 is dead since a while and we should move out from
Python 3.5 in favor of Python 3.6 and Python 3.7

Change-Id: I36ff0e1bc1db018bb7cce00a741682125aca4ac4
2019-11-22 12:19:11 +01:00
Ilya Etingof
ead5aa1531 Update package documentation
* Switched to Sphinx openstacktheme
* Rearranged docs along the OpenStack project lines
* Add Sphinx docs building job
* Added tox docs job

Change-Id: I069d3a95b90bc798b1dcc0331d6e24a6c08d1317
2018-08-17 12:04:36 +02:00
Zuul
a6dd0c6d83 Merge "Switch to stestr" 2018-08-10 13:28:36 +00:00
Ilya Etingof
524821fa31 Switch to stestr
According to OpenStack summit session [1], stestr is
maintained project to which all OpenStack projects should
migrate.

Let's switch to stestr as other projects have already
moved to it.

Uses environment inclusions which need tox 2.8.1 due to
a bug fix. So increase the tox minversion.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: If6eded0dd802cbdfe49ad72c64004585d4a1484b
2018-08-10 14:36:57 +02:00
Ilya Etingof
497e11b102 Refactor console scripts into entry points
Change-Id: I521ab193bb65dc4d53e84d4f289194bff85b0685
2018-08-10 13:56:22 +02:00
huang.zhiping
680a0c406e 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: I5b088566dc6b55e04f5235b789fd71bfee496792
2018-06-09 20:40:18 +08:00
Ilya Etingof
12a83bc6de add lower-constraints
Create a tox environment for running the unit tests
against the lower bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the
lower bounds in those tests.

Add openstack-tox-lower-constraints job to the zuul
configuration.

See [1] for details.

1. http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html

Change-Id: I0f8b1bd44cd2f401593ce079cdecce5020807051
2018-05-16 15:38:38 +02:00
Jarrod Johnson
f8c92bd9de Update to newer hacking
Fix some complaints, mask others for now.

Change-Id: Iba4adf30131724db401fe2ee773975942fd58fd2
2018-05-15 11:39:15 -04:00
Jarrod Johnson
40af456196 Get UUID of ThinkSystem D2 enclosures
If a ThinkSystem server is in a D2 enclosure, get
the UUID of the enclosure.

Change-Id: I3e2cf4b76306a2a7fce4fb655fc14c4c38306e84
2017-09-13 16:12:52 -04:00
Lucas Alvares Gomes
de59a8e2e7 Add base for unittests and fix docs
Change-Id: Id130e6ea29523fd46ff795be1219016029127945
2017-01-05 15:52:14 +00:00
reedip
622bd23fdb Remove support for py33/py26
Python 3.3/Python 2.6 is not supported from Mitaka, as per Infra.
The following patch removes the support for the same.

Change-Id: Ie138cdd5019ce762f7dfc8af5b0fa93c2d62ebfd
Closes-Bug: #1526170
2016-03-23 02:45:52 +00:00
Ondřej Nový
59150c8c30 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I0eec04a73e98048ea705bba01fd8d84b605b874e
2015-12-11 23:20:31 +01:00
Jenkins
9f33418d2b Merge "Work toward Python 3.4 support and testing" 2015-02-11 19:33:03 +00:00
Jim Rollenhagen
c0691104fb Run pep8 on files in bin/
Files in bin/ don't have a .py extension, and so don't get picked
up by flake8. Add them to the flake8 command to have them checked.

Also fix an existing error in bin/pyghmicons.

Change-Id: I4db9b8c4e13c7c7f652acaa12add125f0e0458cd
2014-12-31 00:15:01 +00:00
Jeremy Stanley
471f9f8755 Work toward Python 3.4 support and testing
Change-Id: Ibde15015cf665ca95e217381566baccee233ab37
2014-09-03 19:07:25 +00:00
Monty Taylor
08d2e54d68 Align to OpenStack Build Standards.
Rearranged Sphinx.
Put project under PBR control.
Added tox file.
Added .testr.conf file in anticipation of testr testing.

Change-Id: I55180a6a3d224816c82999bf66156c7874786b17
2013-06-30 14:21:20 -04:00