Currently doc jobs are broken because the latest sphinx 7.2.0 is not
compatible with the latest release of openstackdocstheme.
This updates the docs/releasenotes target to use the global upper
constraints to avoid that issue.
Change-Id: I075240f47e4de34182a0fc68f92ed62ae84a277a
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Space seperated list for passenv is no longer acceptable in tox4. This
change fixes the formatting of the passenv list as per this new
standard.
Change-Id: Iec6683ef865b74f86eae34f2bb969b8384ccfbca
heat-translator has some additional unittests other than
`translator/tests`, but we cannot run pdb debugger for the tests. It's
because only `translator/tests` is defined in [testenv:debug] section
in `tox.ini`. This update is to list all `tests` dirs in the section.
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Change-Id: I8a181a6936058acb2ad092d514ef0ffc4fd20e52
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Remove hacking and friends from lower-constraints, they are not needed
for installation.
Change-Id: I36cc496d9374169b0eafdf8d66747b07f2b2cabb
Update the minversion parameter to use the python -m pip to install
python packages:
https://tox.readthedocs.io/en/latest/changelog.html#id185
It's recommend to use this. Remove the useless install_command
parameter.
Change-Id: Ie1c6c65ee941509a7cec1472e798090ad00d52d7
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: Id7c3281bf2ecb9808d7042611a66c957eb8f4c79
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
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: Ib54727bef315518ebcb6e5554911f3e76651e4c7
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I2a41e9c75dc58ea9a9b3ddeeee553cc14ee95c9b
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove heat-translator.
Change-Id: I3117119a67315c513fbd689eb23cda22c1af4ae1
Without adding passenv http proxy settings in tox.ini, the unit
tests can not reach the internet and tests can not be executed
behind proxy
Change-Id: I8a723a70c5aba8f21c75f704048d6fe1010756fb
Many deprecations are triggered early (on imports, for example).
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: I39f2ea6d46f353d346ab62e9c1709e51264647b4
The Oslo team has moved all previously incubated code from the
'openstack/oslo-incubator' repository into separate library
repositories and released those libraries to the Python Package,
so the directory should be removed.
Change-Id: I1677d37d3462032556092b848ae76460669b4f02
There is a limit of 127 characters for the python interpreter used in
our testing CI. The depends-on patch renames the job to a shorter name.
This patch updates the tox virtual env definition. Once the depends-on
is merged, this change should fix the job.
Depends-On: I0a44bf05b24a66a76c9dac3f262991c894677ceb
Change-Id: I117b57702e06716d0ba3af1ef974fcff8c15d460
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.
Change-Id: I50d1074815cb6c6f5ba1e3b5060e3fea31d60d65
in an effort to maintain backward compatibility, it was decided
that heat-translator should test against the master branch of
tosca-parser. simply running the py27 job should be sufficient.
create a new tox entry that installs the latest master version
of tosca-parser, we should also add a job that runs this tox
entry.
i used [1] for inspiration.
[1] https://github.com/openstack-infra/project-config/blob/master/jenkins/scripts/run-tox-with-oslo-master.sh
Change-Id: I22c3d9330c92aa4d29d65b4a5405b90e716b5f77
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.
Change-Id: I5c838c6f8e9288372ee83cfb993df4e077e75819
Closes-bug: #1489059
Tests are run against a Python3.4 environment rather than a Python3.3
environment in the gate. So update the classifiers to announce support
for the appropriate version of python.
Change-Id: I44cb01297444ba49397092be1c06f416e2011bc5
PBR provides test and testr entrypoints, the latter of which is not
recommended as its serviced directly by testr. Switch to test in
tox.ini and pass an option to PBR indicating the correct package
name to use when calling coverage. Also update .coveragerc with the
corrected source path, and stop omitting the tests themselves (after
all, tests should cover themselves!).
Change-Id: I04b1a5393979c5d82a794d35189743f688bdfdd8
Running a test with the pdb debugger was difficult because
tox captures output and causes the pdb prompt to quit.
Tips for how to run with debug are provided here:
https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests
This change puts these commands into a debug env in tox.ini so
you can do a command like
tox -e debug
and when it hits your breakpoint you'll get the debug prompt.
Change-Id: I84b2df606db17209706d12f6f6a03e7812210d53
Add .getreview file and add files generated via cookiecutter template.
Also delete some originally added files to have project's initial layout
ready.
Change-Id: I494f52469b5a4aff1c1f12d58bcf41140ad3e680