We use the venv tox target as a generic environment for running commands
defined in this repo. Let's redefine the environment to use python 3 by
default.
Change-Id: I0cf5f50b7d36f5ebb61408eefeccb702432464be
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
We do not use openstack/common, so we do not need to exclude it from the
flake8 scan.
Change-Id: I8ef732e284336f92b272de5cd28b2824468107eb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.
This change is self-testing.
For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
[*] http://docs.openstack.org/infra/bindep/
Change-Id: Ibd031a99fb4f24f98aeba6968046c6e7a91a4430
Latest tox causes failures:
File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line
1140, in processcommand
argv = list(shlexer)
File "/usr/lib/python2.7/shlex.py", line 269, in next
token = self.get_token()
File "/usr/lib/python2.7/shlex.py", line 96, in get_token
raw = self.read_token()
File "/usr/lib/python2.7/shlex.py", line 172, in read_token
raise ValueError, "No closing quotation"
ValueError: No closing quotation
This is caused by a backwards incompatible change in tox:
https://bitbucket.org/hpk42/tox/issues/181
Change-Id: Iad5f7ab9f933920767fad54dc800946b0530d36c
* update test requirements with what's in g-r
* Remove hard-coded dependencies from tox.ini as update-requirements
does not edit tox.ini
* Remove requirements.txt as it is redundant (sdist already has it)
* Fix up all the issues identified by flake8
Co-Authored-By: Robert Collins <rbtcollins@hp.com>
Change-Id: I0508bd74edda20fbf844e7303c9b44b80ff794ef
Start a new releasetools package and move the release notes generation
script into it, turning it into a more reusable library at the same
time.
Change-Id: I9f1f38cba34fc63d3de4e3bb7eae97e26a72db35
Add an option to generate an email message body suitable to be passed to
sendmail or msmtp so it can be sent directly without having to be copied
into another email program.
Change-Id: I166ca5d8f31ddd97d5298ff9f8f5c44037dfe4b7
bashate is pep8 for bash scripts. This adds a bashate target to tox.ini
and cleans up any pre-existing issues.
The target was originally copied from devstack and then modified to
remove things that aren't in release-tools.
Change-Id: I2d38c0a17099a687b6ab33737c513be839118ff0
If there are temporary files left from previously run jobs, flake8
breaks on them. Ignore those directories.
Change-Id: I54330d72fd1c1d6449744ad9be598bb7fbcbe14b
Update tox.ini to run flake8 for the pep8 environment, and fix the
python source files in the repository that need to be updated to pass
the tests.
Change-Id: Ib3a1d252de9a7f78705f200a1bdfe51c6b91af19
Add a script to catch a few common errors in new version numbers to give
the user a chance to avoid them. Set up tox and testr to support tests
for the new script.
Change-Id: I2a48f3de3886821611f370e04c9be13ada67edbf
* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.
Change-Id: I7ddc6e4dfb0e8fbe2885e3b146540580f71ffc3c
Closes-Bug: #1277495
It's a result of partially applied cookiecutter template for OpenStack
projects. We need it to be able to commit new patches.
Change-Id: Ib980b8924921da3b7e2740ecac05ce8d34c43951