Commit Graph

172 Commits

Author SHA1 Message Date
Ghanshyam Mann 31410355d4 Retire the python-searchlightclient project
As announced in openstack-discuss ML[1], Searchlight project
is retiring in Wallaby cycle.

This commit retires python-searchlightclient repository as per
process deinfed in project-guide[2]. Anyone would like to maintain
it again, please revert back this commit and propose the re-adding it
to governance.

The community wishes to express our thanks and appreciation to all of
those who have contributed to the python-searchlightclient project
over the years.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/764519
Needed-By: https://review.opendev.org/c/openstack/governance/+/764530

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-November/018637.html
[2] https://docs.openstack.org/project-team-guide/repository.html#retiring-a-repository

Change-Id: If02fcc1c21abc9040a3b81cfa4973c7c6382ea15
2020-11-28 04:01:07 +00:00
OpenStack Release Bot 75bb786669 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: Ic7ac08fc4e54c815c0ccb3cc82b3bc999ea62a7f
2020-09-09 17:41:27 +00:00
Ghanshyam Mann 9b7c80cfc4 [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: #40217

Closes-Bug: #1886298

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

Change-Id: I596615a6f714d329fbba28007dfc103f58ceb0b1
2020-08-05 01:41:57 +00:00
Zuul c2483670fd Merge "Fix hacking min version to 3.0.1" 2020-06-19 11:19:42 +00:00
Hervé Beraud 9282fc3ca7 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: If9ca34680b1f8879298697d8fa14f3ba9905e0b6
2020-06-02 20:51:32 +02:00
Andreas Jaeger 983cae71c6 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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.

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.

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.

Depends-On: https://review.opendev.org/728938
Change-Id: I6b95add07b469274ba1bf0070ba8c18b1795be41
2020-05-18 22:45:21 +02:00
melissaml bc04322a38 Remove translation sections from setup.cfg
These translation sections are not needed anymore, Babel can
generate translation files without them.

Change-Id: Ic68e392e3d4030b2d99e3731bb6b2c86dcf7b9b4
2020-05-14 20:16:09 +08:00
Ghanshyam Mann 4423a9601f 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: I02fc471d7a6cc08c173ed45ae6f647cd54121690
2020-05-12 21:06:00 -05:00
jacky06 f4e364bbef 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: Ib9c7fe10311bfc0171878ff824dab0ccf1a42d6f
2020-05-12 00:14:09 +08:00
jacky06 66d78f1e77 Remove pypy job
Pypy is not tested in OpenStack anymore, remove the job.

Change-Id: Ia9e1fead782e8d5deef35e9d52c730e1aa083ac3
2020-05-10 22:14:44 +08:00
Zuul 38390405f2 Merge "Remove six" 2020-05-05 17:12:10 +00:00
jacky06 027bd115ca Remove six
We don't need this in a Python 3-only world.

Change-Id: I6c0b25dc1c3aa60286e884c54f57d1c2e8fc32e2
2020-05-04 15:23:58 +08:00
Sean McGinnis 03f6958f9b
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: I1bc001ce868cf12add34d83be3720e756c392d32
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:18 -05:00
OpenStack Release Bot 0fe6205a1a 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: I472b6a946f85702f83fecba0a25151a781f4dd7d
2020-04-11 18:49:21 +00:00
jacky06 0f797327e4 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I14b6d65b5a6560456b9110de667f94f5d6c9bd20
2020-04-06 13:32:08 +08:00
Andreas Jaeger 92897b3b7c 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

Change-Id: Id417aaae518b18d220998ed6520fd729fec0a501
2020-04-04 17:13:18 +02:00
Andreas Jaeger 125ada1c8a Update pep8 ignore plugins
Add comments about ignored plugins, remove those disabled plugins that
are not hit anymore.

Change-Id: I521386e5386562f90a72fc23a0863cb8790ea646
2020-03-31 15:26:41 +02:00
Andreas Jaeger e36c940ba7 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: Ic78f1a2f958530fe7e480c7043c604d9f0e978c3
2020-03-31 13:36:55 +02:00
Ghanshyam Mann d307e8e6ed [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

python-searchlightsclient 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: I37810f2e78523388a70cad0034f8d4d9e73e218b
2020-01-22 02:36:31 +00:00
caoyuan 2493fa2de0 tox: Trivial cleanup
move 'basepython' to the top-level 'testenv'

Change-Id: Idcd6e5b06e7a7da0e2241ff11cc572d138d29647
2019-12-23 00:15:37 +08:00
sonpn13 9dc3e75201 Add PDF generation support for Python-SearchlightClient
Add PDF generation, fix wrong tag on index.rst

Change-Id: I1d0ba224ba1f0a0bd2157ccd45333f9a92871169
Signed-off-by: sonpn13 <sonpn13@viettel.com.vn>
Story: #2006118
Task: #35498
2019-10-31 18:26:16 +07:00
Zuul c29a7e20a1 Merge "tox: Keeping going with docs" 2019-10-24 13:25:16 +00:00
caoyuan 1b59e1dbb0 tox: Keeping going with docs
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.

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

Change-Id: I041acd7c63cf56ec9e90177a82ac0b37e15d4b12
2019-10-24 20:09:55 +08:00
kangyufei 1700ee254e Switch to Ussuri jobs
Change-Id: Ic05863767d361a31ec45272e9e5b40df2322efa6
2019-10-22 14:30:08 +08:00
Trinh Nguyen 3111ed22a9 Remove _LE variable
log translation has been removed [1]. This patch fixes
python-searchlightclient by removing remaining _LE variable from
i18n.

[1] 4f237553e9

Change-Id: I923adc33992baa0c6f0e41fd1d6ae0d951ecde7f
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
Story: #2006440
Task: #36355
2019-09-26 23:06:07 +09:00
Corey Bryant de228e7b38 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: Id4c91cd65f3551ebced59b9f238520fa6a73e2e7
Story: #2005924
Task: #34245
2019-07-05 16:05:38 -04:00
jacky06 0f331ceb7c 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. Update the UPPER_CONSTRAINTS_FILE for tox[1]

[1]: http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ief1980f0ff6c13ff0370b22267f2ef9baaa1ab64
2019-06-20 00:53:11 +08:00
Trinh Nguyen e2230a4759 Migrate to opendev.org
Change-Id: Iace98dcb3f15d2cd7aa2dcda2a76b3c77f81e6f7
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-04-20 17:12:55 +09:00
OpenDev Sysadmins 6757990224 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:34:24 +00:00
Trinh Nguyen 8483966002 Update setup.cfg
Change-Id: I1bbb072e3683584c11e3fd1bf110e5da8bd9ed48
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-18 21:40:55 +09:00
Trinh Nguyen 0a92b53dee Drop py35 tox test
Change-Id: If42b376928891b8380aea73f8b9e2af2256560ce
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-18 16:00:53 +09:00
Trinh Nguyen 323eb9fd4f Drop py35 tests
Target python runtime for Stein is py36 [1]. So, I will drop py35
tests.

[1] https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein

Change-Id: I3b6db2463864635246ccb4a551898861b890a818
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-18 15:13:41 +09:00
Trinh Nguyen d508dafe1c Update storyboard links
Change-Id: Iab4fe00f6ac19245be00825cf228ae4f96398186
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-18 12:22:55 +09:00
Trinh Nguyen 76b64f3e3f Add py37 tox tests
Change-Id: Iebf49655274f9869cd53d1f70ef4be474aaaa866
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-04 21:00:33 +09:00
zhulingjie 5793232f25 Update json module to jsonutils
1. json is deprecated, should use oslo_serialization.jsonutils
instead.
2. cleanup of .keys() from dict_object.keys() *in* operator

Change-Id: I09076a781a6fb12697d38b365ffda664be053187
2019-02-20 00:53:20 +00:00
ZhongShengping 1be720f91d add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I41f57a50a58fb5045ba802f6360a4f04546e2928
Story: #2004073
Task: #27451
2019-02-19 17:05:44 +08:00
ZhijunWei 597eb9b1e4 Update hacking version
Change-Id: I718b74753f2c6ffeaac8751c884cee4e977a2780
2018-12-29 09:54:02 +08:00
98k 59fa10ffef Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Iecc525404ded0e61a689ffc04cd172bb1da68477
2018-12-04 07:16:42 +00:00
Nguyen Hai Truong de7d1f3458 Add cover job
Insert python coverage job for py-test.

Change-Id: I098f16254d22f28d2fbbfe01899a601431cc1323
2018-11-07 13:53:50 +00:00
Trinh Nguyen 523e86ee5c Fix tox coverage test
tox coverage test failed by wrong project name

    PYTHON=coverage run --source $project --parallel-mode

should be:

    PYTHON=coverage run --source searchlightclient --parallel-mode

Change-Id: Iaee6653dd6d82c3187112f7a4cc03f149123a820
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2018-11-07 19:47:03 +09:00
Nguyen Hai Truong e44ef24144 Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

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

Change-Id: I82ebe70f3108d4db07b4c8e929fe551541150f90
2018-11-06 23:36:20 +07:00
Vieri 4f24458afc 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: I9b57a4b2cbd484e784736caa06a932580b573644
2018-10-09 14:03:26 +00:00
Trinh Nguyen 62725614cc Use openstack-lower-constraints-jobs
Change-Id: I87875962b7d4004d624db2a4774dc4b4bf0013a2
2018-09-10 22:03:56 +09:00
Andreas Jaeger 5dd3a32249 Revert "Update zuul config"
This reverts commit dda8f0db37.

For details, see https://docs.openstack.org/infra/manual/creators.html#central-config-exceptions

Change-Id: Iabf749ef6be80113dc1057cd3ec3324d28da19ae
2018-09-10 12:38:00 +00:00
Trinh Nguyen dda8f0db37 Update zuul config
Change-Id: I387fdb7eb9b2c90b04b926ddfefe7b99b10eda69
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2018-09-10 17:00:30 +09:00
Zuul abf46076fc Merge "Change launchpad to storyboard links" 2018-09-01 07:13:36 +00:00
OpenStack Proposal Bot ef19b71b8e Updated from global requirements
Change-Id: I4af49b0c0d2f6e486bcdbaffdcbfb61d3dca1c17
2018-09-01 14:52:22 +09:00
Nguyen Hai 7c08a38e0c Change launchpad to storyboard links
Change-Id: I91dd7fba45511400dfe8eb9580a3967ae4a0a480
2018-09-01 12:24:14 +09:00
Doug Hellmann 4ae0762538 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: Ie87b5f50bab2e930e571f0177f6dc259ca0f4596
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018-08-27 14:03:56 +00:00
Zuul b5dfa9a026 Merge "Remove log translations" 2018-08-23 07:42:02 +00:00