Commit Graph

36 Commits (master)

Author SHA1 Message Date
Jay Faulkner 619f8d3a7c Update pep8 dep hacking to latest
Hacking now at 6.0.0.

No code changes needed for compatability.

Change-Id: I95be33c5cdd9993dbfc51214388f979a69e2bad2
1 month ago
Jay Faulkner 7ce1923a99 Fixes for tox 4.0
Needed to fix syntax of passenv
Added required zmq library to bindep.txt

Change-Id: I78bc8d3fee4a1b605a60c8523a2d2c97358c9fac
5 months ago
Riccardo Pittau 835fd3b9e4 Use zed jobs
Also leave py3.6 test as it's still trendy
Remove l-c job definition from tox.ini, it was not used anyway and
we're removing l-c jobs everywhere

Fix tempest test

Change-Id: Ibdb5be75cf9e1c7a2ce26c05ee1e5e5d85d20482
1 year ago
Riccardo Pittau d35a80fe03 Update pep8 test requirements
Change-Id: I54afbe68951cc8de2f5e3bca97a38bc2f8828da9
2 years ago
Riccardo Pittau 89220d2ebb 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: Ia05d9b10c421b3ec4678449d6accf912927213c8
2 years ago
yangyawei 5c54b1247f Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Id0b52f70e02b08d4983a218af7c2e34c38ec3c7d
2 years ago
Riccardo Pittau 5630176fd0 Update minversion of tox
The minimum version since when tox accepts having inline comments
in deps is 3.9.0

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

Change-Id: I3e510bf626fc913069009075b4a28ee2face7ae1
2 years ago
Iury Gregory Melo Ferreira 122f4ba5db 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: Ib2570e01bef426c0e5ecfd59249d08ea00749b28
2 years ago
Riccardo Pittau 5aae35450f Fix lower-constraints with the new pip resolver
Remove pep8 dependencies from test-requirements, they're not
needed there and are hard to constraint properly.

Change lower-constraints to make pip resolver happy.

Change-Id: I85f2e368f6834888e3c82d365c2ecbcebfabd8e7
3 years ago
Riccardo Pittau 43925d297d 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: I4003a8bebc7737250d0c318426e885d0888df57d
3 years ago
Riccardo Pittau 6658b97712 Set 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: I26f38e18ce5c1c61aadbc1590a79c97e7b3c4ab4
3 years ago
Kaifeng Wang 132fe3ce24 Restore pep8 checking on import order
Currently not checking import orders, this patch restore it.

Change-Id: I101814591eaffb694a090aa640ca9ac70db2ecf1
3 years ago
Iury Gregory Melo Ferreira dd702058f8 Stop configuring install_command in tox.
Currently, we are overriding 'install_command' to use 'pip'. This is
considered poor behavior and 'python -m pip' should be used instead:

https://snarky.ca/why-you-should-use-python-m-pip/

It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

openstack-discuss thread
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014237.html

Change-Id: I2cdb74a8d3ce88c3b6d7b4f84b0aa0a990753ce5
3 years ago
Andreas Jaeger a4e82b9467 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use sphinx-build everywhere

Change-Id: I737d176d35d3bc55848645af05f0362ab3853844
3 years ago
Riccardo Pittau a789257e9e 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: Ic1efc86ec41daf6fadb4cebb8a73b4dd158f880a
3 years ago
Riccardo Pittau 695c41ede9 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: I190733137eb37183e517d1194a91bf534164c3fd
3 years ago
Iury Gregory Melo Ferreira adca510cf5 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

virtualbmc 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: I9c62fd735641d6538a5ea2a699ed47718d481d3b
4 years ago
pengyuesheng 6b567add4e Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ia16ac8aece893544c832dd40a734dfb6953ac48b
4 years ago
Kaifeng Wang e3681c1390 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: I5f2caba62595946f8ade6db22a1aba080b927fc8
4 years ago
caoyuan ddd93bf222 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I2fc590b50ee8d783d65054ad067cd0a9ea525e52
4 years ago
Nguyen Hai Truong 3952d59724 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.
Update to reflect reality, which should help with local running of
constraints targets.

Change-Id: Ia963aa201934b6583f8e8b107da1375caac92b6a
5 years ago
98k ff84f71140 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: Idcd18d1cbed5db5538812cc5c225b5ef7ddcc893
5 years ago
Julia Kreger 91a759d0c5 Change py35 to py3 so Python 3.6 can be picked up
Change-Id: I4f2d73902568bd3b69b6ecedf1baba4775b18bce
5 years ago
Zuul a62d2fa934 Merge "Switch to using stestr" 5 years ago
Ilya Etingof 1deddefcea Add reno for release notes management
Change-Id: I14d8b7304f276f76d0fd2a1347dd8a53fdc2a989
5 years ago
Charles Short 154ab21fb1 Switch to using stestr
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.

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

Also update requirements to pass gating.

Change-Id: Ibc8575f9f1c6084ec3e695c1ba5827b712aba318
Signed-off-by: Charles Short <zulcss@gmail.com>
5 years ago
huang.zhiping df322d9aa0 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: I7a1bddaba707626c1c84d0e325360e72115d9ef2
5 years ago
Doug Hellmann 5a2bea7218 add lower-constraints job
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 http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I420c55c31e910607bcfecf6a574cc7f4ed8f5562
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
5 years ago
Andreas Jaeger de1508fed6 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Iab12ded1f9d0547547322d54130d5cdc5cc7c893
6 years ago
Dmitry Tantsur c65df802ba Properly handle upper-constraints
Seems like we got broken after virtualbmc was added to the constraints,
this patch fixes it.

Change-Id: Ic17a7e1fb82fbb20fd09adfec09b0c8802d73d20
6 years ago
Nam Nguyen Hoai 8720944185 Delete support py33 and py34
Python py33 and py34 is not supported from Mitaka. This patch set
will delete this.

Change-Id: Id7cdbd4db6d72470f8efe074dd0730a643965d78
6 years ago
Lucas Alvares Gomes ca8239860b Fix Python3 test errors
This patch is fixing few errors related to Python3 and tests:

* Add the attribute "message" to the exception because it doesn't exist
  by default.

* Add the py35 runtime to tox.ini since we now run tests on Python3.5

* Drop the spec=file syntax because "file" is not a builtin type for
  Python3.

Change-Id: I31d1a5719d605974912bc26f65b96734631691d5
Closes-Bug: #1647337
7 years ago
Jim Rollenhagen 9f4d478bd7 Use upper-constraints for all tox targets
The issue has been resolved by infra [0], so we can use upper
constraints for all targets.

[0]
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I988d5887b28a261382dbc67e12ffdc5d06200c46
7 years ago
Andreas Jaeger 147dd42d09 Remove unused releasenote setup
tox.ini has content for releasenote build but the rest of the
infrastructure is not setup at all, remove the environment and the now
unused reno requirement.

Change-Id: Ibb19b320766aca925e4def7f192048bccfd51284
7 years ago
Jim Rollenhagen db5bdf995e Use constraints for all the things
This configures tox to use upper-constraints for everything, except
environments used for post jobs (as constraints aren't supported there
yet).

Change-Id: I78b119d4bd265998075e3b875b7b060d5ec9b12f
7 years ago
Lucas Alvares Gomes 85a0b201ff Restructure the repository according to OpenStack
This patch is restructuring the VirtualBMC repository according to the
OpenStack template for projects (Cookiecutter).

This patch also removes the dependency on the python-daemon library
since it is not present in the OpenStack global-requirements, now a new
class called "detach_process" has been added to the virtualbmc/utils.py
module that will take care of detaching the process context from its
parent and session.

Change-Id: Id4ae1db5b73a18abc54276fe1dfbf3ceff7adc06
7 years ago