Commit Graph

44 Commits

Author SHA1 Message Date
Ghanshyam Mann a5cadb200b Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I8ce3e066121e6e07f05ed886eccdd22e1c66c6d3
2024-01-11 15:36:34 -08:00
Hervé Beraud 8b545f387e Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also indicates that we support python 3.9.

Change-Id: I298bf00067bd877e4d29cddd15512b9e7fda3bf3
2022-05-05 16:20:44 +02:00
Andreas Jaeger f13c79703a Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
- Update classifiers

Change-Id: I391f53925c1b20d2e8ad1685358c81dcbdaaf34c
2020-04-05 10:14:14 +02:00
Andreas Jaeger 5888968ec0 Add python-requires >= 3.6
As part of moving to Python 3.6, add a python-requires to clearly state
it.

Change-Id: I4da67ec5ea303ef35d6aac47a5d7ae5ec57aab9b
2020-01-27 18:27:37 +01:00
pengyuesheng dc37b3569b Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Co-Authored-By: Andreas Jaeger <aj@suse.com>
Change-Id: I32d5dc317b821dee4a625506f227a8f5bfaaecfc
2020-01-27 17:03:20 +01:00
caoyuan 74d2575a0e setup.cfg: Cleanup and update some urls to latest
- pbr hasn't need the hook configuration since forever [1]
- The 'wheel' group is renamed to 'bdist_wheel' [2]
- Update the urls to latest

[1] c84876dc0f
[2] f7c9878712

Change-Id: I52e7abcb577e3a9ba61492e84a3c148f6eab4b4a
2019-10-22 11:22:44 +08:00
Andreas Jaeger 5793218d2b Remove openstack-jsoncheck and openstack-indexpage
These are not used anymore, remove them.

Change-Id: Ib4f8c25bc0bbd8227d21e055f07411926577714b
2019-08-19 13:04:13 +00:00
Andreas Jaeger 06d7ac27b7 Update docs building
Use sphinx-build and cleanup unused config.
Switch to openstackdocstheme 1.20.0 and remove obsolete settings from
conf.py files.

Update some RST files, they had wrong indentation.

Change-Id: Iaad2841db809f8a343fb8b1031cf8d0587d70442
2019-08-11 09:48:06 +02:00
Corey Bryant 9d59e2087e 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: I8c3460f3f0b7759a6fa1f05424a8a499c0cd9957
Story: #2005924
Task: #34205
2019-06-24 09:13:29 -04:00
Andreas Jaeger 74429f77c3 Drop 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: I0aa0fd95fd882ab0989eed81d535b963c821c162
2019-04-28 16:56:03 +02:00
Zuul c197ad0f65 Merge "Remove support for py34" 2019-01-23 01:57:27 +00:00
98k 9794458694 Update home-page
Change-Id: Icf83f920a7678e35e90cce8623fea943ac411a89
2019-01-11 18:27:31 +00:00
jacky06 528d97a9e9 Remove support for py34
Change-Id: I2db09c9b010b03a1906060b40de0bea9b89a130c
2018-12-19 11:21:59 -05:00
jacky06 24a17f7bb0 Change openstack-dev to openstack-discuss
Change-Id: Idce55241adffc3ab254856e82b8d7e67b6631241
2018-11-25 16:35:58 -05:00
Stephen Finucane ca9ff17d27 Remove "cleanup" tools
There were a couple of scripts here:

- prettify.py
- remove_trailing_whitespaces.sh
- remove_unnecessary_spaces.py
- retf

Most of them are self-explanatory with the exception of 'retf', which I
don't understand but which looks untouched in years and therefore
useless. For the other three, we have tooling in place to ensure these
"issues" don't get into source control and, even if they did, there's
questionable value in rewriting stuff just to remove excess whitespace.
Kill them all.

Change-Id: Ifbd2d50a669251484056552da21d23906f8d6178
2017-10-04 11:48:00 +01:00
Stephen Finucane cb165573bc Remove the 'openstack-auto-commands' tool
The 'openstack-auto-commands' command has been superseded by the
'cliff.sphinxext' Sphinx extensions [1]. Remove both this and the helper
script in 'bin/doc-tools-update-cli-reference'.

[1] https://docs.openstack.org/cliff/latest/user/sphinxext.html

Change-Id: Ia20ace51377290997566b89ad4f78a941358cb86
2017-10-04 11:47:58 +01:00
Stephen Finucane d3c952064a Remove 'autogenerate_config_docs'
This tool has been superseded by the 'oslo_config.sphinxext' Sphinx
extension and can finally be put to rest.

[1] https://docs.openstack.org/oslo.config/latest/reference/sphinxext.html

Change-Id: Idae5ba656c3a0da8a26c6f1e63332365c8012c0b
2017-10-04 11:47:56 +01:00
Cao Xuan Hoang 1f83a65353 Remove support for py33
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.

Change-Id: I7cd467af595c5e96df599b16afb83ef59f4d4452
2017-01-23 14:08:47 +07:00
Andreas Jaeger c29d578224 Add py35 to trove classifier
Add Python 3.5 as trove classifier to setup.cfg.

We don't run any unit tests but expect that Python 3.5 works.

Change-Id: I231c2beaaf90c7da0185758829b0b9ddb216eba6
2017-01-07 16:28:12 +01:00
Andreas Jaeger fe586291ff Remove openstack-doc-test
openstack-doc-test is used for building of DocBook XML files. For index
page generation openstack-indexpage can be used.

Remove openstack-doc-test together with all support files.

Change-Id: I5589bc634e1f630f79b3d6e8bffee939c5300bf2
2016-05-19 01:51:03 +00:00
Andreas Jaeger 992fb6cdb4 Remove DocBook XML translation support
Remove commands and scripting for translation of DocBook XML.

implements bp docbook-removal

Change-Id: Iadb4d8609dffe9e3e449b6fe09db939ea7fca943
2016-05-02 12:57:34 +02:00
Andreas Jaeger 39b5ecfbd9 Improve index page layout
Split up draft guides under separate heading and remove draft word for
easier review.

The output looks now basically like:

Generated documents
admin-guide-cloud
contributor-guide
networking-guide
user-guide
user-guide-admin

Draft Guides
arch-design-rst
config-ref-rst
image-guide-rst
install-guide-debian
install-guide-obs
install-guide-rdo
install-guide-ubuntu

Also, create separate tool openstack-indexpage that only generates index
page.

Change-Id: Ic68a674918f18dc37f8b9fa4e9d9f529a8ad131e
2015-11-21 19:57:10 +01:00
Gauvain Pocentek 67be882cc6 Remove openstack-autohelp from setup.cfg
The script is used from the git repository, no need to release/publish
the script.

Change-Id: I35eebafbf4cabb631a9ee67cae64115d04b5cac8
2015-10-29 11:28:04 +09:00
Andreas Jaeger 2de03ff6ce Add doc-tools-build-rst
Import tools/build-rst.sh from openstack-manuals to share it between all
repositories.

Change-Id: I3fd807f08a23e706a3edc70314ab276c363a43e9
2015-08-26 11:03:30 +02:00
Jenkins e16235f9bd Merge "Improve python 3 compatibility" 2015-07-27 06:33:51 +00:00
Gauvain Pocentek a92753f4cb Remove the heat-ref related tools
Since the hot-ref and hot-guide are going back to the heat repository,
some tools are not needed anymore:
- dn2osdbk
- the hotref sphinx extension

Change-Id: I9f8539f73b4dedc5236f8ff5d5b03c93c602c661
Depends-On: Ie2240d2fca5d6e43b1d186645e7ff9107514f289
2015-07-22 20:10:08 +00:00
Andreas Jaeger 13f340fd84 Improve python 3 compatibility
check_output returns bytes, add extra argument universal_newlines so
that the output is a string and thus can be used by other functions.

openstack-doc-test should work now using python 3 and python 2, thus
enhance setup.cfg to mark python 3 support.

Change-Id: Ic9873702977acad63d94c426c0c7e69f331a1360
2015-07-19 09:31:02 +02:00
Andreas Jaeger bb3d68fba8 Drop python 2.6 workaround
Remove check_output that is in python 2.7 and newer but not in
python 2.6. Thus, we do not support python 2.6 anymore.

Change-Id: Ie953ce43d792b95e348a55fea4665b1ef59b468d
2015-07-19 09:30:55 +02:00
Christian Berendt 562179013d Add wrapper script to update CLI references
doc-tools-update-cli-reference is a wrapper script to update
CLI references in the openstack-manuals repository.

Change-Id: I27f81d783db70206e4fdd1110da354bc9df90b70
2015-03-12 15:53:20 +01:00
Andreas Jaeger efc4e36190 Mark openstack-doc-tools as being a universal wheel
Universal is used to identify pure-Python module(by bdist_wheel).
For these, it is sufficient to build a wheel with _any_ Python ABI
version and publish that to PyPI (by whatever means).

Change-Id: I83c09e2d2658280fd799675e9ef290841b2cd087
2014-09-22 11:08:43 +02:00
Christian Berendt 7a9f2623d6 Import doc-tools-check-languages and improve it
This is an initial import of an improved version of tools/test-languages.sh
used in repositories like openstack-manuals or security-doc.

Following improvements are included:

* add missing license header
* fix E003: Indent not multiple of 4
* fix E020: Function declaration not in format  "^function name {$"
* rename variables inside methods
* rewrite usage information
* refactor/rename methods (test_fr, test_ja, test_language, setup_lang)

Change-Id: I9fead76f6552fd3f7317605f1e6a0f9cf5b69b26
2014-08-04 09:10:27 +02:00
Gauvain Pocentek bb6df9a0a9 Provide openstack-dn2osdbk
This tool converts docutils native XML to docbook. The conversion is
done using XSLT, with some custom XML treatment.

The XSL source is a slightly modified version of Dn2dbk written by Éric
Bellot (http://ebellot.chez.com/dn2dbk/index.htm).

Modify doctest to check and build the HOT guide.

Implements: blueprint heat-templates

Change-Id: If866a5ffe19165c38981493684de550e0df0e36d
2014-07-23 15:12:36 +02:00
Andreas Jaeger 01943b0637 Fix setup.cfg for rename of main in doctest
A recent change renamed main in doctest.py to doctest, this needs a
corresponding change in setup.cfg to fix package building.

Change-Id: Ic75db791af98b775a212e93b25548028f6d7ca53
2014-05-19 18:31:42 +02:00
Roger Luethi 3d61e98305 Add new script jsoncheck.py
Add a new script that can reformat JSON files and check for niceness.
We can use this later as niceness check for openstack-doc-test.

Change-Id: I33c5309bfa2e1abfa6a35d1cfcdc984775e85f05
2014-05-07 22:11:21 +02:00
Andreas Jaeger b298591901 Remove compatibility names
These names are not used anymore, all usage has been adapted.

Change-Id: I8bf369956fbdd55a2696e28ae033837c6513fcca
2014-04-24 19:27:54 +02:00
Andreas Jaeger ccbfdb592f Merge and rename generatedocbook/generatepot
The tool scripts used common functions, merge them to a single file
with different entry points.

Cleanup the merged file so that it passes the pep8 test.

Install the commands now as openstack-generate-docbook and
openstack-generate-pot. Leave a compatibility wrapper which should be
removed in version 0.8.

Change-Id: I7e4d651c4c62df58499e64e38528cb2cc4e9175b
2014-02-12 20:28:11 +01:00
Andreas Jaeger 2943a37fc7 Do not install internal scripts in /usr/bin
build-ha-guide.sh and markdown-docbook.sh are only needed by doctest.py,
so make them only available to that tool. There's no need to install
these files in /usr/bin.

Change-Id: Idd2f40dbe0a50a0936311574a26553444a4dd7e1
2014-02-11 22:39:09 +01:00
Sascha Peilicke b08c80199f Honor install prefix
No need to put 'usr/' in front of data files, distros have the default
prefix set to '/usr' already such that 'setup.py install' does the right
thing. Compare with the results of 'python setup.py bdist'.

Change-Id: I8d7f592abece22f8bb70deede776509cdd1446e5
2014-02-06 11:34:45 +01:00
Andreas Jaeger c586091172 Add tool to document cli tools
Call "os_doc_tools/commands.py" nova to generate a file
section_cli_nova_commands.xml with the command line options.

Allows generation of all supported clients with --all command.
The tool gets installed as: openstack-auto-commands

blueprint os-user-doc
Change-Id: Ie4b200818bd585d3fce0b27f0639ad03069b3b7b
2014-01-22 20:52:56 +01:00
Andreas Jaeger b226f80820 Rename autogenerate-config-docs to autogenerate_config_docs
Minus signs are not allowed in python package names, thus rename the
directory.

Change-Id: Ie4b7cdff301673fdc0afe49c5b7211ee003871e5
2014-01-21 17:00:22 +01:00
Andreas Jaeger 93be0e5e62 Use sphinx for documentation of openstack-doc-tools
Update for using sphinx package so that documentation
follows the OpenStack python packaging conventions.

This contains an initial man page for the openstack-doc-test
tool.

Change-Id: I8b8ed63c3c7bcfb58f5d8f939a79c3f7c314b969
2014-01-03 12:19:40 +01:00
Andreas Jaeger 371fd80a7a Version handling
Add new parameter --version
pbr uses version number from git (via tags), so remove our own
version number. Once we tag a version "0.1", this will be the
version number.

Change-Id: Idcf9e4ddeebf637eb36797afd2855d1c657e52ea
2014-01-01 17:33:55 +01:00
Andreas Jaeger 45e80e4fef Package markdown-docbook.sh
Add markdown-docbook.sh to the python package

Change-Id: I678abe35583269b02ce6fbcddbe7eed98434388e
2013-12-28 16:08:44 +01:00
Andreas Jaeger 05f9428303 Rework repository to make it an installable python package
This is an overhaul of the complete content to make it
a separate python package that can be installed on the jenkins
machines as well as on editor's machines.

The goal of this patchset is to package everything
and get the command "openstack-doc-test" running so that
it can be used for gating.

This will need further refinement for the other commands.

Change-Id: Icc2f1807dd5ab5fb2f83c05d1b3895b3a9a0dbaf
2013-12-14 22:53:18 +01:00