Commit Graph

14 Commits

Author SHA1 Message Date
tushargite96 2d21f45ebd Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I003623b16d045635af3d83e886ee9c2db46056ea
2021-03-17 12:40:57 +05:30
Andreas Jaeger 44988971ef 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
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove install_command from tox.ini, the default is fine
- Fix problems found by sphinx-build

Change-Id: I258ba61fb3c2c5e83e71109dab941e304dde3f76
2020-04-25 16:42:22 +02:00
Brian Rosmaita 48f54bab22 Retarget specs to ussuri
Move some specs that didn't get completed in Train but which are
being worked on for delivery in ussuri to the appropriate directory,
and set up redirects so that train URLs for the specs will redirect
to the current location.

Change-Id: Ic73f4801b8307ad2a0c9be0f3ab6c12b4019e0e7
2020-01-13 22:17:24 -05:00
Ghanshyam Mann 4f13d5906a [ussuri][goal] Drop python 2.7 support
OpenStack is dropping the py2.7 support in ussuri cycle.

specs repo has py2 specific requirement which is removed
or tox optimization.

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I3792543bc58fa21c33c34cf09972a74b9a039208
2019-12-13 00:48:34 +00:00
whoami-rajat 48198501c8 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: Ibae0008d0a3473311decee198d518f14385a72ff
2018-11-02 11:36:46 +05:30
Doug Hellmann 8987890342 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ia6c3379991095d616f1c57d694a7300ee323ed75
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:50:20 -04:00
Sean McGinnis 121d2b5355 Clean up required packages
This patch does two things to clean up gate package requirements,
adding a bindep file and moving packages to the right location.

Bindep controls which system packages are installed. If a project
does not have a bindep.txt file present, the gate jobs will fall
back to a common list of packages. These include things like
mariadb and various clients that are not needed for specs repos.
Added a basic bindep.txt file with just the things we need to
ensure are present for building the docs in specs.

There are also plans to stop looking at requirements.txt for specs
since these repos do not install Python code. The two locations
that are looked at are test-requirements.txt for running included
tests, and doc/requirements.txt for anything needed for doc builds
such as sphinx and plugins.

Change-Id: I3a222d7eec32b0d5ae6ef4ad20b34603931e13d6
2017-11-17 16:53:57 -06:00
Sean McGinnis 5016627f04 Remove unit testing
Spec repos do not have code to unit test. The gate job definition for
the py27 and py35 jobs skip if there doc only changes, which is all we
will ever have in the specs repo. Therefore the one "test" we had will
never be run.

We were using this unit test as a check for formatting issues with the
rst files. This was done before doc8 was available. Now that we can use
doc8, we should just switch to running that as part of the pep8 jobs.

Also fixes all the errors caught by doc8 that were not caught by our
unit test check.

Change-Id: Ida20764edde3a07c89703d82b41958c96548b239
2017-11-17 00:21:26 +00:00
deepakmourya 24d1cbbee9 Remove support for py34.
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Iec20a052df14c3a6c882012488c36ea3eb0a939a
2017-06-21 07:35:25 +00:00
xhzhf 271eba4016 H803 hacking have been deprecated
H803 hacking have been removed.
https://github.com/openstack-dev/hacking/blob/master/setup.cfg
H803 comment still exists, remove comment
Closes-Bug: #1650747

Change-Id: I0de8267f76e0c15809d172082d0f94c5114a32d6
2016-12-17 21:00:48 +08:00
xianming mao b4baff9915 Drop H803 in flake8 ignore list and useless directory openstack/common
In hacking >=0.10.0,there is not H803,and in this project there have
not directory openstack/common,so we should delete them to improve
performance!

Change-Id: Ie39175fa16fa488d3e6066df25ebfcaa0a0fc4e2
2016-08-10 19:43:30 +08:00
Tom Cocozzello 0ea0ed782a Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Activating this check did not flag any violations.

Change-Id: I92383d91de5feffbe587c285655e5df36901b687
2015-08-04 10:52:56 -05:00
Walter A. Boring IV b4c999112b Fix rst formatting and fix tox
This patch does 2 things:
1) it fixes the broken formatting of all of the rst files, so they
   render correctly through sphinx
2) Fix tox so that it runs cleanly against the corrected rst files.

Change-Id: I3b3689c61054f051075dc6bc519c02e4c63626f7
2014-07-17 18:13:42 -07:00
John Griffith 3133ef9b63 Initialize the Cinder-Specs Repository
Change-Id: I65f23cf90aa893e680e793ced2dd1175497b18e5
2014-05-20 19:37:21 -06:00