Commit Graph

242 Commits

Author SHA1 Message Date
liyou01 cf30defab9 Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:

 failed with pass_env values cannot contain whitespace,
 use comma to have multiple values in a single line,
 invalid values found.....

Other failure is due to the skipsdist = True.

Fixing tox.ini for tox4 changes.

Change-Id: Ia9d62d92632aca90a526046971222dc29973fa60
2023-03-01 17:53:56 +01:00
OpenStack Release Bot e330c0bb47 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: Iaa0521197dbb8e967fedd9f97be0c45d7e4b8746
2022-09-14 13:43:13 +00:00
Zuul f2d61f2e02 Merge "Address RemovedInDjango40Warning" 2022-05-26 07:12:08 +00:00
Ghanshyam Mann 297460c287 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I2114803b2b729fc83a2ab71aa6c91b9340203534
2022-05-01 13:04:59 -05:00
manchandavishal e881ae235f 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: I4e59574223b3df314d9e9a331ad33664720b3ac3
2022-04-29 22:00:55 +05:30
Zuul 0830c4f4b0 Merge "Use py3 as the default runtime for tox" 2022-03-25 08:53:04 +00:00
OpenStack Release Bot 79b200f627 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: Ie17dc22f92f72b1ff9348f94829026e32ac0bd2a
2022-03-08 12:05:37 +00:00
manchandavishal a9d4f857b1 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated, Please see [1].
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

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

Change-Id: I6fa9c8825bac81dafe15d7a28eff30753ae1f79f
2022-01-28 18:28:01 +05:30
OpenStack Release Bot 8e4c80b91b 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: Ifa6fc4d528599ee41f0601c67c3a2a49f0d2a5b6
2021-09-17 14:37:34 +00:00
zhangboye 743f48f5f1 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: Iee84583271b168dad902fd9e11f8e0ad155d753e
2021-04-20 14:09:32 +08:00
OpenStack Release Bot 40714fdbe2 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: Ib694c146a229c2c7ce774bc1a9b458d77e2c6c02
2021-03-26 18:36:21 +00:00
Zuul 874e693c34 Merge "Add doc/requirements" 2021-02-08 00:53:30 +00:00
manchandavishal a9330963c8 Fix lower-constraints job
This patch bump few packages version in 'lower-constraints.txt'
to fix the CI.

Change-Id: Ided45f20b4d30f9c655d1745bbcc8f57e875ff9f
2021-02-03 14:34:05 +00:00
Hervé Beraud 8a7461367b Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: I58231c2cd2f11d9002961f3105a989c37a58bc75
2021-01-07 17:05:25 +01:00
OpenStack Proposal Bot 72105737a1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I71b7d87ff00401496bf5bda7e924ed29fd915eaf
2020-10-05 09:14:54 +00:00
OpenStack Release Bot 8c53afcf20 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: I9b24e310fc3176ee9b9e64359374cb3fad34dab2
2020-09-24 08:48:36 +00:00
OpenStack Proposal Bot 9f7ad91e05 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3db9f534ac2a389c500ede9dad49d6d798ba22e0
2020-09-08 08:41:46 +00:00
manchandavishal 51c38aee7a 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: Idda9c9d6acfe545b3a663543ab5d7056d70bf3d9
2020-08-28 18:59:55 +00:00
Ghanshyam Mann 9c3c10344e [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: #40219

Closes-Bug: #1886298

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

Change-Id: I41c58ef250f9cd17e4ad944ae07638797786a0ce
2020-08-04 13:33:29 +00:00
Hervé Beraud eff94f91cc 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: If4c8be03f0f6d7fcc73a2674a368268f8b0fab2e
2020-06-09 12:13:01 +02:00
Andreas Jaeger c995271ae0 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version 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: I367834f29b7b6659ffb196a63c66ddd9edd0f4d9
2020-06-01 16:02:50 +02:00
Ghanshyam Mann 9c58d06027 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: Iccb4ba8a1437abfe8183a8cc2d49a3b3694e9ed5
2020-05-12 21:12:38 -05:00
jacky06 455d4fcfb0 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: Ie01c76833242fe36f12b199ea3353404c69c8698
2020-05-06 23:22:58 +08:00
Zuul 8cf12b6a94 Merge "Bump default tox env from py37 to py38" 2020-04-26 01:02:15 +00:00
Sean McGinnis 0c70f4305f
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Id9a321d5caadc76c13f880c53a6a3fdcad5a16a6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:26:03 -05:00
Sean McGinnis d2ff684041
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: I5013a770c734e7f47ad24d8cfe3d9cb16ef1743d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:21 -05:00
OpenStack Release Bot d4a541b25d 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: I82706eaaeeae0e36d0d0c9e297a80a129f1c42a8
2020-04-22 13:10:38 +00:00
Andreas Jaeger e37246df9d Cleanup doc building
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use build-sphinx as modern way to build docs
- Remove unused docs requirements

Note the repo has no docs job and no real documentation, still let's fix
to help with docs going forward.

Change-Id: I9063c3764dad3304a6f9cea8322449f0a0331d8c
2020-04-16 11:39:21 +02:00
zhurong 00eca345bd Cleanup py27 support
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:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I715bdcd7a4c3368d5a3a5d2a9da337a0d5bf6898
2020-04-07 04:31:45 -07:00
manchandavishal b9e259b83c Fix pyScss version in lower-constraints.txt
Horizon requires  pyScss>=1.3.7 [1] but lower-constraints.txt
in solum-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: I34a2e55d74c1ac8e8fbd3389ac0b43428be36d4e
2020-04-01 18:22:09 +00:00
Zuul 83c759ba97 Merge "Use pyyaml instead yamlutils module." 2020-02-19 01:08:23 +00:00
Daniel Bengtsson 5b31c63004 Update the minversion parameter.
Update the minversion parameter to use the python -m pip to install
python packages:

https://tox.readthedocs.io/en/latest/changelog.html#id185

It's recommend to use this. Remove the useless install_command
parameter.

Change-Id: Ie9d218f35c10034c61061524932dd5870e5d23b9
2020-02-18 11:59:40 +01:00
Daniel Bengtsson f96385b817 Use pyyaml instead yamlutils module.
The solumclient.common.yamlutils is deprecated:

https://review.opendev.org/#/c/708075/

Use pyyaml instead it's safe by default now.

Change-Id: I41d5273c627ee2d0f3363afdeee466ad9b451585
2020-02-18 11:56:39 +01:00
Andreas Jaeger dfb3656951 Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Change-Id: I24d1d8fa8569628edd17f02c5d4d317b0b440a52
2020-01-11 18:22:12 +01:00
Akihiro Motoki 0474a38112 Drop django-babel from requirement.txt
We have switched the babel extractor for Django from django-babel
to enmerkar recently. solum-dashboard requirements.txt needs to
sync the change. enmerkar, a successor of django-babel will be
installed via horizon, so we don't need to have it in requirements.txt
explicitly.

lower-constrants.txt is updated to use enmerkar accordingly.

Change-Id: Idfc3c4e39f616723e744cf13037d72bebc1026db
2020-01-08 18:16:17 +09:00
manchandavishal ef8afc2f75 Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I2bdc65bacae6b89b520ca9b473e1d7bf2cafedee
2020-01-02 20:46:42 +00:00
Akihiro Motoki 8962748597 translation: drop babel extractor definitions
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.

This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.

Change-Id: I3317fff56f55752d1df13f266877755cada1ebe1
2019-12-27 02:29:14 +09:00
OpenStack Proposal Bot b69f83ddd3 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I91d422644c748bfeed57bf44d4a76ad09caf2b0a
2019-12-22 06:32:39 +00:00
Ghanshyam Mann 60938c94fa [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

solum-dashboard 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

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

Change-Id: Iaeb821e3e31f7b2bfcd60212790fa3e5d13fd014
2019-11-25 09:03:17 +00:00
manchandavishal 64c0958bae Switch to official Ussuri jobs
Change-Id: I276a77a08de77b1ed073524960f65ae47aae53e9
2019-10-14 07:01:01 +00:00
manchandavishal 1ba2edb5f5 Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

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

Change-Id: Ie7c11ab1ad810dc5a766a55fbc2640df428258c2
2019-10-05 09:56:58 +00:00
OpenStack Proposal Bot 922c83ad99 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5067229039e44b4397e0f99737c56187b6208e31
2019-09-26 07:06:50 +00:00
OpenStack Proposal Bot 9c5453bd31 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I66da597000ebfd345ead741f7706c2a8caacf954
2019-09-10 10:35:00 +00:00
pengyuesheng 4867842a5e Refactor error messages
This patchrefactoring the error message and
shows the detailed error message

Change-Id: I95c33f7e02bab5f26f0a883f01eac379cf24dea9
2019-09-09 09:44:57 +08:00
Corey Bryant 5f84a726d7 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: I56899805c2492c7002e35c3fb8a078e68fb0ed8e
Story: #2005924
Task: #34247
2019-07-05 16:18:05 -04:00
zhurong c48893ef5c Update contraints url
Change-Id: I8def9d0dcaebbfa79f26a7bb585aac6768861325
2019-06-18 14:31:49 +08:00
zhulingjie cac95603d3 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I2832b2a6fcae8b4f78ac4bd5eb9402367e1c54dc
2019-04-24 01:36:25 +08:00
OpenDev Sysadmins 5c3c32d4c0 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:44:45 +00:00
Ghanshyam Mann a313e218d4 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: I94a5c6ed319f85168b4f069c9aa0a9062bdde5c0
2019-04-16 17:16:07 +00:00
Sean McGinnis 7e9c2e2304
Fix lower-constraint deps handling
When the lower-constraints tox target was added, it was assumed the
install_command was just running the install and that the dependencies
and constraints were being set using "deps = ".

This fixed the install_command and deps to follow the expected pattern
so the lower-constraints job actual does install the lower constraints.

Change-Id: Ibb93f81ed23833f64730ca851a88114d4f0e0e63
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-03-22 10:38:22 -05:00