Commit Graph

21 Commits

Author SHA1 Message Date
Radosław Piliszek 604d85b6d2 Drop lower-constraints
Per our PTG resolution [1] and general OpenStack resolution [2], lower-constraints
are not worth the extra work and confusion they introduce.
This patch drops them along with all mentions.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-October/018445.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019521.html

Change-Id: I4c65a428facdf6d4ce28d97a868589aeae4c856e
2020-12-18 20:05:27 +01:00
Pierre Riteau c5c6d995d3 Bump minimum Ansible version to 2.9
Change-Id: I5befc72a4894d625ca352b27df9d3aa84a2f5b2c
2020-09-23 17:48:01 +02:00
Radosław Piliszek 8a8c919066 Fix l-c testing for Ubuntu Focal (py38)
Change-Id: I5609812d4f92d88b04bc887886d1ba08893505d9
Story: 2007865
Task: 40199
Closes-Bug: #1886298
2020-09-10 09:56:01 +02:00
likui 1372bce7da Remove six from lower-constraints.txt
The Python 2.7 Support has been dropped since Ussuri.

Change-Id: I9927a83748a4b13c57bcadd081c60ea9609ced55
2020-09-03 16:21:32 +08:00
melissaml 75b394764b Remove mox3 from lower-constraints.txt
The mox3 repo is being retired.

Change-Id: If897d98c15261f85eca5ddf074ac6cd2182ac1ad
2020-06-23 10:04:46 +08:00
jacky06 c4cee86581 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

Update Sphinx version as well.

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.

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.

Set openstackdocs_auto_name to use 'project' as name.

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: If23546ac4cc2c19626e05b460651b61d5e82d948
2020-06-06 15:29:04 +02:00
Will Szumski 4fcbdd7740 Stop mocking ansible modules globally
This causes non-local side effects that are hard to track down. E.g:

--- import errors ---
Failed to import test module: tests.test_merge_yaml
Traceback (most recent call last):
  File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/will/code/kolla-ansible/tests/test_merge_yaml.py", line 19, in <module>
    from ansible.errors import AnsibleModuleError
ModuleNotFoundError: No module named 'ansible.errors'; 'ansible' is not a package

This `'ansible' is not a package` message occurs because ansible is a Mock.

Depends-On: https://review.opendev.org/#/c/726768/
Change-Id: Iddbdd3d855daadbf12536cc990559e6b8e123051
2020-05-11 13:47:12 +01:00
Radosław Piliszek 234272eb64 Cleanup py27 support
Removes and/or replaces all mentions of py27.

Cleans up obsolete requirements and their lower-constraints.

Separates test-requirements.

Makes lower-constraints pass outside of CI (MarkupSafe).

Adds FIXMEs about some hacky Mocks that may misbehave.

Change-Id: Ifc090bf3c1db17d8542ee591c91e8225a597bfe2
2020-04-26 12:16:44 +02:00
Andreas Jaeger 454489762c Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
during installation.

Change-Id: I7ef5ac8a89e94f5da97780198619b6facc86ecfe
2020-04-04 17:00:17 +02:00
Radosław Piliszek 5648ad6e9d Use unittest.mock instead of PyPI mock
Now that py2 is gone, oslotest dropped dependency on mock and will
soon affect Ussuri CI [1], let's use unittest.mock built in py3.

This also fixes py38 jobs and proactively prevents py36 and py37
failing due to [1]. This is because we never included mock in
test-requirements (but in lower-constraints where it does not
really belong at all) and instead relied on oslotest to bring
it in.

[1] https://review.opendev.org/716322

Change-Id: I30e82e2d87418272a71c7ee089a8acdaf8872158
2020-04-02 18:21:01 +02:00
Zuul ade4f4eeb4 Merge "Remove python clients from test-requirements.txt" 2019-10-25 06:27:41 +00:00
gujin f8b3a63aea Bump Sphinx lower constraints to 1.8.0
We already bumped Sphinx to 1.8.0 in doc reqs

refer to https://review.opendev.org/#/c/688371/

Change-Id: Ifd46ab6b2043392aa7878a11b0fe186f5ee4c4ce
2019-10-24 07:16:47 +00:00
Mark Goddard ef61c022ce Remove python clients from test-requirements.txt
These should not be necessary.

Change-Id: Ide02b7da2a2a2d528c171772f5552f4529ffe880
2019-10-23 13:27:45 +01:00
Mark Goddard ef3abc455f Build pdf doc
The is one of community goals that each project should produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is
recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ia0f8b73bcbda6295319f5c8de1aa02a40844207b
2019-09-17 14:14:18 +01:00
confi-surya 6fbc9008f8 remove pep8 from lower-constraints.txt
Older hacking version depends on pep8, but pep8 module is replaced
by pycodestyle. This is already resolved by updating hacking
version in https://review.openstack.org/#/c/627149/

pep8 is dropped, so no longer require in lower-constraints.txt.

Change-Id: I585e94098de20e0f541d4182367e904fc13d2ae6
2019-02-04 16:56:22 +05:30
caoxufeng 7f839d7258 oslo.config>=5.2.0 which is a dependency of kolla-ansible requires rfc3986>=1.2.0
Change-Id: I43cc9be3df6ae99942f1862171512a300fcf926f
2019-01-22 17:33:38 +08:00
jacky06 d55129d126 Update the remain hacking version for lower-constraints
It missing from https://review.openstack.org/#/c/627149/, this ps
to add it.

Change-Id: If852e608429df25edf4dd4676d35d3957cdeee3e
Closes-Bug: #1810530
2019-01-04 10:06:28 -05:00
Vu Cong Tuan 47d88430ce Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

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

Change-Id: I63079f352ff36dda4f3f64a8681431a319791f0e
2018-07-24 14:18:20 +07:00
caoyuan 1842ce98a5 Drop python-cinderclient usage
We've switched everything to python-openstackclient and therefore
the usage of python-cinderclient is no longer necessary.

Change-Id: I27d1b675f422aeb07ffdf41ea945a83121f562cf
2018-06-25 16:19:47 +00:00
Surya Prakash Singh 189c89c1b6 Update lower-constraints to match local requirements
lower constraints list do not match the local requirements.
This commit is to update the same.

please follow:
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129056.html

Change-Id: Icc7fe3a8f9716281de88825e9d5b2fd84de3d00a
2018-04-12 16:21:57 +05:30
Doug Hellmann 6e9d77d86e 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: I4279572d8eff5434c997717e5cb973afdce97de8
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 14:22:43 -04:00