Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann bf91491fcc 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

Co-authored-by: zhurong <aaronzhu1121@gmail.com>

Change-Id: Ieb54d8c5381d1409986df8fd9db2a5d223e10537
2022-06-01 09:02:31 +00:00
Dirk Mueller 1a26da98d6 Fix incorrect base python version being picked for unit tests
Currently all unit tests are running against python 3.6, because
the base testenv has python3 set (which points to 3.6). we need
to ignore the base python conflict and let tox chose the specific
version we're looking for testing.

Change-Id: Id5fa9404d27f537d6e4a4296d780f96841a5aca3
2020-06-02 13:35:07 +02:00
Andreas Jaeger 9ce57f3f39 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
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete

Change-Id: If3228ad42346d6f405e0c6b6580ecd48a7511525
2020-05-09 16:45:25 +02:00
Andreas Jaeger 6fc8c9f785 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Change-Id: I4cebf81b32bdf285f0d412255984c176140329be
2020-03-28 12:30:53 +01:00
Ghanshyam Mann 75fb547bdb [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

murano-pkg-check is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I7b85365d357e37a10b501a8687fe86ded4b98095
2019-11-16 15:50:32 +00:00
zhurong f86902fcc5 PDF documentation build
Change-Id: Id488e9e0643876363894641dc4bd62b56c4ce488
2019-09-17 22:52:43 -07:00
zhurong 18119f5e9d Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I0422484258cd7590853f6de978a174a47d1d202a
Story: #2005924
Task: #34214
2019-07-03 17:22:38 +08:00
zhurong a78087c189 Update contraints url
Change-Id: I253de05f298ed33cde6a98455264fb3f7b040388
2019-06-18 14:50:33 +08:00
Zuul dc867b466b Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-04-28 09:01:38 +00:00
zhulingjie 2007d95cb1 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I46d05791d215113edf465ad4acc29b14c2842d4a
2019-04-23 08:38:59 +00:00
Ghanshyam Mann 635273bafb Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: If5096aefbcface1392c39a7f41618579ad07326c
2019-04-23 04:12:28 +00:00
zhurong 7204695b69 Use standard cover tox env
Change-Id: Ia561aa9aa7a8c812594651c1d82fd6d8844068a8
2018-09-10 10:31:56 +08:00
zhurong 6e13d60c57 Switch to using stestr
Depends-On: https://review.openstack.org/#/c/585960/
Change-Id: I290e3eb9c6f7eebf785e58a5b00f09198f7783a7
2018-07-26 06:13:45 +00:00
huang.zhiping c9295dd747 fix tox python3 overrides
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: I8b0de082c1fa934dfcd6e6db0e28828291f9b667
2018-06-09 11:34:07 +08:00
Doug Hellmann 588ab611c7 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: Ie993e7ec39f8f4cb4d809b46122fb479a1dffe4d
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:57:09 -04:00
Andreas Jaeger d7b253edd7 Avoid tox_install.sh for constraints support
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: Id9b20c3ddb141f5237b2a072d89b3ec0786a1dbd
2017-12-02 17:03:55 +00:00
Vu Cong Tuan ee336714c5 Remove support for py34
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: Ic956031945091f588b79b344ec1b208dd979305f
2017-06-07 10:05:51 +07:00
zhurong 46dde10a13 Make test debug working
Now running `tox -e debug <test_name>` can not working,
this commit fix this.

Change-Id: I4e9fc63550c33a438d60b3b84067fb113fb67280
2017-01-17 11:28:51 +08:00
sslypushenko c9e8de4050 Add tools/tox_install.sh script
murano-pkg-check is now present in upper-constraints.txt, so install command
should be replaced with tools/tox_install.sh

Change-Id: I9099b6c1751006a229a8400d2229daa0c6ea3652
2016-09-29 13:57:50 +03:00
sslypushenko a71fe26c19 Added docs autogeneration for error list
Change-Id: I4d322863c06731bf0c5f540394711eab7c24de23
2016-09-13 16:37:16 +03:00
sslypushenko 0104da8439 Added tools/cover.sh
Change-Id: I63ab53da9db044d05e1f87a8e83805f2889b9b25
2016-09-01 16:01:38 +03:00
sslypushenko c59ed6dec5 Added core and CLI
* Added core functionality of valitation tool:
  - Package loading
  - Validators discovery(plugins)
  - Validation of package

* Added CLI runner

Partial-blueprint: package-validation

Change-Id: Ia03914f7e48e5a43ef290deb95e08c66446c08ef
2016-08-24 17:05:08 +03:00
sslypushenko 0a97def364 Commit project structure
Based on cookiecutter project template

Change-Id: Iabedcc77d1d915fcee4769e1bb67db69d375b6cb
2016-08-22 16:46:38 +03:00