This resolves a warning in recent versions of pip.
Change-Id: I13314917c3f21d7752bdbc3cb869f3e022daa25f
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.
Note that this is effectively a revert of change
Ic93f1c77230d859713ea9bc86065880efa91de7c which attempted to resolve the
same problem in a different way.
[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Change-Id: Ibf1238bc7c09b4ae9824be81a06f22decfb40873
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
As os-resource-classes is branchless which means same
master code is run on stable branches too, let's test it
with all the python version supported in those stable branches.
For that, we need to explicitly add the pythn jobs instead of using
the release specific job template. This way, we will explicitly know
that we are testing all supported python versions and do not remove the
older py version testing when the new release template bumps the min python
version like done in Yoga.
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.
Change-Id: Ic93f1c77230d859713ea9bc86065880efa91de7c
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.
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: Iab669aaf569600fa87da8404663bbbbde0be14d6
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: Ib4a8e8e1525433f96a61344c4e1ecea6ef5314dc
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme version
- Use hacking 3.0
Change-Id: Idefb3435a6b2b0765781fb6458c2def5a5e38a1d
This supports Python 3 goodness. Some additional tox tweaks are included
while we're here.
Change-Id: Idba284defad550f7f90cccb4b288c00b77bc25de
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This will prevent setuptools accidentally installing os-traits in a
Python 2 environment.
Change-Id: I9401637f4f3fe59abaaa05ecc72c6247826323ad
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
Change-Id: I37a1af868c189c30cc9aa9ee4ca78786ad82d547
This follows the instructions [1] in an attempt to build pdf docs.
This creates workable results, but there is room for improvement.
[1] https://etherpad.openstack.org/p/train-pdf-support-goal
Change-Id: Icf7c22bf9d1de6fb2a74a756c370930d4c00b0b9
Story: 2006110
Task: 35395
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
Change-Id: I7410ad173a84b30562a1cdad743553dbd432f729
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.
Note that redirects will be set up as well but let's point now to the
new location.
For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
Change-Id: I9386b30e3bb2b5b734f5136374fdafbcc29f5137
1. Replace git.openstack.org URLs with opendev.org URLs
2. Remove the unnecessary "=" from some files
Change-Id: I86ad7f5d51d2b82b39aa8bebb34dfffc54df6939
Add a resource class representing the number of guests a compute node
can host concurrently with memory encrypted at the hardware level.
Initially this is required because on AMD SEV-capable hardware, the
memory controller has a fixed number of slots for holding encryption
keys, one per guest. Typical hardware only has 15 slots, thereby
limiting the number of SEV guests which can be run concurrently to 15.
nova needs to track how many slots are available and used in order to
avoid attempting to exceeding that limit in the hardware.
In the future support may be added for equivalent functionality from
other vendors, such as Intel MKTME; however it is not yet known
whether MKTME would have a similar limit.
See
http://specs.openstack.org/openstack/nova-specs/specs/train/approved/amd-sev-libvirt-support.html
for more details, and
http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2019-04-23.log.html#t2019-04-23T20:35:19https://review.opendev.org/#/c/641994/
for the bike-shedding discussion over the name.
Change-Id: I97a015d4070db947e4b96fb35021da01d61016cc
blueprint: amd-sev-libvirt-support
The docs testenv in tox.ini was missing usage of upper-constraints.txt
from the global requirements project. This meant that in some
circumstances, such as the openstack-tox-docs CI job, Python 2.7.x
would be used but Sphinx 2.x would get installed which is not
compatible with Python 2.7.x, causing tox failures like this:
2019-05-08 12:45:48.060953 | TASK [tox : Run tox without tests]
2019-05-08 12:45:48.759277 | ubuntu-bionic | docs create: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs
2019-05-08 12:45:52.775007 | ubuntu-bionic | docs installdeps: -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt
2019-05-08 12:45:53.838450 | ubuntu-bionic | ERROR: invocation failed (exit code 1), logfile: /home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/log/docs-1.log
2019-05-08 12:45:53.838669 | ubuntu-bionic | ================================== log start ===================================
2019-05-08 12:45:53.838995 | ubuntu-bionic | DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
2019-05-08 12:45:53.839207 | ubuntu-bionic | Looking in indexes: http://mirror.iad.rax.openstack.org/pypi/simple, http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64
2019-05-08 12:45:53.839421 | ubuntu-bionic | Collecting sphinx!=1.6.6,!=1.6.7,>=1.6.2 (from -r /home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt (line 1))
2019-05-08 12:45:53.839619 | ubuntu-bionic | Downloading http://mirror.iad.rax.openstack.org/wheel/ubuntu-18.04-x86_64/sphinx/Sphinx-2.0.1-py2.py3-none-any.whl (3.2MB)
2019-05-08 12:45:53.839749 | ubuntu-bionic | ERROR: Sphinx requires Python '>=3.5' but the running Python is 2.7.15
2019-05-08 12:45:53.839778 | ubuntu-bionic |
2019-05-08 12:45:53.839912 | ubuntu-bionic | =================================== log end ====================================
2019-05-08 12:45:53.840347 | ubuntu-bionic | ERROR: could not install deps [-r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt]; v = InvocationError(u'/home/zuul/src/opendev.org/openstack/os-resource-classes/.tox/docs/bin/pip install -r/home/zuul/src/opendev.org/openstack/os-resource-classes/doc/requirements.txt', 1)
So introduce usage of upper-constraints.txt, as is already done in os-traits.
Of course we should also switch to Python 3, but even with that change
we still need to use upper-constraints.txt to prevent similar
categories of failure in the future.
Change-Id: I8f4e72bd4b34cfd177c35469e0bc7d83bee705c7
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: Ieca25193d4a9ec7c53596eea04a8780301a9f0f7
Sem-Ver: feature
Update the README and CONTRIBUTING .rst docs to reflect new location
for bugs.
Change-Id: I119cb391270470c8e22bc8ac3358691319d5b1ec
Story: 2005131
Task: 29815
The normalize_name utility provides consumers of os-resource-classes
with a way of generating a known-good name for a custom resource class.
This is equivalent to the os-traits utility of the same name [1].
[1] 9eab06df2f/os_traits/__init__.py (L113)
Change-Id: Id5557d65f11ed4dee10c8df2a42a4c485bfd65d1
The openstack-dev mailing list has been replaced with
the openstack-discuss mailing list (*).
So replace the openstack-dev mailing list with
the openstack-discuss mailing list in setup.cfg.
In addition, update the home page URL in setup.cfg.
*: http://lists.openstack.org/pipermail/openstack-dev/2018-September/134911.html
Change-Id: If8dba8c7aee5e8161ac52dd2eeb0a7b2d82ca933