This patch removes hard-coded Python path in karma.conf.js
to fix the npm jobs because now these npm jobs run on
debian-bullseye and py38 are not available there.
It also update tox.ini for tox4 to fix the CI for the following:
- Drop "skipsdist = True".
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. So dropping it
would avoid potential future failures.
- Use comma to have multiple values in a single line for passenv
variable in ``tox.ini`` file.
Change-Id: Ifc828c7142ca3c3f7105532b80fa5e0e91d80d69
Change-Id: I88f0be008537f34dd321f3afe8531ee0c237f681
The patch 7f29364734 removes the lower-constraints job from
the gate but related file like lower-constarints.txt are not
removed. This patch removes the lower-constraints.txt file and
its reference from tox.ini.
Also TC passed a resolution about dropping the lower-constraints.txt
file and its testing. We will keep lower bounds in the requirements.txt
file but with a note that these are not tested lower bounds and we
try our best to keep them updated. For more info please refer [1], [2].
[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal
Change-Id: Ica7454c88d17874ed29c5d29d399ba5684f7f9d1
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
- remove unused sections from tox.ini
Change-Id: Ia14273b824c3ee16ac2c8517ea73c3fa8d24484b
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.
This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.
Change-Id: I464c93a8b919b9bddcf24a95a6b6471098cd4961
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Change-Id: I7073a478d38fb46619e7a300808e9449403e704d
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: I59e016fd771282798bd095c562e2fa11a8e4ea43
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: I4d312087fdf00d297f5bf1fdef0bd234f8543651
nose is not actively maintained now and Django default test runner
seems to have enough features.
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
The change was made in horizon Rocky-3,
so horizon 14.0.0.0b3 is required at least.
And murano-dashboard using unittest instead of testtools.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Change-Id: I419e0e166ea88c3ab1203f35ffa00928cf94acb1
Depends-On: https://review.openstack.org/599156/
Previously install_command specifies upper-constraints
so lower-constraints actually did not work.
upper-constraints must be specified via 'deps' instead of 'install_command'.
The fix reveals that django-formtools 1.0 is not compatible with
Django 1.11 or later. django-formtools 2.0 seems the minimum requirement.
Castellan 0.16.0 is not compatible with murano-dashboard because there is
barbican_endpoint_type. The minimum required version is 0.18.0.
This commit also drops Django dependency in requirements.txt.
After commit 7e91070789187d9e6b5ac2b57ca755504e058e32 in
openstack/requirements repo, all project requirements.txt must
have lower bounds and Django entry hits this.
Horizon declares django dependencies, so there is no need to
declare django dependencies in murano-dashboard explicitly.
Change-Id: I3048ca5570523494f5a58a15449902f8cb3eb3a4
Since the horizon remove the 'run_tests.sh' file,
so there should remove '.venv' from the '.tox.ini' file.
Change-Id: I260671aa362c79ca33e4d58c65014342779c934d
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: I0a40f91edc9a7789842384f6f4ced0f229c183ef
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: I5fd37cfcf5e96c97f92f89687cced58bf2ef4fed
Replace django.core.urlresolves with django.urls
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
Add py35dj20 job to test Django 2.0 integration.
And update the lower-constraints.
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Co-Authored-By: Ellen Batbouta <ellen.batbouta@oracle.com>
Change-Id: I3456162c934eb48ccf180d80b5cf7ff5614221c0
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: I90e43331d22a2f2eb324e3b742153cd0327fcee3
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Now that Heat is separate from Horizon, the Murano
dashboard file, tabs.py, must change its import of
the file, heat.py, from openstack_dashboard to
heat_dashboard.
Change-Id: I92ec24a70814da21b1332d6ba069b2f141bccb87
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: I0dd92c97dea991f8b2d2527280b1bb26d8735a1c
This commit updates the N-1 job to work on a ocata constraints instead
of mitaka ones. The job is used to verify, that murano can be used on
previous cycle requirements
Change-Id: I12eb9c429c6b2062e24275c0ae86334db4094bfc
Current hacking check actually does not check attribute-level
imports. We can safely drop import_exceptions from tox.ini.
Change-Id: I65e36b9661fbcb39bd37d1024a7e0973c3edc416
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: Id934a824bf5a85d8c0b8208e48101a5f97dfb280
Closes-Bug: #1614361
This commit will add script that will allow to run non voting coverage job
which will detect any changes in the code coverage for each commit on review.
Change-Id: I0afdeefb55bfa28c8970048b112795b351abb48b
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: If36557b74eb7760d5a031d96ee3b9e47748f7b30
Adding a mitaka tox target, that will allow testing current
code against mitaka upper constraints.
Change-Id: Ia84ffefb820b376274714ae93caca148ff315c4b
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
The releasenotes job has no constraints file, so override the install
command there.
Change-Id: I5eae854d12c6048d1458ea0d2b1e47c4ff910544
Partial-bug: #1598906
Replaces types with builtin functions
Replaces force_unicode with force_text
Adds six usage of .iteritems and .string_types where relevant
Updates setup.cfg entries
Targets blueprint: murano-python-3-support
Change-Id: I369f79c4258367974eb676cecb6eb1c941803503
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
This patch fixes this problem.
Change-Id: Ibde388f69e0e6bdc19900e770989d63f0d5f21dd
Closes-bug: #1524824