Commit Graph

38 Commits

Author SHA1 Message Date
Yasufumi Ogawa bb139587b2 Use upper-constraint in doc generation
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>
2023-08-25 16:51:36 +09:00
Brendan Shephard 2becf4b0f1 Fix passenv for tox4
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
2023-02-20 11:48:17 +09:00
Ghanshyam Mann c51a506f57 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I62d60bf7419decc35193ce1aa9a652a3c8bbf80d
2022-08-26 17:14:56 +09:00
Yasufumi Ogawa da9f163a31 Activate debugging in all unittests
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
2022-03-16 02:53:48 +00:00
Manpreet Kaur 91c4415c42 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is an old and deprecated name, refer [1].

This allows to use lower-constraints file as more readable way instead
of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ib4dd97f427a0c364e2679c229bda9df6c3155d48
2021-01-29 00:11:32 +05:30
Sean McGinnis 1823e8595d
Switch to wallaby job template
Run the expected wallaby jobs in gate.

Change-Id: I2496c1e95d36acbce60679f5e7224a92ed60a7ce
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-09-21 13:06:59 -05:00
Andreas Jaeger 98e848606f Update hacking for Python3
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
2020-04-07 17:35:28 +02:00
Daniel Bengtsson b57e27bd61 Update the minversion parameter.
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
2020-02-18 10:51:10 +01:00
Andreas Jaeger 2ceec3b348 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

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

Increase requests lower requirement since oslo.config needs 2.18.0.
Fix idna lower-constraint to satisfy requests.

Change-Id: I753e09613b50e099060e2c85eb80d06d8b257858
2020-02-04 21:02:09 +01:00
Hiroyuki JO 85e2ad02e5 Fix broken URL of upper-contraints.tx in tox.ini
Current URL returns 404 and fix it to correct URL announced in below:
http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I0e940e81d319a8d45fecb391e6e5a37fd9387bf6
2019-07-11 09:35:38 +09:00
Corey Bryant b36f9515e9 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: Ie315b64a5c6a8e09fc428a2524ffe037b5fcebeb
Story: #2005924
Task: #34209
2019-06-24 10:33:21 -04:00
zhulingjie fa9f02d23a Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I55cf04680ac0c03eaf5dd66d3a2d7d5577220391
2019-04-23 16:59:45 +08:00
Ghanshyam Mann 8d98b55db0 Dropping the 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: I0456cb168b263bf4b1520bf56f5a1016b5b2b392
2019-04-14 22:05:10 +00:00
Bob.Haddleton b5ef6402ce Add py36 to tox.ini and setup.cfg
Change-Id: I966f5dcf35d959e9e5bdf586a27a370ffdcef200
2018-11-14 06:30:33 -06:00
Doug Hellmann 74f6c5bbef 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: Id7c3281bf2ecb9808d7042611a66c957eb8f4c79
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Nguyen Hai 17aedacea5 Follow the new PTI for document build
Reference:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128594.html

Change-Id: I32256af5d8530435321e84f5dd19d8a9ce57840a
2018-05-30 15:02:54 +09:00
Doug Hellmann 783848b6ef add lower-constraints job
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>
2018-03-22 13:21:44 -04:00
Andreas Jaeger ed0f34e6c4 Avoid tox_install.sh for constraints support
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
2017-12-02 17:05:32 +00:00
Tony Breeds 9c7323445a Add Constraints support
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
2016-12-21 11:09:32 +11:00
sahdev zala 829de847c6 Add passenv to use with tox to forward http proxy settings
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
2016-11-13 19:16:21 -05:00
shizhihui d1a4dda8e6 Enable DeprecationWarning in test environments
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
2016-10-24 10:55:06 +08:00
shizhihui 221a514798 Remove H803 of flake8 ignore list in tox
In hacking >=0.10.0,there is not H803,we should remove it.
For more information:
https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I1d873821f55d8677e834296848e1c0facb51e2ae
2016-09-29 10:50:45 +08:00
shizhihui e02c9c5326 Drop *openstack/common* in flake8 exclude list
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
2016-09-23 10:03:27 +08:00
Steve Martinelli 99000c224e fix the tosca-parser job
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
2016-08-11 07:12:45 +00:00
PanFengyun 02a2f0a693 Add Python 3.5 classifier and venv
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
2016-07-14 20:48:22 +08:00
Jenkins b75c03bd20 Merge "Remove incorrect envlist entry" 2016-05-30 20:01:59 +00:00
Steve Martinelli 1147c9721d add quotes around editable requirement
quotes are needed around the repo link otherwise it will not
install, thinking the package was not specified:

  pip install -q -U -e git+https://git.openstack.org/openstack/tosca-parser.git
  --editable=git+https://git.openstack.org/openstack/tosca-parser.git
  is not the right format; it must have #egg=Package

Co-Authored-By: Sahdev Zala <spzala@us.ibm.com>

Change-Id: Ib26f388823a95a870027a9e0ab127c8d760e2ad6
2016-05-26 20:33:25 -07:00
Sahdev Zala dfb984508a Fix tox and update entry to reflect full name
Closes-Bug: 1583836

Change-Id: I553180ff317936e1d06162c9d09a26e14caaff63
2016-05-23 07:21:39 -07:00
Sahdev Zala a4d0e04e14 Remove incorrect envlist entry
envlist has pypy which is not needed.

Change-Id: I340cd34251f080db66ec76dbca8e9c53d13b6225
2016-05-19 14:39:37 -07:00
Steve Martinelli 9920188cfb test heat-translator with master branch of tosca-parser
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
2016-05-18 19:37:50 +00:00
Janonymous 4ecee19a8a Put py34 first in the env order of tox
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
2015-12-22 18:22:03 +05:30
Sirushti Murugesan c33db34a28 Update trove classifier
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
2015-10-01 02:00:38 +05:30
Oleksii Chuprykov 5c404ca97e Remove py26 env
Change-Id: I1afcc041575ab65824a0eb8844727c6091397cf7
Closes-Bug: #1476117
2015-07-20 10:00:08 +03:00
Jeremy Stanley 3562f7cc2e Fix coverage so that it works for this repo
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
2015-04-07 18:35:46 +00:00
Brad Topol 4e39b5729f Add a debug env for tox
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
2014-12-19 16:24:35 -06:00
Jeremy Stanley 72474adf4f Work toward Python 3.4 support and testing
Change-Id: I651a6bc2b24a0558bbe1a1a26a62b18fccdd2230
2014-09-03 19:06:57 +00:00
Steve Martinelli c65d3551e7 add docs job to tox.ini
Create a job so you can build documentation locally

Change-Id: Ie86f3463acd95dc2b8acc0849193cc2157991996
2014-08-28 11:29:32 -04:00
Sahdev Zala d4d826ef96 Add .gitreview file and apply cookiecutter template.
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
2014-04-01 09:43:50 -05:00