Commit Graph

24 Commits

Author SHA1 Message Date
Hervé Beraud d14d9ddfc7 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].
Removing 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.

Notice that pymod2pkg isn't released by the openstack/release team due
to the recent SIG move, however standardization can't hurt.

[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: Iba51416b8c4544db3983ac0ea1e6ea53d266be7c
2021-01-07 16:34:24 +01:00
Andreas Jaeger 8ed0100952 Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

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: Ia09a198905ef04b5ea0c2dac440882c45d8b147c
2020-06-01 15:23:00 +02:00
Andreas Jaeger f740d320fc 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: I1251a9904fcc146ec615ba2c7f93a1b675e3220f
2020-04-05 10:25:07 +02:00
Dirk Mueller 037724dd88 Switch away from deprecated distribution lookup
Python 3.8 removed the linux_distribution support, we need
to switch to the distro package.

To pass testing, we need to update to a newer flake8 version.
Also update setuptools annotation since Python 2.x support
has been dropped.

Change-Id: I40768af80ff376866b1070026a93fd3f4bb1c2e4
2020-03-23 12:37:13 +01:00
Ghanshyam Mann 5012af2f47 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

pymod2pkg 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

Change-Id: I7cf441a76a209287eb935e2d360022d957b56954
2020-02-15 17:14:08 -06:00
Colleen Murphy a9696f90fc Switch to openstackdocstheme
oslosphinx has been retired[1] and is no longer compatible with the
latest Sphinx. Use openstackdocstheme instead.

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

Change-Id: Idb2fd37dcff7a6fe05d4874134ace49c227a78ae
2019-07-05 16:27:47 -07:00
Zuul 92b676f05a Merge "Switch to stestr and remove flake8 from the list of dependencies" 2018-08-30 19:34:06 +00:00
Dirk Mueller 2674bb7230 Switch to stestr and remove flake8 from the list of dependencies
Change-Id: I4db520e650f72407ebd8100f689af01fcf61cc5d
2018-08-28 14:01:32 +02:00
Doug Hellmann 8c8e861bc8 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: I538e86c3fe10d09bc3b0f259d33a49aeb4ffd2e2
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-03 09:32:23 -04:00
OpenStack Proposal Bot 78afecccb0 Updated from global requirements
Change-Id: If6b566c8f32b07195c8219a494a7056cad506391
2018-03-15 07:53:55 +00:00
OpenStack Proposal Bot 9de8ac7105 Updated from global requirements
Change-Id: I0c05f943ee991af8eac27878b1ee9b6510e70ae0
2018-01-18 03:26:01 +00:00
Zuul 551d4b89d3 Merge "Switch to newer flake8 / python 3.x version" 2017-11-29 19:21:07 +00:00
OpenStack Proposal Bot 921cb62343 Updated from global requirements
Change-Id: I0c1b398e27fa480d90490fe6e847d1aa34919a9a
2017-11-16 11:22:44 +00:00
Dirk Mueller 3b8274b8f3 Switch to newer flake8 / python 3.x version
the python 3.x version of flake8 finds more python 3.x
portability issues than the 2.x, as more checks are
enabled/active there.

Change-Id: Ie702ec7ce85e47b2ab6905f548be0b974077525e
2017-10-24 13:40:52 +02:00
OpenStack Proposal Bot c05fc63fee Updated from global requirements
Change-Id: I40438a632bca104e1207db1f67f67bb2b0a57edf
2017-09-11 21:47:50 +00:00
OpenStack Proposal Bot c3f6706691 Updated from global requirements
Change-Id: I88a338e2ba00d352fb59532edcbdeb16b9c47957
2017-06-27 12:20:55 +00:00
OpenStack Proposal Bot 5ab8ded336 Updated from global requirements
Change-Id: I85c5fdf51bd6fc91e7de8b164993eba20cbdd906
2017-05-17 03:57:13 +00:00
OpenStack Proposal Bot cb3b8d3e1e Updated from global requirements
Change-Id: If433df38c1d1c0fdb75db9cf17d36394ac3365ac
2017-02-10 05:58:15 +00:00
OpenStack Proposal Bot 637473d67f Updated from global requirements
Change-Id: Ib45249eadfaa730881a15433b5f91f0f006be210
2016-09-28 17:00:02 +00:00
OpenStack Proposal Bot e10889b6d1 Updated from global requirements
Change-Id: I94723f300a11cfc72e5822a0a3b2f56181b25aae
2016-09-27 10:06:49 +00:00
OpenStack Proposal Bot 78d062c633 Updated from global requirements
Change-Id: I90f982e8a8299ffcb8678048b957edf64f0f2b51
2016-06-21 18:04:51 +00:00
Dirk Mueller 941eaef054 Update from global requirements
Change-Id: Iffe6f7b91453d89be169a93f470330fb577018cd
2016-05-26 13:22:04 +02:00
Thomas Bechtold 788c70ab26 Restructure documentation
- Convert README from markdown to restructured text
- Add documentation template for Sphinx
- Add setup.cfg file so that sphinx build is done in
  doc/build/html as expected by infra scripts.

This is the way OpenStack projects usually do documentation.

Change-Id: I7e40a2e6fe14e63bd33f9b1ea1f31db23c7501b8
2016-01-07 19:09:50 +01:00
Thomas Bechtold 479ef07c9a Add tox.ini to be able to run tests
In addition to the tox.ini, there are some more changes
to enable testing:

- require flake8 in test-requirements.txt
- fix current pep8 errors
- add .gitignore including the .tox dir

Change-Id: I4cf9d8fc1c9a2eb4929fddb4a18a7db87481017c
2015-11-10 14:56:15 +01:00