Commit Graph

287 Commits

Author SHA1 Message Date
OpenStack Release Bot 0451ec9c5f Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: I584e2caa0effa1a497474c1ab425acabc47c9575
2024-03-15 14:21:06 +00:00
Zuul 3458bb9225 Merge "Update python classifier in setup.cfg" 2024-02-13 08:00:11 +00:00
Zuul f3d863247f Merge "Drop use of features removed in Django 4.0" 2024-02-13 07:11:57 +00:00
Zuul 8f437339c6 Merge "Django 4.x: Replace removed features" 2024-02-13 06:32:55 +00:00
Ghanshyam Mann b1db180990 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I84c8571e017cbb39b364b9f94bbb35747cf75e8a
2024-01-09 19:21:57 -08:00
Corey Bryant 08a7342e94 Drop use of features removed in Django 4.0
These functions were deprecated in Django 3.0 and have been removed
in Django 4.0. Switch to the functions they were aliased to.

Closes-Bug: #2039226
Change-Id: I2180b1ccae7ca377aa5d4586bd3c5562512b5e98
2023-10-13 11:41:16 -04:00
OpenStack Release Bot eaf8db4c84 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: Ib01f17310f6828d3dec06abd0b4838ccfd990708
2023-09-14 01:23:26 +00:00
OpenStack Release Bot 2114b979df Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I736f31968a913de631e86d1fbd88f2662f0c9847
2023-02-28 13:27:59 +00:00
Zuul 0c7d458d63 Merge "Replace deprecated inspect.getargspec" 2023-01-17 13:20:59 +00:00
manchandavishal 553c089d09 Adjust tox.ini for tox4
OpenStack CI now uses tox4 by default.

- Drop "skipsdist = True".
  When skipsdist=True is specified, a target application is not
  installed into a tox env, but there seems no reason to do so.
  In various other OpenStack projects, a target applicatin needs
  to be installed into a tox vnev, for example, in docs and/or
  linter jobs and it causes failures with tox4. So dropping it
  would avoid potential future failures.
- Add ignore_basepython_conflict = True to tox.ini
  With latest tox (>4.0.15) python version conflicted with base
  python. Adding ignore_basepython_conflict = True solves this
  issue.

Change-Id: Id25cde435e9eaf6d5d2573d522cda763dad1a89b
2023-01-16 18:52:53 +05:30
Thomas Goirand 2f5345a6d8 Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>

Change-Id: Ie9cdf3e87a06a0af8cf36c8bbdef0f14336e8f70
2023-01-04 15:53:23 +05:30
OpenStack Release Bot a1f181f610 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Id599fb692f5a36f8dba39ca98abe5ac54b707b56
2022-09-13 12:30:03 +00:00
OpenStack Release Bot cb75625342 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I3f5f9bd3fdd591cc836895a0998708fa7cf656d0
2022-09-13 12:30:02 +00:00
Corey Bryant 56094cec47 Django 4.x: Replace removed features
ugettext_lazy(), ungettext_lazy(), and django.urls.url() are
removed in 4.0.
https: //docs.djangoproject.com/en/4.0/releases/4.0/

Change-Id: I7747087589b6ec96792d77aae5fb452c1b5661bb
2022-07-20 10:36:46 -04:00
OpenStack Release Bot b526383eba Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I7be79d0641dc54f1698ee43c9cd27871371640c5
2022-03-10 12:13:24 +00:00
OpenStack Release Bot cee9f07159 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I58a438faadd070ec8ec868c4eaee2ef7f17904bc
2022-03-10 12:13:22 +00:00
OpenStack Release Bot 146e547da9 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ifd0557060d055aa07b34320808b2360387a226cb
2021-09-15 16:53:50 +00:00
OpenStack Release Bot 32df7210e8 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: Iee515e29541c6957db520339fa923a59a392ff6e
2021-09-15 16:53:49 +00:00
Dantali0n 4192182302 Fix broken devstack install
Change-Id: I79cd70085e9e423fa3a7835e4a7fbd2b0cbf4922
2021-07-08 20:26:07 +00:00
Dantali0n a9fc6a8ab3 Enable tox cover jobs on zuul
Change-Id: I674eea6d66a78f524fdd2b505b4788450130a0e4
2021-07-07 16:58:02 +00:00
Dantali0n 5d22d8c97f Repair coverage report tox job
Coverage report job for watcher dashboard must have been
broken for an extensive amount of time. This patch
fixes it.

Change-Id: I3f0ec731d28d0f55c4378038237dc91b5c548ed5
2021-07-07 10:04:58 +02:00
Dantali0n a48e09f7ab Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 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: I83ee292b6d7440f7543ef85d7eed82940ee9745d
2021-07-06 12:59:34 +02:00
Zuul f3554b5726 Merge "Manage constraints with testenv install_command" 2021-07-06 06:54:56 +00:00
Zuul 4daaec6665 Merge "Fix create audit fail from audit_template" 2021-07-05 13:46:10 +00:00
Dantali0n 8a2d2ebd79 Manage constraints with testenv install_command
This prevents having to duplicate the -c{} deps argument
across all environments in tox.ini

Change-Id: I681688df779557654b001caf33ca6ffbda08f43b
2021-07-02 10:44:11 +00:00
Zuul 25981997bd Merge "doc: Update our IRC server to OFTC" 2021-07-01 10:38:35 +00:00
Zuul 5df1a5c653 Merge "Use py3 as the default runtime for tox" 2021-07-01 09:45:56 +00:00
Zuul 9f4f7c8588 Merge "setup.cfg: Replace dashes with underscores" 2021-07-01 08:42:22 +00:00
OpenStack Release Bot 0d9323edf1 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I9c293e6055aa7ae50a2d3b6537d19033bf380bc2
2021-07-01 09:15:14 +02:00
Zuul df2ac952a6 Merge "Update master for stable/wallaby" 2021-06-30 11:14:28 +00:00
manchandavishal d147750ab9 doc: Update our IRC server to OFTC
Change-Id: I0d5115c037f89aede2434442439f4ad465700338
2021-06-04 15:44:05 +05:30
limin.lc 2ee3c6015c Fix create audit fail from audit_template
The name is a positional parameter in create() of audit,
but this parameter is not defined when calling from the
audit template. This patch fix it.

Related Bug: #1930565
Change-Id: Id18945b881d150f972dbbd5522010be0157fba17
2021-06-03 11:25:44 +08:00
zhangboye 0aee486d39 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: I00108fb70f077eeda092c9124f37df51860df370
2021-05-05 06:34:06 +00:00
YuehuiLei 54a6e1080d 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: I0573f72eb92ddda5392dbf78260a18b17a8d75af
2021-05-04 17:01:22 +08:00
zhangboye 427afe1f75 Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: I9308030b0a16f9a7e085b3e64230cd92dda6ad83
2021-05-03 09:10:34 +08:00
OpenStack Release Bot 399b3cdb58 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I4b5dbd04eeef670f66b567e380cb15cd6547aee6
2021-03-22 12:13:52 +00:00
YuehuiLei 02bdd270ee Bump py37 to py38 in tox.ini
Change-Id: Ic6af898c100cd17f879955cab18960ec1f06710d
2020-10-12 11:09:18 +08:00
OpenStack Release Bot 8e3c709a5e 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: I4b2de47b867251cfb8691a2332f090b605d9406e
2020-09-22 14:12:10 +00:00
OpenStack Release Bot 251ce6be44 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I861430e8f0d3acee6ea6e94aa84ca7e2442d0714
Sem-Ver: feature
2020-09-22 14:12:09 +00:00
manchandavishal 9e777ec9a4 Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I3ff5f7b25c0e91e67a8c98020993676d6345379e
2020-09-04 07:13:50 +00:00
Ghanshyam Mann a72fd198c9 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8
support in their later version.

Story: #2007865
Task: #40227

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal

Change-Id: Iba1a0839df825fe03e1234229e141ec84ea0754d
2020-08-04 07:20:41 +00:00
Andreas Jaeger 4d85bab46b 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_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: Ie14b87a1e67a7b4351f17a2f0687bcfe5a4b2133
2020-05-21 12:44:20 +02:00
Zuul 1301dd676e Merge "Remove the mock" 2020-05-13 07:26:13 +00:00
Ghanshyam Mann da6ec9f9d0 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: Ia4747715db8e70d66087dfc0c2b723c451b321a0
2020-05-12 21:35:44 -05:00
jacky06 9cfd50ac67 Remove the mock
1. Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
It also update horizon dependency in lower-constraints.txt.
2. remove six together

Change-Id: I371e7485438d43eb823ab7d4fd719e0e52da75eb
2020-05-09 23:51:45 +08:00
Sean McGinnis fa649882e9
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I5fcc63ab2ad9a6c5f9cd1a922ef7ea5627c7a396
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:18 -05:00
OpenStack Release Bot 831810c30f Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I9c16126c5d8544b64edca9bd21fe4d747df7d62e
2020-04-23 09:43:01 +00:00
OpenStack Release Bot b905f683b6 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8d45faee435c6368707577f17a5f136343bea810
Sem-Ver: feature
2020-04-23 09:42:59 +00:00
Andreas Jaeger 30bb75d744 Cleanup py27 support
This repo is now testing only with Python 3, so let's 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
- Switch to using sphinx-build
- Cleanup */source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Use mock from unittest;leave it in test-requirements for now since
  otherwise lower-constraints fails since some repos expect mock to be
  installed without requiring it.
- Remove future imports, not needed for python3
- Update to newer hacking version for python3, disable one warning.
  Remove hacking requirements from lower-constraints, they are not
  needed there.
- Cleanup tox.ini, move basepython to top
- Update horizon requirement for ussuri

Change-Id: I1753bce3ac4fc4248783c0669cacab2e037e62fe
2020-04-12 19:01:57 +02:00
manchandavishal 58c6bfcfba Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in watcher-dashboard uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.

[1] https://review.opendev.org/#/c/715241/

Change-Id: Ied17533efae12a4c8cac0b259c88d2d43dff2afa
2020-04-01 18:22:08 +00:00