Commit Graph

23 Commits

Author SHA1 Message Date
Hervé Beraud 19b2e15cee Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Iddc6f1d90f416b8938a712ac0b04aec807f391a9
2024-01-26 01:07:33 +00:00
Andreas Jaeger b3613ff708 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.

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: I7966fa4281dde7e6340d632333ea8f8b84128bde
2020-06-02 14:00:56 +02:00
Andreas Jaeger d6b4ed4c7b Further 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
- Use newer openstackdocstheme,reno and Sphinx versions
- Remove install_command from tox.ini, the default is fine
- Use TOX_CONSTRAINTS_FILE, UPPER_CONSTRAINTS_FILE is obsolete
- Update hacking to 3.0.1, fix warnings found
- Remove babel.cfg, it's not needed anymore

Change-Id: I60edb7e44e4a8222f564f30157eb31288b85b422
2020-05-13 14:09:38 +02:00
Sean McGinnis 0b6708e986
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I64f6f5df4d82faef205e5019be5a41c1b1f1f1fa
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:52:18 -05:00
zhurong c6b90ec56a Cleanup py27 support
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: I1db16203ad150c6286c0ca833c01a456981d0a73
2020-04-07 04:57:31 -07:00
Thomas Bechtold e379747cd8 Drop oslosphinx and use openstackdocstheme
OpenStack moved to openstackdocstheme so use it here instead of
oslosphinx.
Also update the used Sphinx version. This is now in sync with the
versions from requirements/global-requirements.txt .

Change-Id: I0ffbea9b83abe9d9ae3886e7a427fc01637b36ea
2019-09-24 09:51:07 +02:00
Vu Cong Tuan 47d2319144 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: Ic7db0e419ccf6f7b05058950ec8a76378b428719
2018-07-10 16:53:35 +07:00
Andreas Jaeger d27d5a7053 Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

Also, use openstackdocstheme for releasenotes.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I1357eda2330c095bdc1e3a3697faabfbca4b6a8e
2017-11-17 11:38:49 +01:00
Mehdi Abaakouk e2bf485044 retrieve project id to ignore from keystone
We currently allows only project uuid, but this is a pain for deployer.
Also the default is a project name which doesn't work...

This change queries keystone to retrieve project ids when the
ignore_projects list are names.

By default, if auth_type is not set, we keep the previous behavior to
not query keystone.

Change-Id: I270d080d3e65eb6b0cd823498a4dd37389c49221
2017-05-19 07:30:52 +02:00
Steve Lewis 55e728897d Add reno for release notes management
As per the release process changes for liberty and mitaka [1], the
reno tooling is being added to the repository for the purpose of
implementing on-going release note additions.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-November/078301.html

Change-Id: Ia824156badaceb3000ca37052af1c1c8ded1e584
2016-07-28 08:53:19 -07:00
OpenStack Proposal Bot ab8c985588 Updated from global requirements
Change-Id: I73d0ed26a7f093bb96f10013daa4046d7602f679
2016-05-10 18:36:00 +00:00
Julien Danjou c962fedb85 Only install hacking in pep8
Change-Id: I15dc052f3419b548b5dc373c5edb3658e48d69a1
2016-05-10 12:10:12 +02:00
Julien Danjou 01e0856ae1 Remove unused requirements
Change-Id: Iab0dc79f7a039c9484381dda00399185862f231a
2016-05-10 12:10:12 +02:00
Julien Danjou 84a0d56cdd Add missing requirements for mock
We import and use it directly.

Change-Id: I2e39db2159b0d5242abad2e6bf250dfe8ee603e1
2016-05-10 12:10:02 +02:00
OpenStack Proposal Bot 4404693f4c Updated from global requirements
Change-Id: If8a70c2baf548860de15e33acce6452ae597fedb
2016-01-18 22:39:45 +00:00
OpenStack Proposal Bot bcde130e11 Updated from global requirements
Change-Id: Icda8f9c1cb80f656cbd794c0f36675edd3786e77
2015-11-19 15:54:52 +00:00
OpenStack Proposal Bot db30cf804b Updated from global requirements
Change-Id: I590a72f4f1fdce0c97a8b90f5c449728047ecb02
2015-08-04 00:43:37 +00:00
OpenStack Proposal Bot 1cc2ebbcdf Updated from global requirements
Change-Id: I919af9db4ca568ce941bb3a29c53ee1f297dabbd
2015-07-15 01:31:12 +00:00
OpenStack Proposal Bot cdeb275aef Updated from global requirements
Change-Id: I691b788b399ff1ed0255c5881d95c382d5f6951e
2015-06-23 21:41:23 +00:00
OpenStack Proposal Bot a086aac03c Updated from global requirements
Change-Id: Icba6561ebf56d417ac8f00457b63c1ef7c124119
2015-05-07 23:29:30 +00:00
OpenStack Proposal Bot 881aaa44d7 Updated from global requirements
Change-Id: I5f0ccc0f3ceba5e2db8f24d6caa069538d262fc1
2015-03-31 18:30:27 +00:00
OpenStack Proposal Bot a0997c70e8 Updated from global requirements
Change-Id: Ibc6c73369fa7ba9b9f0219544866b92b51458d97
2015-02-20 13:50:00 +00:00
gordon chung 5a5dbbbee7 initial checkin 2015-01-20 18:36:18 -05:00