Commit Graph

428 Commits

Author SHA1 Message Date
Ghanshyam Mann da848a4c00 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: I3f61e7fd131352215440f692824373cd783de820
2024-01-03 20:23:51 -08:00
OpenStack Proposal Bot 4b7edcab69 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id88c84f908bc3bb50a2c268d5866e575ea31176e
2023-11-18 04:51:01 +00:00
Zuul 4c81ce93e3 Merge "setup.cfg: Replace dashes with underscores" 2023-11-17 05:14:00 +00:00
OpenStack Proposal Bot 1c7c6d9768 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ibb52b97cf195a748b7cc8ad64b3c3d59ca37024a
2023-09-15 03:23:50 +00:00
Zuul 3d021658ff Merge "Drop lower constraint job" 2023-09-14 20:11:18 +00:00
Hongbin Lu 3d5021a23a Drop lower constraint job
Change-Id: I5de1722949cd759bf80a14227d9319b52c101856
2023-09-14 16:00:54 +00:00
OpenStack Release Bot 1a29892d94 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: Idec5b36e4fa62561ef3260abbabcacdef353441d
2023-09-14 01:42:36 +00:00
OpenStack Release Bot 2fea47223d 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: I50755d61399aafa7e7b195632cac8a6fe38e2146
2023-03-01 13:44:20 +00:00
manchandavishal 68ad102c42 Address RemovedInDjango40Warning
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
For more info. please refer [1].

https://docs.djangoproject.com/en/4.0/releases/3.0/#id3

[1] https://review.opendev.org/c/openstack/horizon/+/827092

Change-Id: I204879b617d1bf0bdb5b793b3d11080af4ce0ef6
2023-01-17 10:28:17 +00:00
manchandavishal 34b59faf66 Fix docs build for tox4
Replace deprecated whitelist_externals with allowlist_externals.
Drop skipsdist = True setting.

Change-Id: Idd797022d7504efc676dbfbe8e3e9da42f26f1e0
2023-01-17 14:36:55 +05:30
Zuul ea7a43670e Merge "Fix apiService .error() calls" 2022-11-04 09:26:33 +00:00
Tamas Gergely Peter 1600023614 Fix apiService .error() calls
Changed all calls of apiService(xxx).error() methods to the
new .catch(function onError() {}) format.

Closes-Bug: #1981615
Change-Id: Ib2f58f8eb58b1bb3a6893cf02b8a0952394bcb54
2022-11-03 15:15:18 +00:00
OpenStack Proposal Bot cb3d4a9e49 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0ad541ca25ab88293fded2d209baf48faa160182
2022-09-24 03:11:02 +00:00
OpenStack Release Bot 42c682f2f4 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: I1a0037b78fb1094a432fb546e6511b3a2fd855fd
2022-09-13 12:30:12 +00:00
OpenStack Release Bot 5fa5232c4e 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: I55bdd24c7f9f873fdefa0813086ab3b0970125f1
2022-09-13 12:30:11 +00:00
OpenStack Proposal Bot fd86b87a43 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib7276832c16abcc251e2bf2908fcfb44a516789f
2022-08-10 03:43:24 +00:00
manchandavishal 13167f3750 Migrate to AngularJS v1.8.2
This patch aligns current code with AngularJS v1.8.2 requirements.
It also updates zun-ui to use the Firefox browser instead of phantomjs
browser to fix "nodjs-run-test" job because phantomjs browser has some
issue with backticks.

Change-Id: Ibf995d6c29f64cd902834b64664cd87ef5014a45
2022-08-04 07:35:07 +00:00
maliangyi f80c73f7f9 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: I7d93587752aa29747a399ff3dfaf116f6d7b21aa

Change-Id: I059e3c95001d1567ad1fec3ed5d1a2c80be2aa94
2022-06-05 10:18:01 +08:00
manchandavishal 02f04e99bf Use Horizon project template for nodejs jobs
Horizon defined a project template 'horizon-nodejs-jobs'
for nodejs jobs. This patch updates ``.zuul.yaml`` to
use that template to run nodejs jobs here.

Depends-On: https://review.opendev.org/c/openstack/horizon/+/831929
Change-Id: I9a4656e78314bf56130a14152c7791f577bb4f11
2022-05-11 00:27:14 +05:30
manchandavishal bdc00ef34b Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I738008187eb5ceae633f42eb0cedc774017ab79d
2022-04-29 17:31:21 +05:30
caowei f85d70c05f Zun with tls enabled is not working on horizon
Closes-Bug: #1960145
Change-Id: I13f791999e607936dd62357dfc6e7e4f7a903133
2022-04-14 16:21:42 +08:00
OpenStack Release Bot 1e81e01a30 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: Ie78e5d9fbefd94ed9b3faa60eff83b99925c466a
2022-03-08 12:26:35 +00:00
OpenStack Release Bot 436214e5fb 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: Id454d16ca4f63fe7b9d026dcb2f24f04dfb528b6
2022-03-08 12:26:33 +00:00
manchandavishal 20ae779160 Updating python testing classifier as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are handled by the
job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit updates the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html

Change-Id: I189ac002fcd7b1950ed15626e04cdf8e941aa690
2022-01-31 10:42:21 +05:30
OpenStack Release Bot 267cf06333 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: Id6871b692490abc6e4d66d02e95f6e65eb41cd7f
2021-09-15 02:11:13 +00:00
OpenStack Release Bot f3487db23f 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: Ic5bf30d9032e5532d73b23fa7991b16c7f08f7ee
2021-09-15 02:11:12 +00:00
manchandavishal f27296e6d5 Drop horizon-nodejs10-jobs template
As we already added horizon-nodejs14-jobs template in this plugin
and nodejs14 jobs running fine. So let's drop horizon-nodejs10-jobs
template because nodejs10 is already EOL.

Change-Id: I11176ef54ca25b130bc2c1c86b8458cbf960312f
2021-05-19 21:45:36 +05:30
manchandavishal 20b43eaa13 Add horizon-nodejs14-job template.
Depends-On: https://review.opendev.org/c/openstack/horizon/+/784062
Change-Id: If471931f378b66e854b9bc3b65c924fd11501a90
2021-04-27 18:21:50 +05:30
OpenStack Release Bot 719d7607d7 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: I441a86889ba4ad37c7082d2749b9e0a482166d6b
2021-03-22 12:13:15 +00:00
OpenStack Release Bot 6cbea3f0ba 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: I3bc3d8279fe09c149cabbcf4f59a8182b51c17eb
2021-03-22 12:13:00 +00:00
OpenStack Proposal Bot aa4875f121 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7f4003a71e4ba1df6f9ceaa539d85f834650f4fc
2021-03-03 08:42:37 +00:00
manchandavishal 7b1281c160 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.
For more info. please refer [1].

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I4e0c00b6d01470f59a6fa5799eaa10d3e5e94f61
2021-02-16 05:46:18 +00:00
OpenStack Proposal Bot 193614093d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iaa9b9c28a08d2e84ef2736b8f276b238b7f6bcf0
2020-10-04 08:37:31 +00:00
OpenStack Release Bot d673771d36 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: Ib36df0c2bd1b60a798023d86f1a72ca78edda86d
2020-09-22 14:10:51 +00:00
OpenStack Release Bot 752fefd17c 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: I39ea66f0fbbc235aa445c54a34961d0f26060e45
Sem-Ver: feature
2020-09-22 14:10:50 +00:00
zhoulinhui 1fe062f92c Fix l-c testing for Ubuntu Focal (py38)
Change-Id: I3e0151a014d9073005c6575f5a33e5796a8216ed
Story: 2007865
Task: 40199
Closes-Bug: #1886298
2020-09-11 09:20:26 +08:00
manchandavishal f398c08476 [goal] Migrate testing to ubuntu focal
If we move horizon jobs to focal then zun-ui 'nodejs-test' job
fails. This patch adds libfontconfig1 in bindep.txt as phantomjs
requires libfontconfig[1] to fix failed nodejs job.

Depends-On: https://review.opendev.org/#/c/744647/

[1] https://www.npmjs.com/package/phantomjs-prebuilt#linux-note

Change-Id: Idf9a1be6fe81215de91f012f534c765e360e2330
2020-09-02 11:25:55 +00:00
Ghanshyam Mann 0abe2e2133 [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: #40230

Closes-Bug: #1886298

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

Change-Id: I76120e76cebb38e51398ce69ff9ed7bcfb351812
2020-08-04 16:02:11 +00:00
manchandavishal 2e67f89f76 Fix npm jobs
horizon is doing frequent releases, the install from source is not
working as is anymore. Remove it.

Change-Id: I5a58cedffe0b6ada17c3aa0484725e4711b8914f
2020-07-13 18:45:32 +00:00
Hervé Beraud ac919bf000 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I837241a34505496a3a152d72f28f23687ded1088
2020-06-09 12:21:06 +02:00
Hervé Beraud d494a28373 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: Ieb95ab87d73c6edb602f618f492fa77bad411bb8
2020-06-02 21:09:18 +02:00
OpenStack Proposal Bot 33a54e21aa Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I71a89a20c90d0c3fc08516584adeae4f9f1ca6d1
2020-05-27 10:27:34 +00:00
Andreas Jaeger 489f9fbac2 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.

Set openstackdocs_auto_name to use 'project' 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: I88d35727272813aa5371969e3ea3e763e1a12700
2020-05-21 10:36:00 +02:00
gujin 676b38a9ad tox: Keeping going with docs
1. Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
2. Remove the exists folder before run sphinx-build command

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I1b1b45bf3ae104defbb16282e18995a28f67f649
2020-05-17 22:35:37 +08:00
Zuul 7448258c99 Merge "Fix hacking min version to 3.0.1" 2020-05-14 02:11:20 +00:00
Ghanshyam Mann f8549e9f51 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: I12b935504b1c0e11d41ac3683f6a1d8580f7dd75
2020-05-12 21:44:24 -05:00
jacky06 c994d923ea Remove the unused coding style modules
Python modules related to coding style checks (listed in blacklist.txt in
openstack/requirements repo) are dropped from lower-constraints.txt
as they are not actually used in tests (other than pep8).

more info: https://github.com/openstack/requirements/blob/master/blacklist.txt

Change-Id: I1c776ee7e460b60b313a6a7023e62a4d8bfa1be0
2020-05-12 00:11:17 +08:00
jacky06 44e2011051 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Change-Id: I6a4340d71e934cad5d9c2337e4728c6900fdd924
2020-05-06 13:32:22 +08:00
OpenStack Proposal Bot 80e86b33eb Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I05c7054031283b6b6bcec39056a8ef2c2be60f26
2020-04-29 10:56:19 +00:00
OpenStack Proposal Bot 45cf181f4c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia4d24f6b0b220e78c944800a3409130caa7c4fa2
2020-04-25 09:54:39 +00:00