Update all .py source files by
$ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.
pep8 errors are fixed by
$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
--in-place os_apply_config
Change-Id: I89888a4e007af7c35f75a01a144cfbab71a08c1e
These excludes were removed from the requirements repo[1] and are now
detected as errors.
[1] 314734e938f107cbd5ebcc7af4d9167c11347406
Change-Id: Ifff6c56842887621f2e5be3fb6f91fa4795a0b81
Now we generate the console script using setuptools, and we don't
expect users may directly execute the *.py file.
Change-Id: I6ddeb659c641cf3af33518bb7bf4c24b101f87be
The tag_svn_revision option was already removed[1]. The values set to
the other two options are effectively same as their defaults.
[1] https://github.com/pypa/setuptools/issues/619
Change-Id: Ic4ab72b8526f8804c046189a443d73f1cfa441c9
... because Python 2 is no longer supported. Also remove a few old
comments which are no longer valid.
Change-Id: I34401721537d671ae71110fb22de9b1d5b908f0c
... and supported python runtime versions.
This also makes some changes in tox.ini to adapt to tox 4.
Change-Id: I765665685fe7f56b89b9dcdcd2e412aeacb5d224
It's needed downstream when packaging. In RDO and Fedora,
we are hitting the issue "ERROR: ambiguous python shebang" during
the build.
Change-Id: I19d99f96d9687c27e04e8cc2ecbf61b42a4dcdf3
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb
Change-Id: I6139243267f745fdefeb652f8958703b442a5528
The tripleo-multinode-container-minimal is being deprecated [1]
as part of wider tripleo CI optimization at [2].
[1] Ie6473759383bd4b903cbe56fba9fee75a24154c4
[2] https://review.opendev.org/q/topic:tripleo-ci-reduce
Change-Id: Ie28dd59a6bec79802d149f030f10a2ea12e454de
Bump hacking to resolve dependency problems and drop the lower
constraints job. Includes pep8 fixes.
Change-Id: If5473a753e774767abf60b9fcf9f57a9aa31b580
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ia5a6219d6c4cc2cb10ddaeee22b957ca85064ab9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Remove unncessary "=="
Change-Id: I5fe3be557f9bc3cc1f8faae198df93ed4ed2bc97
In a config file you never want the string "null" in place of a null
value. Just render an empty string instead.
Change-Id: Ibe145c4929d4944cd8d51c07a64aee6fd5f831f2
Closes-Bug: #1830967
Story: 2005797
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I6d5e48e7c8e3d19f6f5c78931ce8d884f1317b0b
https://review.openstack.org/#/c/619337/ switched the jobs to a noop for
master and since this file is branched we no longer need to keep this
template definition in this project.
Change-Id: I1b0b813b50e9394e61914f749fa0f348dc6afbf5
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: I55af786294e812d8942ac934f947f04cd3d459d9
Closes-Bug: #1801451
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: I1853dafac8f854812744acf50706cdef15a87936
Signed-off-by: Doug Hellmann <doug@doughellmann.com>