* Update bashate from branch 'master'
to 57e826ac597891aba1fa46aa9da20de13588f49e
- Test python 3.11
As per the current release tested runtime, we
need to test till python 3.11 so adding the test
and updating the same in python classifier in setup.cfg
Change-Id: I08709e4da19682be2cd174ab55b0293c74cfcf06
* Update bashate from branch 'master'
to fbd7c2534c2701351c603ff700ddf08202430a31
- Merge "Do not run pre-commit verbose by default"
- Do not run pre-commit verbose by default
Change-Id: I6a44ac9ab6969fe23e7504d44fc75a7242362528
* Update bashate from branch 'master'
to 76b0020273cb87bd2bed0d13a19c6dae426fe1d9
- Add openstack-tox-py310 job as nv
Let's test against py3.10 to prepare and to make sure the project
is compatible with py3.10.
Change-Id: I7b4ddbe0bc5c7dd211b5e1db647290183b7f22cf
* Update bashate from branch 'master'
to 0feb84a83fca92789d2a154b33b959ef6ffbff11
- Check indents on comment lines
The check makes sense for comment lines as well.
An example:
if :; then
<tab># comment
<spaces>echo hello
fi
Change-Id: I3baff60fe272440bbcbe5dd809f264bca1092b78
* Update bashate from branch 'master'
to cbd46caeb845c6129c73d716bde7c5e5f2f92d3b
- Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.
Also, as bashate is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.
Change-Id: Ifda17adba4c5fab369204a34b3ae49eab309a7dd
* Update bashate from branch 'master'
to ff824807f07b69768387820eeb04692ead5064d6
- Fix doc job
doc. job is failing as requires some font 'tgtermes.sty'
to generate pdf doc. This patch adds that required
package in bindep.txt to fix doc job.
Change-Id: Ifcb95a3d2d21f0c6186782765048a1b3bc5d75d3
* Update bashate from branch 'master'
to 189aadde8b2a973b083842f2293833b9ad77bb30
- [CI] Make bashate-devstack job voting and gating
Change-Id: Ib66ceb8791158a6938b921a143907bd8db24bebf
* Update bashate from branch 'master'
to ceea4801fdcce13c6914f14cfc8706e16701646c
- setup.cfg: Replace dashes with underscores
Resolves pip warnings like the following:
UserWarning: Usage of dash-separated 'description-file' will not be
supported in future versions. Please use the underscore name
'description_file' instead
Also, updates the url to docs.
Change-Id: I716e7c05baf8183fdd9a500e15d614ef0492ad41
* Update bashate from branch 'master'
to 421af4bca83ec9f00e27b36755bc2058fe680f0c
- Add ensure-tox role to test job
The CI no longer provides us with preinstalled tox, we have to ensure that
it is present ourselves.
Change-Id: Ib8da29ca2156aafd89fec69db7910360efe266a2
* Update bashate from branch 'master'
to 4e5de6a91e176c415f1aa8cc614305e2b3ed0b44
- Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python 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: I92e6930e06f04e6554aa4739d6b193c9c3555b69
* Update bashate from branch 'master'
to 069d60ad37896e25fa83725de29c7b522b6bfccb
- remove unicode from code
Change-Id: I411ab8fb6783f0baa1d751de36649cddc8a06014
* Update bashate from branch 'master'
- Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I28c2aabe0b7dd1cdb22a8806f1942139b6a1479d
* Update bashate from branch 'master'
- Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.
Also, this patch makes minor changes in the documentation source
code to make sure that the .pdf and .html documentation looks
good.
Story: 2006070
Task: 35454
Change-Id: I74a151163812a3dc8fde9f85739882a54ad11fd3
* Update bashate from branch 'master'
- Merge "drop mock from lower-constraints and requirements"
- drop mock from lower-constraints and requirements
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints and requirements.
These changes will help us to drop `mock` from openstack/requirements
Change-Id: I25645fcff3c772d5c5cd1f4564385fa943871e01
* Update bashate from branch 'master'
- Remove obsolete files
The files babel.cfg and openstack-common.conf are not used anymore,
remove them.
Change-Id: I0f69963aabe00b5ebfcc3072c3ba9fd033d73920
* Update bashate from branch 'master'
- Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
Set openstackdocs_auto_name to use 'project' as name.
openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.
Create separate doc/requirements.txt file and use it, this allows
to continue testing with py35 and build docs that require py36.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: Ic97beaec35ff633380688beb93318273ab6ca15c
* Update bashate from branch 'master'
- Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Id71d25ff658f864da150fb52542378141b7c3f70
* Update bashate from branch 'master'
- Switch testing to Victoria testing runtime
Upating the tetsing template from ussuri to victoria
testing runtime
- https://governance.openstack.org/tc/reference/runtimes/victoria.html
Change-Id: I96f7259f18f7320838732bd5f1cd5a2ca07feb7d
* Update bashate from branch 'master'
- Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- 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
Change-Id: I40cf60b58847cee619bcac0a60c760bebd001954
* Update bashate from branch 'master'
- Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix:
W605 invalid escape sequence
E117 over-indented
E305 expected 2 blank lines after class or function definition, found 1
Ignore:
W504 line break after binary operator
Change-Id: Iab3fded493e781156ab7ac85aac641bf536361d5
* Update bashate from branch 'master'
- Support python 3.5
While dropping py2 support, we dropped py3.5 support also
- Ib769d9cbb7ba9f191014c5445ed7f289e013aef4
There might be some user of it using on py3.5 distro like
stable/rocky jobs on xenial.
There is no deps issue to support the py3.5 so let's keep
it as long as we can.
Change-Id: Ifa1e53fc8c1a665c9fb35845960cc8bc700d19c8
* Update bashate from branch 'master'
- Merge "Add an ability to specify max line length"
- Add an ability to specify max line length
Change-Id: I554b4a993b30462d454ef4984a9091c38365f9fa
Closes-Bug: #1842109
* Update bashate from branch 'master'
- Merge "Add release notes and contributing in readme"
- Add release notes and contributing in readme
Change-Id: I4452fbc4ab66b7469a14d5863820617a911db663
* Update bashate from branch 'master'
- Convert devstack-bashate to native job
Retire the legacy job for an equivalent native job.
Note this drops devstack-gate testing; that runs tox without a
basepython so breaks when we move bashate to Python 3. bashate is
pinned in devstack-gate to 0.5.0, and devstack-gate is considered
deprecated, so it will not update to a non-supported version. We
don't need to keep linting it.
Change-Id: If2ea649d897293a1129b5e30924080936cfc96de
* Update bashate from branch 'master'
- Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Change-Id: Ia34268a5e99f18f90d0e0331949fbbbbf4058c54
Story: #2005924
Task: #34240
* Update bashate from branch 'master'
- Remove pylintrc file
This commit removes the pylintrc file. The pylint requirement was
removed 4 years ago[0] and we don't use it now. So, we can remove this
rc file safely.
[0] https://review.opendev.org/#/c/150816/
Change-Id: If032e7a345d5a612fbaaa6850e880c2a8601e718
* Update bashate from branch 'master'
- Update sphinx version
This commit updates sphinx version which aligns to g-r. Without this
patch, py27 tests fail because of an error like this:
ERROR: Sphinx requires Python '>=3.5' but the running Python is 2.7.15
Change-Id: Iaaf4b2dabd04f85217cb4a1af9af79165e5b1ba9
- OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.htmlhttp://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
* Update bashate from branch 'master'
- Merge "Replace openstack.org git:// URLs with https://"
- Replace openstack.org git:// URLs with https://
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: Ib63065396f832e0144563c881560c3f1fcf7bc8f
* Update bashate from branch 'master'
- Replace openstack.org git:// URLs with https://
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: If4dc13439d6f659c028fefdb1e47ec32de4d476f
- Merge "Update min tox version to 2.0"
- Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.
Change-Id: I630ef240d4ef1599c4c13c9486850f72c27fabd5
- 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: I5b435b46f45c1b542b5c755938ea257310038be6
- 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: I34a4f1a2e8f51547f882d01d00290d0e6ac3fd56
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
- add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I89bca2ed27e15931f0c348d6deccdb901691e8b3
Story: #2002586
Task: #24327
- switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Id2ea7604bb18ab1ca815534fa10c9a4f8c3ddc6d
Story: #2002586
Task: #24327
- import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I18b38c64f031df71207569b57def4f221870cb19
Story: #2002586
Task: #24327
- Address new pypi requirements on README.rst
:doc: isn't a valid role for README entries on pypi, so move the
refernece into the local docs to preserve it while confirming to new
requirements.
Move references to the man page to readme.rst as
Change-Id: I5aac99c784ba03bbbdb6bc6cb653daa0685c062d
- Switch to pep8 output format
Change output format so it would follow the same
default format used by pep8/pycodestyle which is
parsable by many tools.
Relates to https://review.openstack.org/335520
Change-Id: I3e34ec09d439104482a979f7b63d393b9faccdb4
- 0.6 Release Notes
Gather all significant changes for a releasenote
Change-Id: Id9445df63becf088c7b33542e736cccd80d1ff93
- Merge "Enable bashate use with pre-commit"
- Enable bashate use with pre-commit
Declares bashare pre-commit configuration.
Change-Id: Ia9f45181094f2f839ad276d29e638e34d253f439
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
- Allow bashate to be called as a module
Adops official way of calling a module as a script.
Now user can do `python -m bashate ...` which can prove
to be useful when scripts cannot be installed or
when debugging is desired, or use of specific
python interpreter.
Change-Id: I7b3085df3e9f5874cf22470fec15c1b0532c846d
Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Update bashate from branch 'master'
- Add bindep.txt file
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.
Change-Id: Id58d5e1ff4a2a9a2ace474cf3f4ed949737ec823
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
* Update bashate from branch 'master'
- Stop using slave_scripts/install-distro-packages.sh
Migrate the legacy job to start using our bindep role from zuul-jobs.
This will allow openstack-infra to delete
slave_scripts/install-distro-packages.sh in the future.
Change-Id: I1b3ba354b40c55b4dfaa3561213f93a506cdd1d7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
* Update bashate from branch 'master'
- Merge "Add a [[ checker"
- Add a [[ checker
This adds a basic check for [[ when using non-POSIX comparisions such
as =~, <, >. This is a fairly common typo often not picked up until
runtime. Since it's usually part of an "if [ $foo =~ bar ]; then"
statement it doesn't trigger "-e" and the failure just falls through.
As mentioned in the code; this is one of those things that starts
requiring a complete bash parser to get 100% right. However, I
believe this detects the most common failures without setting off
false alarms.
Change-Id: I5478032800cdf175cb10ce25dc8b6afce6ebd0dd
* Update bashate from branch 'master'
- Use openstack-tox-py36
Replace tox job with new v3 common python36 job.
Change-Id: I12a956554063e70b335b0e02caf3b0ae40170b04
Depends-On: https://review.openstack.org/536527
* Update bashate from branch 'master'
- Convert bashate-python36-fedora-26 to Zuul v3
Convert the job to native Zuul v3. The repo does not use
upper-constraints, so there's no need to use openstack/requirements.
Rename the job to follow our naming pattern for tox jobs.
Also, remove project name from stanza, it's not needed for in-tree
configuration anymore.
Change-Id: If79bc60b7e60d172c64dee1cd7900853aa7a1f37
* Update bashate from branch 'master'
- Merge "Remove setting of version/release from releasenotes"
- Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.
Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.
This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.
Change-Id: Ibea5d36bcfa2fd0d58cc89a6cf15d702e119842a
* Update bashate from branch 'master'
- Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated. Update references
to include the extension.
Change-Id: I73f7288f383884c9a157227837464365fb543891
* Update bashate from branch 'master'
- Merge "Don't mock sysv.args"
- Don't mock sysv.args
Python 3.6's argparse() must do some more introspection than previous
versions because it fails with a mocked sys.argv; for reference:
File "/usr/lib64/python3.6/argparse.py", line 1622, in __init__
prog = _os.path.basename(_sys.argv[0])
File ".tox/py36/lib64/python3.6/posixpath.py", line 144, in basename
p = os.fspath(p)
Convert main() to take an args argument, which is passed in for unit
tests, but remains sys.argv for __main__ calls
Change-Id: I2e0415dab7c90825188928d60073b8135c4bde48