The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ic78f1a2f958530fe7e480c7043c604d9f0e978c3
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
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
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>
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
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
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>
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
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>
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
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
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
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
Add 'find' to whitelist_externals in tox.ini to prevent
warning: 'WARNING:test command found but not installed in testenv'.
Change-Id: I8cfbbea21872b79234b6a0046e9428d80f1f9b19
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
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
This patch includes:
1. client base
2. v1 resource type list client
Patial blueprint: openstack-client-search-initial-plugin
Change-Id: Ife57592cdff80cf6fa440dd2daba9daceefd3a11