Commit Graph

203 Commits

Author SHA1 Message Date
Ghanshyam Mann 57e826ac59 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
2024-01-03 19:11:56 -08:00
Martin Kopec f5426a8c83 Switch testing to Antelope testing runtime
Updating the testing template to Antelope testing runtime:
https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: I3f05590f48c026eabc02b84b2c7e213bd1dfe220
2023-01-19 11:14:29 +01:00
Zuul fbd7c2534c Merge "Do not run pre-commit verbose by default" 2022-06-16 09:13:14 +00:00
Martin Kopec 76b0020273 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
2022-05-11 14:17:30 +02:00
Ayaz Salikhov 3e1e5d0d2e Do not run pre-commit verbose by default
Change-Id: I6a44ac9ab6969fe23e7504d44fc75a7242362528
2022-04-01 12:22:59 +01:00
YAMAMOTO Takashi 0feb84a83f 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
2021-11-10 19:07:30 +09:00
Ghanshyam Mann cbd46caeb8 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
2021-11-03 21:07:39 +00:00
Martin Kopec aea8e78217 Switch testing to Yoga testing runtime
Upating the tetsing template to Yoga testing runtime:
https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: Ibe5599895d6e41a4c3efda1ba8d47369b4f8e6b6
2021-10-06 15:14:46 +00:00
Ghanshyam Mann 8f9b2fb412 Update IRC network to OFTC
Change-Id: Idaa77397b1f247b422b2ab380e21d395c93799b0
2021-06-01 16:26:19 +00:00
manchandavishal ff824807f0 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
2021-06-01 21:40:59 +05:30
Martin Kopec 569be88494 Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I2f24d0372bf7497bae30ac449dbe83a950c8692f
2021-04-29 14:50:37 +00:00
Radosław Piliszek 189aadde8b [CI] Make bashate-devstack job voting and gating
Change-Id: Ib66ceb8791158a6938b921a143907bd8db24bebf
2021-04-26 15:08:36 +00:00
Yandong Xuan ceea4801fd 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
2021-04-26 12:58:39 +00:00
Jens Harbott 421af4bca8 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
2021-04-26 11:15:15 +02:00
tushargite96 4e5de6a91e 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
2021-02-25 22:55:21 +05:30
xuanyandong 069d60ad37 remove unicode from code
Change-Id: I411ab8fb6783f0baa1d751de36649cddc8a06014
2021-01-03 15:14:05 +08:00
tushargite96 389f8917cd 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
2020-10-12 19:03:36 +05:30
Lukas Piwowarski 4a02a8411d 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
2020-09-24 10:27:28 +02:00
Zuul a883b9c0ee Merge "drop mock from lower-constraints and requirements" 2020-07-10 13:36:06 +00:00
Andreas Jaeger b920900b1b Remove obsolete files
The files babel.cfg and openstack-common.conf are not used anymore,
remove them.

Change-Id: I0f69963aabe00b5ebfcc3072c3ba9fd033d73920
2020-06-09 10:29:49 +02:00
Hervé Beraud 4ef452bac9 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
2020-06-09 07:54:41 +00:00
Hervé Beraud 24944d3f1f Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ia60c23576e6a36634540032c83b38440de4771d8
2020-06-02 19:35:26 +02:00
Andreas Jaeger 6a3769e077 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
2020-05-22 17:31:24 +00:00
Ghanshyam Mann e57a429706 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
2020-05-12 21:56:11 -05:00
Ghanshyam Mann c46e54fd98 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
2020-05-04 19:39:57 +00:00
Zuul b9cfd2957d Merge "[ussuri][goal] Update contributor documentation" 2020-04-23 03:26:41 +00:00
Ghanshyam Mann 060abe4f82 [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: Ief0ff4a7f69a4ba44abd846d720630c2232d4fe0
2020-04-22 14:03:09 +00:00
Andreas Jaeger e4162c215b 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
2020-04-10 15:50:07 +02:00
Andreas Jaeger 48c348d524 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
2020-03-31 06:49:47 +00:00
Ghanshyam Mann 349e45cb41 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
2020-02-13 09:23:06 -06:00
Zuul 49c5f16d62 Merge "Add an ability to specify max line length" 2020-02-04 02:55:12 +00:00
Zuul d970025ab0 Merge "[ussuri][goal] Drop python 2.7 support and testing" 2020-02-04 02:41:40 +00:00
Ayaz Salikhov f5a24b097c Add an ability to specify max line length
Change-Id: I554b4a993b30462d454ef4984a9091c38365f9fa
Closes-Bug: #1842109
2020-02-04 13:35:52 +11:00
Zuul 6b4069ca02 Merge "Add release notes and contributing in readme" 2020-02-04 00:47:44 +00:00
Ghanshyam Mann 0bef5cf226 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

bashate 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://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Ib769d9cbb7ba9f191014c5445ed7f289e013aef4
2020-02-04 10:33:06 +11:00
Ian Wienand 645b3a0ef4 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
2020-02-04 10:30:28 +11:00
xuanyandong ce1ade76fd Add release notes and contributing in readme
Change-Id: I4452fbc4ab66b7469a14d5863820617a911db663
2019-10-06 10:08:34 +08:00
Zuul 949a320cce Merge "Add --version option" 2019-08-30 07:20:19 +00:00
Corey Bryant 5f276d3a20 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
2019-07-15 13:01:59 -04:00
Masayuki Igawa 6a787ca764
Add --version option
This commit adds ``--version`` option for the command line.

Change-Id: I8dee5fa2154dd083a04204c33989e6ee318046a6
2019-06-27 15:02:14 +09:00
Zuul 0e90a6d7a3 Merge "Update to opendev" 2019-06-26 04:32:27 +00:00
Masayuki Igawa e82b4e1337
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
2019-06-26 10:40:08 +09:00
Zuul 6d8d5f4d6b Merge "Dropping the py35 testing" 2019-06-25 13:36:29 +00:00
Masayuki Igawa ba3850c60b
Use stestr as a test runner
This commit makes to use stestr as a test runner instead of testr. This
is aligned to the PTI[0].

[0] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running

Change-Id: Iaddccfeea154cef9b711d11eaea2af30987877de
2019-06-24 16:30:27 +09:00
Masayuki Igawa 0cd475e45e
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
2019-06-24 16:11:23 +09:00
Le Hou b9f61c703c Update to opendev
Change-Id: Ic30124b56688b4ecfa3b0402a56667259b59f6f5
2019-04-23 15:47:05 +08:00
Ghanshyam Mann fa80109883 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I1701b7efcee392a3192dc4bd5b6fcec6d53b3b56
2019-04-22 03:23:16 +00:00
OpenDev Sysadmins 0bb06cc9bb 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.html
http://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.
2019-04-19 19:26:29 +00:00
Zuul cc4607070f Merge "Replace openstack.org git:// URLs with https://" 2019-03-24 21:04:55 +00:00
Ian Wienand c1f5e9ed8b 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
2019-03-24 20:32:42 +00:00