tox.ini started failing with Tox4 which had some
incompatible changes. One is passenv where we need
to pass each value in newline otherwise, it fails with
error:
failed with pass_env values cannot contain whitespace,
use comma to have multiple values in a single line,
invalid values found.....
Other failure is due to the skipsdist = True.
Fixing tox.ini for tox4 changes.
Change-Id: Ia9d62d92632aca90a526046971222dc29973fa60
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Iaa0521197dbb8e967fedd9f97be0c45d7e4b8746
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .
Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: Idda9c9d6acfe545b3a663543ab5d7056d70bf3d9
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints and requirements.
These changes will help us to drop `mock` from openstack/requirements
Change-Id: If4c8be03f0f6d7fcc73a2674a368268f8b0fab2e
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems
Update Sphinx version as well.
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.
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: I367834f29b7b6659ffb196a63c66ddd9edd0f4d9
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: Iccb4ba8a1437abfe8183a8cc2d49a3b3694e9ed5
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ie01c76833242fe36f12b199ea3353404c69c8698
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: Id9a321d5caadc76c13f880c53a6a3fdcad5a16a6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.
Change-Id: I5013a770c734e7f47ad24d8cfe3d9cb16ef1743d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use build-sphinx as modern way to build docs
- Remove unused docs requirements
Note the repo has no docs job and no real documentation, still let's fix
to help with docs going forward.
Change-Id: I9063c3764dad3304a6f9cea8322449f0a0331d8c
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:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I715bdcd7a4c3368d5a3a5d2a9da337a0d5bf6898
Horizon requires pyScss>=1.3.7 [1] but lower-constraints.txt
in solum-dashboard uses pyScss 1.3.4 which can cause the
failure in future. So this patch update pyScss version in
lower-constraints.txt to sync the change.
[1] https://review.opendev.org/#/c/715241/
Change-Id: I34a2e55d74c1ac8e8fbd3389ac0b43428be36d4e
Update the minversion parameter to use the python -m pip to install
python packages:
https://tox.readthedocs.io/en/latest/changelog.html#id185
It's recommend to use this. Remove the useless install_command
parameter.
Change-Id: Ie9d218f35c10034c61061524932dd5870e5d23b9
The solumclient.common.yamlutils is deprecated:
https://review.opendev.org/#/c/708075/
Use pyyaml instead it's safe by default now.
Change-Id: I41d5273c627ee2d0f3363afdeee466ad9b451585
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.
Change-Id: I24d1d8fa8569628edd17f02c5d4d317b0b440a52
We have switched the babel extractor for Django from django-babel
to enmerkar recently. solum-dashboard requirements.txt needs to
sync the change. enmerkar, a successor of django-babel will be
installed via horizon, so we don't need to have it in requirements.txt
explicitly.
lower-constrants.txt is updated to use enmerkar accordingly.
Change-Id: Idfc3c4e39f616723e744cf13037d72bebc1026db
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: I2bdc65bacae6b89b520ca9b473e1d7bf2cafedee
babel extractors are now registered via python entry points,
so there is no need to declare babel extractors in babel configs.
This change is important to make translation work in Django 2.2.
django-babel does not work with Django 2.2 and looks unmaintained
for over two years. The horizon team is thinking to switch the extractor
to enmerkar (a fork of django-babel) to make extraction of translation
string work again near future. It is important to drop the extractor
definition to make the transition smooth.
Change-Id: I3317fff56f55752d1df13f266877755cada1ebe1
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: Ie7c11ab1ad810dc5a766a55fbc2640df428258c2
When the lower-constraints tox target was added, it was assumed the
install_command was just running the install and that the dependencies
and constraints were being set using "deps = ".
This fixed the install_command and deps to follow the expected pattern
so the lower-constraints job actual does install the lower constraints.
Change-Id: Ibb93f81ed23833f64730ca851a88114d4f0e0e63
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>