Commit Graph

31 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
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
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
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
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
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 76b64f3e3f Add py37 tox tests
Change-Id: Iebf49655274f9869cd53d1f70ef4be474aaaa866
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-03-04 21:00:33 +09: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
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
Vu Cong Tuan 3ba6be7f6c Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I5e57994077795bcc25861a081ef114fa97e01bef
2018-07-09 18:10:37 +07:00
Doug Hellmann c371d7a362 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: I5b41967df565f37987f69a92a29703a618c4c012
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 17:58:19 -04:00
Nguyen Hai 387ac35e57 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Remove [build_sphinx] section as described in:
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

This patch also changes minor things in doc.

Change-Id: Ib1c525d6a2f7e5477539155bfc3050b1905aad3e
2018-03-26 21:53:10 +09:00
Andreas Jaeger 959204ce38 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Iffcd4035b0d0a7765db9c6dfba1c9dff68076082
2017-12-02 16:58:32 +00:00
kavithahr 2d98cee98a Python 3.4 support is removed
In setup.cfg and tox.ini the python 3.4 is removed
beacuse python 3.5 is available.

Change-Id: Ic35ba9c960d9dee618c52ccb310bee9934ac424f
2017-03-08 17:37:35 +05:30
Tony Breeds 69e4c73ce4 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove python-searchlightclient.

Change-Id: If6860db51e16a9424e8a15e1b92b2cb0b6f8bc21
2016-12-21 13:23:19 +11:00
Jenkins 136ffdeaf6 Merge "Add Python 3.5 classifier and venv" 2016-12-07 01:43:13 +00:00
Steve Martinelli 63c1eaaacc no longer use oslo-incubator code
As part of the first community-wide goal [1], teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

- Most of the apiclient package was not actually used in code,
  only the exceptions and base were. So remove most of it.
- Copy the exceptions and base from apiclient to the common package
  in the top level location.
- Copy only the functions used from cliutils (env()) to the
  searchlightclient/common/utils.py module. Delete cliutils.
- Create an i18n module for translation, this creates a new
  requirement - oslo.i18n.
- General cleanup to other openstack/common references

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html

Change-Id: I08286c8c3ebfb1f76430b86a224ce101da5594f9
2016-11-11 11:53:26 -05:00
Tony Xu 3289aa7a42 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: I20f02e94aaa7f19d3dc66a1c45286d8082082c63
2016-10-26 10:32:40 +08:00
liyingjun 51a4c7e2ab Fix warning 'test command found but not installed in testenv'
Add 'find' to whitelist_externals in tox.ini to prevent
warning: 'WARNING:test command found but not installed in testenv'.

Change-Id: I8cfbbea21872b79234b6a0046e9428d80f1f9b19
2016-02-23 11:39:44 -06:00
Adam 1554087de8 Delete python bytecode before every test run
Because python creates pyc|pyo files and __pycache__
directories during tox runs, certain changes in the tree,
like deletes of files, or switching branches, can create
spurious errors.

The target bytecodes for deletion are in normal directories,
but not in dot started directory.

Change-Id: Id64c86439bf265b216f7536c51fc22cea7b316da
2016-01-10 16:21:58 +08:00
shu-mutou ee4a44d3a2 Remove py26 support
As of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. Since we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I8c47f71a75133142630acd9bc3fda2955827fe76
Closes-Bug: #1519510
2015-12-15 18:27:05 +09:00
Ondřej Nový 855619f579 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I1efe914e9665d437afc7fdaf689c64674ea30be1
2015-12-11 23:31:16 +01:00
liyingjun cb790b63af Init searchlightclient base
This patch includes:
1. client base
2. v1 resource type list client

Patial blueprint: openstack-client-search-initial-plugin

Change-Id: Ife57592cdff80cf6fa440dd2daba9daceefd3a11
2015-11-28 16:40:16 +08:00