This configuration makes it easier to work on changes to the tools.
Change-Id: Ic4afe2a811d6eb2163a2590a865b0f56d1474eb8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Set up commands to run to execute new unit tests.
Ignore output from testr and coverage.
Rename the dist to match the package name so that the testr/coverage
integration works properly.
Add test-requirements.txt with some common testing dependencies.
Change-Id: Ic6f34df893f3981a9af6122456b9feb9c80b31dd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
There is no this directory openstack/common which was used to keep codes from
oslo-incubator, we have retired oslo-incubator. Removing openstack/commonfrom
all OpenStack code in favor of the Oslo libraries is a project wide goal
for the Ocata release. So don't use this directory any more. We should drop it
for improving searching efficiency.
Change-Id: I38429dd29767afdbf395cbb3777879636ea0ad55
A new update of yamllint introduced new rules that we're failing. Treat
this linter like we do others and pin it, so we can update it and fix
any issues from the new version at the same time.
Change-Id: I51800955a5d25b52910e9a6a9de8578be8519028
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
When running commands using "tox -e venv -- $name" while working on the
missing-releases command, I noticed that changes to the program were not
being installed into the tox environment as I made them and re-ran
tox. These changes fix that issue by having tox always re-install.
Change-Id: Iea132f5fecfc47a0cd4bbb3c7777568da841bf53
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: Ib29d02d5ea751f09df26030dcfb9e153ba82661b
The pbr feature for invoking sphinx doesn't let us treat warnings as
errors because of a bug in pbr. Switch to invoking sphinx directly,
including removing the setup.cfg instructions for sphinx, so we can use
the flag to treat warnings as errors. Doing this also requires fixing a
few existing warnings, so those changes are included in this patch.
Change-Id: I2aa0d844855d5a18646d0bc3907620544ae71be2
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
allow longer lines in yaml data files
replace tab with spaces in front of yamllint command in tox.ini
Change-Id: I5da057c4acee79159a3246be7b9bceeb73a52ed6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Let the validation and list-changes code use the zuul cache directory,
if ZUUL_CACHE_DIR is set or if /opt/git is present (the default for the
CI systems).
Change-Id: Ia6cf24d1361c1112c37e5aeec05546b19798bbbd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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
We need to work with both older and newer tox versions, so let's remove
the comment at the end of the line
Change-Id: Id5ec8aeb700fcf9a63888e41e408d26b6e3e8481
launchpadlib 0.0.1.dev533 requires lazr.restfulclient, which contains
python2-only syntax (at least as of lazr.restfulclient 0.13.1). On a
system where "tox" uses python3 (eg: Debian "stretch"), the default
basepython will be python3, and venv creation (pip building wheels) will
fail on lazr.restfulclient.
This patch forces basepython=python2.7 across all testenvs.
Change-Id: I44f4c6f819550a8a586ae19bbed45fc9b67dd1c0
Our "docs" environment had the right dependencies to build the
documentation, but the CI system runs the command inside the "venv"
environment.
Change-Id: I3825c363a5f25d5a241e2252a1115ed55b6fdd79
The merge commits created by zuul do not always list all of the files
being modified, so use git diff instead of git show.
Also force python to use unbuffered I/O so the output comes out in a
useful order instead of mixed up with the subprocess commands.
Change-Id: I5e0e4602e463c05e488537192be8ba59c08644dc
Move some of the validation code into a real python package so we can
more easily reuse it.
Make the validation script reprint all errors, for cases where it has
checked a lot of files and the original messages might have been mixed
in with other output.
Fix the launchpad project name for tooz so the validation script will
pass.
Change-Id: I17534d460dd9ed19d10e48a0ef5d28dac3ab0fe7
There is no need to run the py27 environment, since there are no tests.
Add the validate environment, since that's the one we mostly care about.
Change-Id: I9170ff8ee21af9dbff0a46cd458e3d9118242a4f
Add a basic validation tool to check the input values against the
current state of the repository.
Change-Id: I570c7028e4dc469a670ff933fdfe6bde3095d0ac
Add deliverable files for existing releases, including the script used
to generate them from launchpad and git data. This data is known to be
incomplete, and is meant as a starting point for reconstructing the full
history.
The output from running the script [1] shows that many projects we
expected to treat as deliverables do not yet have a launchpad page.
[1] http://paste.openstack.org/show/336176
Change-Id: I1a64c8b6b99ec575c00c1ebad93a5f6dc70c9718