Commit Graph

129 Commits

Author SHA1 Message Date
Zuul ba060b277d Merge "Updating python testing classifier as per Yoga testing runtime" 2022-05-08 09:20:04 +00:00
Cai Hui 7a7a97dd0c 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: Iaa74763ad7fa80ad5b47cc820a04b8e3a7ad25d9
2022-05-08 16:38:19 +08:00
Ghanshyam Mann a7ce6d2052 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.htmlml

Change-Id: I38be26a1f850275a26f54aeba40e8a809221f722
2021-12-14 02:41:24 +00:00
Carl caihui b8e9db6060 Update gate ci
Change-Id: If85bb9086897849cdd969cf4267b85f658bad9d8
2021-11-03 23:28:18 +00:00
Carl caihui 6a10ce1755 update python37 to python38
Update python37 to python38

Change-Id: I78ada3e17b436d7f17d47683f81e8ffa952b0a00
2021-11-03 09:36:33 +00:00
Cai Hui 44ccb487f3 Fix pylint error
Fix error
E1120: No value for argument 'Loader' in function call (no-value-for-parameter)

Change-Id: I70afa3917e28b57f7ea8d992a7910c09bec7b4d5
2021-11-03 06:31:43 +08:00
Ghanshyam Mann 9e969c8600 [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: I805e76e063f5ed324daa944a76bca107dc42192f
2021-05-31 20:30:23 +00:00
Zuul 599c2bedb3 Merge "update py37 to py38" 2021-01-25 05:22:40 +00:00
xcai 5f333d55f4 Update the project metadata
Change-Id: I2e20647d74812f27b3165113d434d875464123bd
2020-12-22 21:27:46 +08:00
caihui fa5c866245 update py37 to py38
Change-Id: Ibe6b223cd17603977981a044eece3981fcbbbcdf
2020-12-21 22:45:17 -08:00
caihui 7970da0317 Update CI jobs for wallaby
Change-Id: I51c62b12af6e6609be3b18358c8541e297b208be
2020-11-09 19:59:24 -08:00
Ghanshyam Mann aee87c8e14 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.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Id693765fa9216f880d7105bbac3cd60f2db8500c
2020-09-08 17:31:58 +00:00
kundan2707 7d4c5ad01c Fix pylint testing for Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing the pylint for Ubuntu Focal.

Change-Id: I1ce17f378769d3b687b8c4ed07a2d8862d14f65b
Story: #2007865
Task: #402184
2020-09-07 11:38:13 +05:30
Caihui 3d327a66c5 Remove mock from lower-constraints
This packages is only needed  for python2.x.

Change-Id: I729d9c6482ab604d31f74ecdae0c33eaa16efb34
2020-06-24 03:46:14 -07:00
Caihui cff3d800ee Remove the __future__ modulue
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3. This version is not support  python 2 any more.

[1] https://docs.python.org/3/library/__future__.html

Change-Id: I94c61ba495283fc6e461bec156a7007ecbd6bb50
2020-06-19 22:52:55 -07:00
Caihui 9a214616ec Remove keystone v2 related code
Change-Id: I9de621ee973d62fe845e18907ee21f5e64ae401c
2020-06-19 20:45:25 -07:00
jacky06 179acb3469 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).

Change-Id: Ib2468762d81b0bd694c486169b05b8bbbd142cae
2020-05-11 23:58:23 +08:00
Andreas Jaeger 72de51b01c 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 with warnings enabled, fix
  warnings found with autodoc
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, switch to using apidoc
- Remove install_command from tox.ini, the default is fine
- Change some imports to use python3 changed names

Change-Id: Ibb2e614c7db8a01e41caed8314c1d46479c78295
2020-04-12 20:58:22 +02:00
caihui b9ef93c2f1 Remove six useage
We don't support python2 anymore so we don't need this compatibility
library.

This patch remove six useage.

Change-Id: I5802ee67960ff8c53bc33213cc5aa8baee0d0dce
2020-02-18 01:29:51 -08:00
caihui 8361e3fdd2 Add py36 in envlist
Change-Id: Ice16a1da334e7e6925239d0372f8f00ffb7c9ac7
2020-02-02 21:21:59 -08:00
Ghanshyam Mann d682c3a615 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

freezer-dr 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: I8c2e92f459c6a0fda26b44039837bd95db55873e
2019-11-22 01:53:02 +00:00
xuanyandong 1f3892bb08 Switch to Ussuri jobs
Change-Id: I8ee14a5b0e50aaad9333d0bea85a924a230839e4
2019-10-25 15:52:00 +08:00
Zuul 9bd3eab987 Merge "Update hacking" 2019-08-06 10:30:45 +00:00
Zuul 5ec756bb43 Merge "Sync Sphinx requirement" 2019-08-06 10:30:29 +00:00
Zuul 5b9a0d35ec Merge "Add Python 3 Train unit tests" 2019-08-06 08:07:32 +00:00
Andreas Jaeger e4396f16d3 Update hacking
Remove requirements for flake8, mccabe, pyflakes since hacking pins them
already - and the pins of hacking are different versions.

Update hacking to current release.

Change-Id: I64073e3e4cd07c45fd65bad9101693b795ec1afc
2019-08-03 11:55:12 +02:00
jacky06 a3ba38b2f8 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. Fix RST syntax in HACKING.rst
3. Update moved URLs in README.rst

Change-Id: I74bfead9b1962ad9c5e9eb2f7ab79022566085c9
2019-08-03 11:53:24 +02:00
Andreas Jaeger d6e4db4d0f Add bindep to fix py37 tests
The py37 job needs some extra packages to build some wheels, add those
via bindep file.

Change-Id: I0906666b179b1b2f66c489eb862cac068a413377
2019-08-03 11:38:14 +02:00
Corey Bryant 5649914504 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: Ia643f9d691215d06cdd81fd111460fb42d6b1e7f
Story: #2005924
Task: #34207
2019-06-24 09:25:17 -04:00
Cai Hui e13908ef62 Add the py37 testing job
Add the py37 testing job

Change-Id: I68df667650faec604d2ee2f84f401755da4572e9
2019-05-24 23:19:12 -04:00
Cai Hui e989a2ca51 Drop the py35 testing, add the py37 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: I0965666290c8e8f88d61d537ff58bbd1c63eeef6
2019-05-24 21:53:50 -04:00
OpenDev Sysadmins bfc94b0706 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:30:00 +00:00
Ghanshyam Mann 8f8142b03f 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: Ief9e9871f35721f697dec2b1efd284a7f9e135af
2019-04-14 21:17:19 +00:00
Cai Hui 1e687a4993 Add py36 for developers
1.Add Python 3.6 classifier to setup.cfg

2.We already run python3.6 unit tests in CI. Add the py36 environment to
the tox file so that developers with python3.6

Change-Id: I779236a8625a47064ba34e1b0cb865673a5d124f
2018-12-17 03:01:40 -05:00
LeopardMa 6af94a5610 Change openstack-dev to openstack-discuss
Change-Id: I00948eca00d75c1e2be9d75bd5861e2c3a9be51e
2018-12-03 22:26:51 -05:00
Zuul 86cf4f707a Merge "Set default notifier endpoint" 2018-11-19 09:22:28 +00:00
Cai Hui 044703a415 Update .gitignore
Update doc/source/_static/nova.conf.sample to doc/source/_static/*.sample
Delete doc/source/_static directory

Change-Id: I26e98037b19448f8cfe5dacad1ff0b6c9f7d962d
2018-11-12 06:20:22 -05:00
Cai Hui a925017f86 Update tox minversion to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets

Change-Id: I97487d0fbe6999047be5ae487ccebea2bcf76def
2018-11-09 22:43:53 -05:00
Cai Hui b008ef902d Update tox.ini and fix pep8 errors
1.Add [testenv:lower-constraints]
2.Add lower-constraints.txt
3.Check env:UPPER_CONSTRAINTS_FILE
4.Remove  passenv parameters which are not required
5.Fix pep8 errors

Change-Id: I8ec8aac38e80a6e2b8ce9e9dc70f0cf187c0ce7c
2018-11-07 06:14:17 -05:00
Cai Hui 0c4713108c Update pbr version
Update pdb version >=2.0.0

Change-Id: I5c9cb947f9460f2929f57ccb923528898303b31e
2018-11-07 01:37:20 -05:00
Chen eeb86e8b78 Define get_info method in evacuator backend drivers
This is needed because get_info is declared as a abstract method
in the base class [1].

[1] https://github.com/openstack/freezer-dr/blob/master/freezer_dr/evacuators/common/driver.py#L45

Change-Id: I0400da74d287b7903b0b0552deb98b10ea7e2b0d
Closes-Bug: #1798255
2018-10-17 14:57:32 +08:00
Chen f3e4fc01a2 Set default notifier endpoint
The notifier endpoint needs to be set otherwise the default default_email
notifier driver will complain about the empty smtp server url [1].

[1] https://github.com/openstack/freezer-dr/blob/master/freezer_dr/notifiers/drivers/default/default_email.py#L37-L38

Change-Id: I9ac4669ecc50ce93adf28084ab6280b66c4dc2f0
2018-10-15 20:28:09 +08:00
98k 7b809f6158 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I7a5fcd7ae9686cae1ab5f588b4c58ff3533b2e0f
2018-10-09 20:54:39 +00:00
Nguyen Hai 0db820b9cb Use openstackdocstheme
Change theme of docs by using openstackdocstheme

Change-Id: I26ea48e9862e1e8652aecd873b1298cdfa0bdafd
2018-08-31 06:32:16 +00:00
Nguyen Hai 52e4ab5779 add python 3.6 unit test job and switch documentation job to new PTI
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0ee0a4d4c263d05b0d8c3a4df292011eecdf55fd
Story: #2002586
Task: #24296
2018-08-30 10:26:49 +09:00
Zuul 329c210889 Merge "Fix notifier should only notify successfully evacuated nodes" 2018-08-28 13:55:00 +00:00
Zuul f25e23b479 Merge "import zuul job settings from project-config" 2018-08-27 10:53:55 +00:00
qingszhao 758c7ff37e import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I11675fbb30826eedde810652d8a5438e1a20f9c5
Story: #2002586
Task: #24296
2018-08-22 01:22:50 +00:00
Doug Hellmann 926454d1af fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: If667445fbc389e971a0d471c5a9dd4893a0b0995
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-21 06:24:08 +00:00
Zuul 35d7b76c89 Merge "update pylint" 2018-08-20 10:13:38 +00:00