Commit Graph

19 Commits

Author SHA1 Message Date
Ghanshyam Mann 921a53adf1 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
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.

[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: I76fd7b48f3377fb20b86e1bc6fe7b0b49cf8f2f9
2022-04-30 19:12:14 -05:00
Ghanshyam Mann 1c87ebf9a8 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

CONF object needs to be initialized before policy enforcer(). That
need to remove cfg.CONF.unregister_opts from TestAuthUtils cleanup
as this is taken care by cfg.clear() with proper workflow otherwise
it end up with error
"oslo_config.cfg.ArgsAlreadyParsedError: arguments
already parsed: reset before unregistering options"

- https://b132754ee7062a9ab187-9add4719a9922a9385555a8552fc2366.ssl.cf5.rackcdn.com/768520/5/check/openstack-tox-py38/7964354/testr_results.html

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I1b6c6485bc651fd0b87244a68204036dd4aa37f4
2021-03-07 17:50:48 -06:00
Erik Olof Gunnar Andersson 7dd31ad63b Fix lower-constraints
The lower-constraints job is currently broken since the new
release of pip. This patch resolves all of the issues uncovered
by the new version of pip.

We also add new constraints to fix slow installations
due to pip trying to resolve the ideal candidates.

Change-Id: Id2364b046080c50e122f89d0a7b2d914b1bedbfd
2021-01-19 00:00:39 -08:00
Sharma-Ritika 91a58c5763 Murano testing to Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Bump lower constraints to make testing work for Focal.

Change-Id: I1fc6b0c67d767bc698e12f0e79fadd19bb7d0a8d
Story: #2007865
Task: #402198
2020-09-19 01:46:40 +00:00
zhurong fc12a87932 Fix requirements-check job
Change-Id: I169a7e5fc5d5562aac4f8c02f5ceb1843122696e
2020-08-05 09:22:03 +00:00
Hervé Beraud 572ac87be8 Cap jsonschema 3.2.0 as the minimal version
Previous versions of jsonschema (<3.2.0) doesn't support python 3.8 [1].
Python 3.8 is part of the victoria supported runtimes [2] so we now force
to use jsonschema version 3.2.0 to avoid issues, remove ambiguity and ensure
that everything works with python 3 in general.

[1] https://github.com/Julian/jsonschema/pull/627
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Id51aa2e9e0e47cdecfdc4f3b967bee85cc8ef61c
2020-05-26 21:53:15 +02:00
Andreas Jaeger 3698744ba0 Switch to newer openstackdocstheme and reno versions
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.

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: I481525b51df5937a9fec6c0a7528dd6ea5b6c31b
2020-05-21 12:47:37 +02:00
zhurong 9931c35dfe Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove obsolete sections from setup.cfg
- Remove babel.cfg, this is not needed here at all
- Update requirements, no need for python_version anymore
- 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

Change-Id: Ic40d3fdaac00791fb150c1dc68a35d53ec30043d
2020-05-11 11:25:07 +08:00
zhurong fc15882b98 Remove six usage
Depends-On: https://review.opendev.org/#/c/720855/
Depends-On: https://review.opendev.org/#/c/720856/
Depends-On: https://review.opendev.org/#/c/720857/
Depends-On: https://review.opendev.org/#/c/720860/
Depends-On: https://review.opendev.org/#/c/720861/
Depends-On: https://review.opendev.org/#/c/720864/
Depends-On: https://review.opendev.org/#/c/720865/
Depends-On: https://review.opendev.org/#/c/720866/

Change-Id: I36cde6010e287b5b071a2291180c0e14df2e3667
2020-04-17 20:30:00 -07:00
Sean McGinnis 25ebd01de3
Drop unittest2 usage
unittest2 was needed for Python versions <= 2.6, so it has not been
needed for quite some time now. See unittest2 note on:

https://docs.python.org/2.7/library/unittest.html

This drops unittest2 in favor of the standard unittest package.

Change-Id: Idb4cb10509f49afe86bfdb688e35a7822dfe38bd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 02:40:41 -06:00
zhurong 0ce2ad12d0 Update semantic_version to 2.8.2 and remove multiattach in volume template
Change-Id: I7fedbcf85ee9c4dbacf1fc50cec25380c3b3e93d
2019-09-19 02:45:34 +00:00
Zuul 7435a2e7bd Merge "Bump to hacking 1.1.0" 2019-07-05 03:04:05 +00:00
zhurong 4ee97f7b7a Bump to hacking 1.1.0
Change-Id: I4019f41d9ddd843872855e6e80c0667ee2df758a
2019-07-04 11:51:47 +00:00
pengyuesheng e64e96ce3d Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I9ffdc1077842968b0b53ced732b6c8c52afba453
2019-07-04 16:11:50 +08:00
zhurong da016e903f Bump psycopg lower-constraint to 2.7
Earlier versions don't work with postgresql 10, which is now showing
up in distros.

Change-Id: I823a8575f31c060e4c0f7614e76a5e751fb9ccf4
2019-03-25 17:07:53 +08:00
akhiljain23 4341093b14 Add framework for murano-status upgrade check
This commit adds the functionality of murano-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in
future.

Change-Id: If7987cdf5d9a686abbcad5960b8f391f8b9518a3
Story: 2003657
Task: 26143
2018-10-24 09:31:33 +00:00
Nguyen Van Trung 640bdac0ac Switch to using stestr
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ib27496313447cac962e4849223ab9eb96a9d873f
2018-07-09 15:15:17 +07:00
Doug Hellmann 8ff048d8b5 uncap eventlet
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Fixing the eventlet entry also requires making the lower-constraints
list match the requirements range.

Change-Id: I69a895bfa4f4caa6dff3109375503f7a7bcbd626
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-18 12:11:22 -04:00
Doug Hellmann 01b0af0211 add lower-constraints job
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: Icc7b5a39ef7e29f25ebfe8a10a4b8edba115505a
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:54:58 -04:00