only reno command was possible to add a
release notes. modify tox config to allow
newnote command too.
Change-Id: Iae8ec60ed91708f428ef24d5fec07e95d68986ac
This issue [1] is showing up on the functional jobs in the gate,
which are using the system tox. So tell tox to upgrade itself
to the version that gets around that issue.
[1] https://github.com/tox-dev/pyproject-api/issues/101
Change-Id: Ib2a3ddb4bc8175f2769d1cd3510f00485349192a
"usedevelop" is specified and set to true
in the default testenv and doesn't need to be
specified in the specific environments.
Change-Id: I8adee2feec3ac46f22c04cae86ed0559785ee414
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: Ice2f40eb8856bb5869b621725e5918560d843e06
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: If79ec726cddc9dd016551223c29a824a109f8b8c
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix found problems.
Change-Id: I78ee32da2b158abda1ca4438c23c5245dd8849b2
Add a new tox target to build PDF documentation in accord
with the community goal [0] to have PDF docs available.
Also, only show genindex and search for HTML. These elements
do not make sense within PDF documents.
[0] https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html
Change-Id: Ibbd50276c3879958b0ceb82afcc882716c01b384
Install manila command in the tox virtual environment
for docs so sphinx can run ``manila`` to generate its
help output.
Closes-bug: #1821389
Change-Id: I0bb221006842f3b40609753133c4203bc38fdffa
- The BaseException class no longer has a "message"
attribute in python 3 [1]. On the contrary, the
string representation of an Exception object will
print all the exception args in all supported
python versions, so use that instead.
- Functional tests were run with a specific locale,
remove those annotations so we can handle unicode
encoding and decoding in python3 envs.
- Cleanup errors were not being handled correctly,
cleanup the code so we don't have spurious failures.
- In python3, dict.keys() gives you a view for lazy
loading, so convert occurrences to lists as expected
in our functional tests.
- Start capturing STDOUT and STDERR in tox envs to
enable troubleshooting.
Co-Authored-By: Goutham Pacha Ravi <gouthampravi@gmail.com>
Closes-Bug: #1811627
Closes-Bug: #1811516
Change-Id: Idaa2fb9b60451b3fbd298e19574195f2d663c6f4
[1] https://www.python.org/dev/peps/pep-0352/#transition-plan
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This is covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I19830446d21b989542b54511bc05f885b7a8ff60
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: I6a18fa58d85f0d75befedba4bac5cc3c116da73c
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: Ic98a865e5d8f2e5467dff62a648046818dc502e3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: I81fd5d0161c6ed1b789cd62c3a882fe375c9a2a2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
os-testr has moved over to use stestr instead of testr. While this
is usually compatible with existing settings, there is a warning
that is emitted when .stestr.conf is not present. It is usually
able to fall back to parsing the .testr.conf file, but to be more
correct and to prevent future problems we should update the config.
Change-Id: I10446c539aaf9edd8b52b17776e08c12757def31
Depends-On: I98a296d009e64d6afab02a53bd1af878f78c4321
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: I7f8ad61b0e1c691ae8d804b3d661a69c68b954fa
Depends-On: https://review.openstack.org/555034
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: Ib9e007b9eeae5f2079dd682df0c7ef2294961f4f
1 "build" is a generated doc file directory we need to exclude.
2 to ensure the old files are not left over when running these
document builds.
Change-Id: Ieb8fb314375b5a8ac3f38b1944d514937274c8c6
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Enable this.
Change-Id: I8ea73cff6dc539c9f9db2f550ad8088812467d1b
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: I37e05189a65f5d86a3149065e6d405a23a4c66b8
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-manilaclient.
Change-Id: I2d5bb052c7e499175ef3d32fdc35c9e67dc260ac
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: Id94178b3fbf06e3ce2fc0a896beecaa2f368f75a
We can use ostestr since developers are more familiar
with using ostestr and are used to seeing the
test outputs with this tool around OpenStack
projects (including openstack/manila).
This wrapper gives us a lot of other advantages [1].
TrivialFix
[1] http://docs.openstack.org/developer/os-testr/ostestr.html
Change-Id: Ibc938827ab281caa905def6e2d74dafda90b9394
The Oslo team has moved all previously incubated code from the
openstack/oslo-incubator repository into separate library repositories
and released those libraries to the Python Package Index. Many of our
big tent project teams are still using the old, unsupported, incubated
versions of the code. The Oslo team has been working to remove that
incubated code from projects, and the time has come to finish that work.
As one of community-wide goals in Ocata, please see:
https://github.com/openstack/governance/blob/master/goals/ocata/remove-incubated-oslo-code.rst
Note: This commit also fix pep8 violations.
Change-Id: I03288adb94c702d1d63df88ef9ba33a2ff59eaa3
Create the releasenotes directory and add the requisite
conf.py file to generate python-manilaclient's release notes.
project-config change: I522ba76263a6597026f6dd7b03ec51bb05bfb15a
Change-Id: I6b0fa6016781a252a71649a7cac85f02b0a019e8
Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.
Change-Id: Ia52506cfe130b5abd867519337bcaedd589a98d4
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3
And already the infra team and the oslo team are dropping py33
support from their projects.
Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.
Change-Id: I34bbced8f72cad0146a0f2bc964b1e093fbf7255
Closes-Bug: #1526170
Support of py26 is dropped by manilaclient dependencies.
So, remove such job for manilaclient too.
Change-Id: I63d58d0054765b4ed965fc4795a61feca0cbf406
Closes-Bug: #1521941