Only reno command was possible to add a
release notes. modify tox config to allow
newnote command too.
Change-Id: I12ac14f664f59dbab11ded5f420de4ea290f21f6
The tox target needs the coverage script to be
allowed as an external script.
Change-Id: Ifbb780326aac6db7a0b80812caec970164460355
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
tox4 checks allowlist_externals more strictly and
all externals need to be specified explicitly.
skipsdist=True is also droppped. When skipsdist=True is specified,
a target application is not installed into a tox env, but there
seems no reason to do so. In various other OpenStack projects,
a target applicatin needs to be installed into a tox vnev, for
example, in docs and/or linter jobs and it causes failures with tox4.
I believe dropping it would avoid potential future failures.
Change-Id: I56d2a654f2be87e98026dfa237d5c81d5fcefa37
Updates testenv to py38, as I think most developers
have python 3.8 installed on their environment.
And RIZON_INTEGRATION_TESTS_CONFIG_FILE variable is
also removed. According to codesearch it is not used
anywhere.
Change-Id: Id04ee718e9b1026f00c6d5db9d4db3914e23ba5f
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I1b2e7e8a6955a3da01e91a29bcbfce69464fbc7b
We specify "basepython = python3" in [testenv] in tox.ini.
Without ignore_basepython_conflict = true, an interpreter named 'python3'
is looked for even for tox envs like py36, py37, py38.
As a result, for example, py38 job will be run against python 3.6
on ubuntu-bionic where python3 is an alias for python3.6.
This issue can be addressed by "ignore_basepython_conflict = true".
Change-Id: If8c90c66adbd6ff34ad6aedd373455a34ec73930
Switch to openstackdocstheme 2.2.1 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.
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.
Disable openstackdocs_auto_name to use 'project' variable as name.
Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.
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.
See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html
Change-Id: Ic888f31814431683d8cd71e1ab25c0dc63bcc8ef
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
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update lower-constraints for osprofiler as required by
other dependencies.
Change-Id: I84ec7cae5b051bb9c69969d8ccaa28b053914840
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not
installed in a running system.
Change-Id: Ia62b221aa0807300eaee7b075607ac6b56256b76
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.
tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.
horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin
Change-Id: Ide8df87a29eb94eb17ea9d132a1162f2915948ee
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]
[1] https://review.opendev.org/#/c/681969/
Change-Id: I8df240f0f297c0387bef304e285ce8dd9f34c85d
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: Ia75423d1efbec65730130eedf169c458b92b0c9f
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train. The correct zuul jobs are
already in place so this change just limits default 'tox' calls to py37
to save developers time.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Change-Id: I12f0713448677e5bedcbcbef36b73ee21f085331
Story: #2005924
Task: #34220
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: Ieffad700c68c51c084c44af2eda497233f29ceff
This patch adds basic tests to verify that manila-ui is
installed and could be opened.
manila-ui-integration-tests job is added in a
non-voting mode.
Depends-On: https://review.openstack.org/634712
Change-Id: I67e876a5cb26637b62225fc854a906dc1a714e76
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: I99ebe4dc0f09994b5a85e0258ad70de4cb76bc32
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
For the developers needs it's useful to be able run tests with the
latest Horizon version from the master branch.
This patch introduces new tox environment py3-dev to run tests with the
Horizon master branch.
By default, Horizon will be installed from the master branch of it's git
repository. You can override this behaviour by setting HORIZON_REPO
environment variable to test the plugin with your local copy.
Change-Id: Iea6e53eb38ac82817ad893770316db49c141644a
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: Idac327ef35d8317c6e9ae838f2d88c4b5b926606
Django 2.0 is now used in tox py35 job, so there is no need for
py35dj20 job. Instead, Django 1.11 with python3 is not covered.
- py35dj20 job is dropped from tox.ini.
- python3-django111 is added to tox.ini.
python3 is specified to basepython to avoid a specific python version.
- .zuul.yaml is updated to consume horizon-openstack-tox-python3-django111
and drop horizon-openstack-tox-py35dj20.
Change-Id: I50713dab7f944cbb9cbead3f00c95be7bb9c623e
In order to make manila-ui python3 compatible,
this patch set:
- replace dict.iteritems() with six.iteritems(dict)
- replace print msg with print(msg)
- replace dict.viewkeys() with error.keys()
- python 3 getting the keys() of a dict returns
a dict_keys object instead of a list and hence
sort() fails
- in python 2.x calling keys makes a copy of the key
that you can iterate over while modifying the dict.
This doesn't work in python 3.x because keys
returns an iterator instead of a list.
Another way is to use list to force a copy of the keys
to be made.
- use getattr instead of relying on overriden __getattr__
in the client to get params that not neccesarily need to
be available (share_group_id and supports_share_migration)
- refactor ShareGroupTypeTests
Plus, enable py35 and py35dj20 jobs in tox and drop
old oslo-incubator files (install_venv.py)
Also add openstack-tox-py35 job to check python3 env.
openstack-tox-py35 should be defined in project-config later
but it is added to check python3 UT status.
Change-Id: I30582184904dc19e9cb4ca171b1fd2d161e09c48
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.
Note that manila-ui does not support python3 yet so lower-constraints
env uses python2 unlike other projects.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: Ia808cae058ab5d7bd5435ad57543eb8b9bcc96db
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Akihiro Motoki <amotoki@gmail.com>
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
Change-Id: I884837a9fee9572dda2240efdf27d6f4c607f139
Django 1.7 is not supported for a few releases and
can be easily removed from test env. Also, Django 1.10
unit tests are included to envlist to help make them
voting tests.
Change-Id: I6407180888fabd223e0393ef9e24de5a3558c25b
The true path should be "manila_ui.tests.settings" while
"manila_ui.test.settings" is given.
Change-Id: I2510174b6790aa6defaed5b8bf804875eb888ebc
Closes-Bug: #1668990
Openstack infra now supports upper constraints for all jobs.
This patch adds upper constaints for test environment setup.
Change-Id: I86312653e2b044e7180a9201addd48b29aa61bba
Closes-Bug: #1596246
Django 1.10 is released and the corresponding tox env can be
updated to strictly look for the version.
Change-Id: I642c16a35eb8cc470c9374e987368c461280dcde
The directory openstack/common was used to keep codes
from oslo-incubator, we have retired oslo-incubator,
so don't use this directory any more.
Change-Id: I177e0cd7e446c7bd1cd5a60d7f4a07cedd9a1072
This patch set makes manila-ui code work with Django 1.9:
- replaces deprecated django.utils.unittest with unittest
- removes {% load url from future %} lines
- replaces old-style urlpatterns with new ones
Also, since Django < 1.7 is not supported any more by upstream,
this patch removes Django 1.4 from tests and replaces it with
Django 1.9 (while it's not in upstream yet) and Django 1.10.
Change-Id: I28f72ba799aeb2f583db00515dceef41c68170af
Closes-Bug: #1598169
Create the releasenotes directory and add the requisite
conf.py file to generate manila-ui's release notes.
project-config change: Ibb5e84e621ee0dadd8f6748252536a6447202611
Change-Id: I7a129c47bc3eba904754f4ec8e8140d42b29a0d1
Add ported from Manila project 'cover.sh' script that
allows to calculate coverage diff between last and previous commits.
Usage of new approach (with diff):
$ tox -e cover
To run old coverage approach use following:
./run_tests.sh --coverage --no-pep8
Change-Id: I8f6de6ba5cba2050771c4bead31baaf975e097b9