Commit Graph

234 Commits

Author SHA1 Message Date
Zuul 8cd769cd8e Merge "Bump hacking" 2024-03-19 08:53:17 +00:00
Takashi Kajinami 7c62d2ac90 Bump hacking
hacking 2.0.x or 3.0.x is too old.

Change-Id: I40980b76b593d9cbe321ee2dcffb54eed196c1c9
2024-02-08 17:52:06 +09:00
Takashi Kajinami 61e4defcf7 Remove six
This library no longer supports python 2 thus usage of six is no longer
needed.

Change-Id: Id114f020916e52bf1588c8679bfd7df776b1c702
2024-02-08 17:50:28 +09:00
Zuul 39aa29f8af Merge "Update python classifier in setup.cfg" 2024-01-04 09:29:55 +00:00
Ghanshyam Mann 44b6de7608 Update python classifier in setup.cfg
As per the current release tested runtime, we test
till python 3.11 so updating the same in python
classifier in setup.cfg

Change-Id: I100ed0293ba6840bac9d5f60d1e984523340b5e1
2024-01-04 07:05:53 +00:00
Takashi Kajinami 33d0236210 Remove unused babel.cfg
This file is no longer used since [1] was merged.

[1] 2fac2de2c6

Change-Id: Ib1cd92b685f824c226724e3f714c58d20f405735
2024-01-04 02:05:12 +00:00
Takashi Kajinami a4876f6d6d Fix compatibility with subunit >= 1.4.3
The subunit.test_results module is no longer imported by the top-level
subunit module and we have to explicitly import it.

This also fixes the broken doc build caused by the history.rst file.
The change log is now maintained differently so we don't need it
any more.

Closes-Bug: #2045766
Change-Id: Iae1ae0c55b8e1660a2bb41379a1f8f8506679cca
2023-12-20 23:23:58 +09:00
niuke 204fe38386 remove unicode from code
Change-Id: Iea91567941e16007750498114d279dde12571fb8
2022-09-21 08:22:13 +08:00
Zuul 0e7ac78c82 Merge "Update CI to use unversioned jobs template" 2022-03-25 09:57:00 +00:00
Ghanshyam Mann 6f10535042 Remove the deprecated ostestr command
ostestr command has been deprecated in June 2019
- I3a6084db9f86627e3e94abaa4fb4aec52a01126a

This command is replaced by the stestr. os_testr
repo which has other utilities also is not deprecated
and will continue to be maintained.

QA meeting discussion:
https://meetings.opendev.org/irclogs/%23openstack-qa/%23openstack-qa.2022-03-22.log.html#t2022-03-22T15:45:36

Change-Id: Ic0cddcc226f092ac6df405e83b2e7660d71d0ba2
2022-03-24 16:49:44 -05:00
tushargite96 f8b7a194e1 Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Change-Id: I6475b3a47b4f344e78ddfdd1d1d093e7eef0bb81
2022-03-23 11:00:59 +05:30
Ghanshyam Mann 4506fcf719 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 Tempest 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: I83598d6657cd283510a24f6e9d695eb4914e1f8c
2021-11-04 13:04:53 +00:00
tushargite96 c0710b984b 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: Ic4bd098fcf5374f27a70ca7d7c4ce1a809fac6d3
2021-09-28 03:45:31 +00:00
Zuul 7f52c37fed Merge "Ussuri+ is python3 only and update python to python3" 2021-09-09 14:45:49 +00:00
Zuul e65b07269b Merge "Use py3 as the default runtime for tox" 2021-09-09 14:41:28 +00:00
Zuul 5e1c1bc941 Merge "Remove install unnecessary packages" 2021-06-02 09:33:50 +00:00
Zuul 1002a5d232 Merge "setup.cfg: Replace dashes with underscores" 2021-06-02 09:33:47 +00:00
Ghanshyam Mann 01b0955937 Update IRC network to OFTC
Change-Id: I8b9ec9a222ca674d0af4a350bcb0791a9ced38ec
2021-05-31 15:06:43 -05:00
Anand Bhat e620c09f11 setup.cfg: Replace dashes with underscores
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: Ib3c11dee2182d4cd9da816cee85bf9422e726722
2021-05-30 01:07:07 +05:30
yangyawei 102fd7b2af Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I246ed0e67dc6325a9d01a543820a2ce4e3d11174
2021-05-27 03:02:12 +08:00
dengzhaosen 738256ac5a Ussuri+ is python3 only and update python to python3
Change-Id: Ief7301cffbe84ebf9b6d3fc7ca261ebe2b69eee3
2021-05-06 09:34:13 +08:00
Zuul 804fa2cf4e Merge " Switch testing to Xena testing runtime" 2021-04-29 16:32:33 +00:00
Martin Kopec 3faff3add7 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: I6fc8fe8ff45e5d2d9a11d6a4d895487604a18cb4
2021-04-29 14:10:53 +00:00
tushargite96 8ad78a16df 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: Id3fae9e5e070793f4350f1699fe8617e9aea0b7e
2021-02-25 23:38:34 +05:30
Zuul 6baebaccf5 Merge "Remove install unnecessary packages" 2020-09-29 20:36:48 +00:00
Lukas Piwowarski 9bb54d2366 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.

Story: 2006070
Task: 35468

Change-Id: I1d1448153fceece36470547b5f1b646e194dc51d
2020-09-24 10:16:39 +02:00
zhangboye a0ed463f1e Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Iefb997ce97d0141bc28cf42617099aed96381fcd
2020-09-23 15:08:01 +08:00
maaoyu ef52ef53cf Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I76aacd74de837877d0a2c34a6173ee08108332b6
2020-09-23 14:37:33 +08:00
Zuul f3f45e81b8 Merge "Stop to use the __future__ module." 2020-08-05 22:58:15 +00:00
Ghanshyam Mann fb2c287268 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: I03f331e55af3ea880c2f6c868511caf6384cf0a8
2020-08-01 19:46:53 +00:00
Hervé Beraud 3ee44d3708 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: I34614487e74771ea980b7bd213d11ed5c960460d
2020-08-01 19:43:16 +00:00
Ghanshyam Mann eabcb94756 Use unittest.mock instead of third party mock
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: I8c269117dba546ee2c75685dbd29756407488aaf
2020-07-31 23:22:25 +00:00
Andreas Jaeger ea0e88e9ce 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: If9a4d4ca32793fef56b3e5c9a6508f7383476558
2020-06-02 14:20:06 +02:00
Ghanshyam Mann 8c5eb12865 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: I87accfe72f6780641adcd5cea0967bdf168c6e7b
2020-05-12 21:52:27 -05:00
Ghanshyam Mann ce1af65b21 [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: Iaec58e0b4d4356144efd626a55c2cb7913e08f3a
2020-04-22 14:08:14 +00:00
Andreas Jaeger d5c66507d3 Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new
version.

Change-Id: Ia8b6a035fa9a17eccf210bae787676b6b0843ae9
2020-03-31 13:44:29 +02:00
Zuul 248dc815d0 Merge "[ussuri][goal] Drop python 2.7 support and testing" 2020-03-10 18:01:24 +00:00
Ghanshyam Mann fcf791b38a [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

os-testr 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

Switch to using sphinx-build, remove cruft from setup.cfg, setup.py,
tox.ini, conf.py.
Update hacking version to support python3 properly.
Fix problems found by pep8.

Change-Id: I6ab22dda05132a735bd9e5caf16cc2bd172b06cc
2020-03-04 01:35:46 +00:00
lkuchlan 2c07d4e638 subunit2html dealing with incorrect data format
The patch encodes a data string which contains
non-ASCII characters to unicode type.

In python2 there are two text types str and unicode.
When we add two different text types, for example:
>>> "Hello " + u"World"
u'Hello World'

The string on the left is decoded by using the default
system encoding into a Unicode string.
If it would contain non-ASCII characters(as in our case)
this normally blow up with an UnicodeDecodeError because
the default encoding is set to ASCII.

Change-Id: I17e5aa6f45133d9d12aa38cec9cc42694913d4bd
Closes-Bug: #1857901
2020-01-22 10:55:32 +02:00
Corey Bryant 8859449359 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: I6c6f4fccec101fdbdc8cd952b889f7e43e41374a
Story: #2005924
Task: #34240
2019-07-15 13:12:46 -04:00
jacky06 414bbf6d85 Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I67c57d65accb3822f7f6a03fea96356fae9025b9
2019-06-30 05:52:12 +00:00
caoyuan ad00e6d41b Replace git.openstack.org URLs with opendev.org URLs
1. Replace git.openstack.org URLs with opendev.org URLs
2. Update some URLs to latest

Change-Id: Ifcb01ece24fb28d4dc28daa0a638787280fe8eb5
Closes-Bug: #1826529
2019-06-25 09:33:30 +00:00
Zuul bced00648a Merge "Deprecate ostestr command" 2019-06-18 13:44:34 +00:00
Masayuki Igawa a5bc990fdc
Deprecate ostestr command
This commit adds deprecation comments to README, the user doc and
warning message to in the command. We already switched to use
`stestr` command instead of `ostestr`. And we haven't maintained
this command recently. So, it would be good to make it clearer for
users.

Change-Id: I3a6084db9f86627e3e94abaa4fb4aec52a01126a
2019-06-03 18:44:07 +09:00
Zuul f16df2636c Merge "Fix warning message with double "to"" 2019-06-02 15:04:46 +00:00
Zuul 6065273938 Merge "Dropping the py35 testing" 2019-06-02 15:04:45 +00:00
Zuul 0d8c307859 Merge "Default concurrency to 0 to avoid TypeError in stestr" 2019-06-02 13:50:53 +00:00
Andreas Jaeger 70f183c052 Fix warning message with double "to"
Fix warning message:
One "to" is enough, also improve sentence with adding "file".

Change-Id: I69b1f9f30ac51a5d34eec78ceda8fdd9405a6ff1
2019-05-24 20:11:47 +00:00
Ghanshyam Mann 77002ea67d 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: I05cd5327a5ab883701fa183a1b4264f91219147c
2019-04-22 03:55:00 +00:00
OpenDev Sysadmins 5674bb0f7c 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:29:26 +00:00