Commit Graph

362 Commits

Author SHA1 Message Date
Zuul 33db4d1d81 Merge "Dropped the python 3.6/3.7 in zed cycle testing runtime" 2022-06-18 03:44:53 +00:00
Cai Hui cd02688d89 Dropped the python 3.6/3.7 in zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support.

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

Change-Id: I57fbd274c237a9f48820a13b123df64c028d34f4
2022-05-15 09:14:33 +08:00
Zuul 722ae8a051 Merge "Address RemovedInDjango40Warning" 2022-05-09 01:21:01 +00:00
Cai Hui 467ed25f66 Add zed unit tests
Add zed unit tests.

Change-Id: I090bc31af0fcd0c75c1da519dd464f1474d94a2e
2022-05-08 19:54:13 +08:00
Ghanshyam Mann 750dac7f2a 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: I429e40d21c075de3b8666dc60c878378acfba5e1
2022-04-30 16:03:45 -05:00
manchandavishal cc41dedbc5 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: I66118c1af551e69a2deabf87b37efa574233e93b
2022-04-29 16:44:48 +05:30
Cai Hui ed5462edac Fix pylint error:H405
Fix pylint  H405: multi line docstring summary not separated with an empty line

Change-Id: Ic2579afbc20319fc5e35c5170cf33f1e39a8e7f7
2021-11-06 19:27:41 +08:00
Carl caihui 716266f5d7 Add python3.9 CI
Change-Id: I5dfbf48059b2bfc538a448f626fa07298e1d9dc6
2021-11-05 01:07:17 +00:00
Cai Hui 8e3a2b7022 Update support python version
Delete pythpn3.7,Add python3.9

Change-Id: Ifed260df6cff72ae2f0fadfcdf587fdb63a59fd3
2021-11-03 19:30:16 +08:00
OpenStack Release Bot d24dbb39ca 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: Iaaf9583c7485c9685c33bc32e1e9b500708f2a5c
2021-09-17 14:18:41 +00:00
Zuul 39157c072a Merge "[ussuri][goal] Update contributor documentation" 2021-06-16 02:36:24 +00:00
Ghanshyam Mann abf50fe06c [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: #38522
Change-Id: Id2d951e5a080565796f765f70c678c78bb3958da
2021-05-31 20:37:45 +00:00
Zuul 1cd0df46f9 Merge "Add Python3 xena unit tests" 2021-05-25 11:02:29 +00:00
yangyawei 583ba22cc6 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: I416c61dddf1cc5989fa01bb11bbdcc52cddc66a2
2021-05-13 18:16:12 +08:00
OpenStack Release Bot 5d82e7a05c 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: Id4da3eee02aa290046b2dbab3d698f3766894a1b
2021-03-22 12:01:27 +00:00
OpenStack Proposal Bot c1c0d57ede Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie2567b7f54e8cc54e1814b6884a5184581e1bd5a
2021-03-03 06:27:19 +00:00
manchandavishal b4f7b7ae78 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: Ib606ad3175a55b7884684adad8e2da87fefae0ab
2021-02-16 12:31:21 +00:00
manchandavishal 312064be40 Bump pylint version to fix pep8 job
This patch upadte pylint version to 2.6.0 in
test-requirements.txt and wrapt version to 1.11
to fix CI jobs.

Change-Id: Iba2a2321ee2ff459466918150d825c55c2596473
2021-02-04 05:20:40 +00:00
caihui a18091a868 :Update gate job for wallaby
Update  "openstack-python3-victoria-jobs" to  "openstack-python3-wallaby-jobs".

Change-Id: I0e9e30093f39230859fbfa415fd9fba00ff03e79
2020-11-18 18:08:04 -08:00
Luigi Toscano 1f5004d521 zuul: migrate the freezer-web-ui job to native Zuul v3
The current job only checks whether the repository can be installed.
It specifies a tempest regex, but it is invalid, and anyway
the tempest tests do not touch horizon and its plugins, so
the job can just inherit from devstack instead of devstack-tempest.

Drop the distribution-specific suffix, ubuntu is the default.

Change-Id: I3d9cc639f5d5f523a1cdf395acacbfd88920e339
2020-08-07 18:18:49 +02:00
Caihui e57a654832 Add py38 in tox.
In new release, The project  is used  python38 to replace python37,
so drop py37,add py38 in tox.

Change-Id: I17db2c72a9752fe1484b16f8a1acc149d14bb6ea
2020-07-01 23:42:18 -07:00
Zuul 1cf4736884 Merge "Switch to newer openstackdocstheme and reno versions" 2020-06-19 09:07:39 +00:00
Hervé Beraud b2af707db4 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: Ifa8a4eec62f322d23376c3b70e930360101e0ff9
2020-06-02 20:13:59 +02:00
Andreas Jaeger 2a465428ff 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.

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: I420adfab0ff40fffd9a211d72ad6c953a495676e
2020-05-30 16:51:39 +02:00
jacky06 b248f85a1e Update to hacking 3.0
Update to newest hacking version, it has only minimal changes and full
support for Python 3.

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).

Change-Id: I67f390e6d7b6fb9eeb7522728ba293d3337b3327
2020-05-17 03:14:40 +00:00
Zuul 97258c303e Merge "Add py38 package metadata" 2020-05-09 01:56:53 +00:00
Sean McGinnis cf9a3e3b38
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: Id14fccdefc6ec2ed5078eeb0a22f623b16c375c9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:11 -05:00
jacky06 3e95dbca27 Remove the mock installed
1. Remove the mock installed
2. Remove unittest2 since it not used any more

Change-Id: Ie75cfec3b17dec949a91ce2b401a6220fa90916f
2020-04-30 00:07:52 +08:00
OpenStack Release Bot c79bc4fce2 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: I71bbce732f7e6af22313a7f602964d498402ae93
2020-04-22 13:10:33 +00:00
Andreas Jaeger e599248661 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
- Remove unused oslosphinx requirement

Change-Id: I845d02c5fb7cf57beb3628821156bff7310733ca
2020-04-05 08:18:58 +02:00
caihui 7f03af4887 Remove six useage
We don't support python2 anymore so we don't need this compatibility
library.

This patch remove six useage.

Change-Id: Ib2fa617a9c0ea7a21652fee28964fc09600d6d54
2020-02-18 01:03:45 -08:00
OpenStack Proposal Bot 75b145a459 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I176d97ee1a76bd91569cad69ac87e82fa96c265f
2020-01-17 07:32:06 +00:00
manchandavishal 833a40b7b7 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: I499c5f2fb06caa70c939b6e503f65c14c2c2e474
2020-01-01 20:21:08 +00:00
Akihiro Motoki d0e560fc91 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: I68b0eecd6b17be0e059fccdbced5784151c0e492
2019-12-27 02:02:09 +09:00
Ghanshyam Mann 8f353278d4 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-web-ui 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: I7a85a88ad3d248ea081eb22db6507f9bd21493f7
2019-11-22 01:52:38 +00:00
caihui 1fc3835933 Update devstack doc
Add a sampe "local.conf" file for freezer developer.

Change-Id: Iee12d4c186a373c5d8987dd48ece2b7a6eef446c
2019-11-15 17:26:49 -08:00
caihui f894d59db0 Add py37 and remove py35 in envlst
1. Update tox.ini file, add py37 and remove py35 in envlst for UT.
2. Upgrade pylint,astroid,keystoneauth1  version

Change-Id: Ibb7a5ad85343d0ffe5c50d6c72865bce6657ea36
2019-11-15 02:21:33 -08:00
manchandavishal 146a150bc1 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: I2a8bc45f838e9dc56ad015c44e034cf5d009d2ab
2019-10-09 17:08:04 +00:00
manchandavishal d939a7892b Bump minimum ksa(3.16.0) to fix gate
Change-Id: I18e8af262e79dd7a7ea24015696736272c1fe131
2019-10-09 16:55:42 +00:00
jacky06 1f06dacd90 Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest
3. Bump the keystoneauth1 to 3.14.0 to fix the gate[0]

[0]: http://logs.openstack.org/40/666040/4/check/openstack-tox-lower-constraints/063a064/job-output.txt.gz#_2019-06-18_16_35_28_185448

Change-Id: I5cb981175922df52ae55961109c904f6ecf94d24
2019-07-04 20:47:07 +08:00
OpenDev Sysadmins 7509ca245a 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:40 +00:00
Ian Wienand 3207b575a1 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: I66374a28c0ae20772bde47c785c5a368045e7824
2019-03-24 20:33:32 +00:00
Zuul 427011f445 Merge "Add the project source code repository in README" 2019-03-15 02:35:04 +00:00
ghanshyam e8d4753616 Make freezer-web-ui-ubuntu as voting job again
freezer-web-ui-ubuntu job has been made n-v in legacy
job migration work.
- https://review.openstack.org/#/c/642610

Not issue has been fixed and it is working fine
- https://review.openstack.org/#/c/643213/3

Let's reenable it as voting.

Change-Id: I735e0dacb035770be814ca1b829c56ef9ba644ff
2019-03-14 16:04:44 +00:00
Nguyen Hai Truong 81f8c09b83 Add the project source code repository in README
Change-Id: I4d7db76a3426e575abb1fb487043cafb86d441ee
2019-03-14 03:57:49 +00:00
ghanshyam 544794cb82 Rename and migrate the xenial gate jobsto bionic
We have migrated the zuulv3 job to Bionic during Dec/Jan month.
 - http://lists.openstack.org/pipermail/openstack-discuss/2018-December/000837.html
 - https://etherpad.openstack.org/p/devstack-bionic
But that effort does not move all gate job to Bionic as there are
large amount of jobs are still legacy jobs. All the legacy jobs still
use Xenial as nodeset.

As per the decided runtime for Stein, we need to test everything on openstack
CI/CD on Bionic - https://governance.openstack.org/tc/reference/runtimes/stein.html

Below patch move the legacy base jobs to bionic which will move the derived jobs
automatically to bionic. These jobs are modified with branch variant so that they will use
Bionic node from stein onwards and xenial for all other stable branches
until stable/rocky.
- https://review.openstack.org/#/c/639096

This commit rename the ubuntu based gate job so that we do not need to rename
them on every new distro migration.

More Details: https://etherpad.openstack.org/p/legacy-job-bionic
Depends-On: https://review.openstack.org/#/c/639096

Making failing job n-v till story#2005227

Change-Id: Ia00af4f5e40075a2cd8257afdd8e41c2ef40f932
2019-03-14 00:28:40 +00:00
Zuul 1fc5b2b3ae Merge "Add python 3.6 unit test job" 2019-01-28 11:59:10 +00:00
Zuul dc732eaca2 Merge "Don't quote {posargs} in tox.ini" 2019-01-28 11:59:09 +00:00
Zuul 4195a63407 Merge "Update document building tox target" 2019-01-28 11:56:11 +00:00
Zuul 37bd6458e0 Merge "Change openstack-dev to openstack-discuss" 2019-01-28 11:54:04 +00:00