Commit Graph

31 Commits

Author SHA1 Message Date
Takashi Kajinami 52eb90c900 Show coverage report
... for easy reference. Also fix the missing coverage library.

Change-Id: I895c1372a17f708a1fb11198fe2f3461f4854f53
2024-02-07 12:33:35 +09:00
niuke 621438396c Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: I306c7c104a4e35e393c9ed9cdf62d8828ec49147
2023-07-31 13:49:44 +08:00
zhangboye bcc9ebf8b7 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Icf1d095143abe1c3f2165f262fb390c5becb535b
2022-06-22 03:03:13 +09:00
Ghanshyam Mann 8f784480a3 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

This also makes the following two changes to fix the broken CI.

- Switch the python3 job template to unversioned one because
  the heat-cfntools project follows an independent release model.
  This effectively removes py36 tests.

- Use upper-constraints.txt to build documentation, to avoid pulling
  the latest Sphinx which includes a breaking change.

Change-Id: I3c41ed7cd54e8c8d3fad05ea7ac86fc35b9fa4d1
2022-06-06 13:45:32 +09:00
maaoyu 5b3dba0c87 Mark support for py38
in 'wallaby' cycle, we should test py38 by default.
Also support tox test on py36 and py38 as that's what
our check job verify on.
ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I349d80cb1b963bdb30e374994f7c18352f918e3b
2020-11-16 13:26:58 +08:00
Andreas Jaeger e3457fcf7d [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

Update boto,pbr minimal requirement for python3 support.

Change-Id: I23c273d0aa57e1400b383357883f298b8288897d
2020-02-04 21:34:29 +01:00
Zuul 1bca92b1c1 Merge "Delete pylint tox environment" 2019-12-04 22:35:11 +00:00
pengyuesheng 9f57a83518 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ib0778872dd3eb55d4455b07d256134b87e336893
2019-09-25 14:10:49 +08:00
Corey Bryant 183eb08c6b 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: I1ba956644bdf7c10bd2b6780e556df4c70bceeab
Story: #2005924
Task: #34209
2019-06-24 10:31:55 -04:00
Zane Bitter 039cc4419d Delete pylint tox environment
Nobody uses pylint, but a lot of people are trying to generate code
churn by 'fixing' trivial issues in lintstack.py. Just delete it.

Change-Id: I3f436f742aff90d6610ad12f4b9bc096c2c18ea0
2018-07-30 23:45:19 +00:00
Ha Manh Dong 97aec93e2b Switch to use stestr for unit test
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
So we should switch to stestr.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I14ae3879465e622f36fd7bba3f04cb6e0cb7500e
2018-07-19 15:30:51 -04:00
huang.zhiping d6f8cda665 Add 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: Ic4a3b28cb670c71fb205640a9a9338bbcf9bc9bf
2018-07-19 15:30:49 -04:00
Zane Bitter bee7811c80 Modernise requirements
Conform to the PTI for docs builds, add lower-constraints jobs, and use
upper-constraints instead of synced global requirements constraints.

Change-Id: Iaf1b54b35d02dbb733c7782b178e4eb774c02ef6
2018-07-18 20:19:40 -04:00
ricolin 341d07e298 Add OpenStack doc support for heat cfntools
This allow build docs with new OpenStack doc format.

Change-Id: I4ed880ee5c03de40793ebdb4662cbaf3eeca12fa
2017-07-21 12:28:14 +08:00
shizhihui f394343153 Drop unused directory in tox
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: I0ee30c36e87970bc1b1175230a1bffa27e0b3e09
2016-08-17 13:22:52 +08:00
Jenkins e101695c6b Merge "Deprecated tox -downloadcache option removed" 2016-01-21 19:26:54 +00:00
reedip 6a834206d9 py26/py33 is no longer supported by Infra's CI
Python 2.6/3.3 support would be dropped by Infra team from mitaka,
CI would no longer be testing it, so projects should drop it too.

Change-Id: I13250170bd04d07b97990ed52a8c7a0c0f7e76c6
Closes-Bug: #1526170
2016-01-06 17:49:33 +09:00
Janonymous 5684248e19 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: Id0d2de40081a59d5819d2e6c52c98135f26808b5
Closes-bug: #1489059
2015-12-22 22:17:45 +05:30
Ondřej Nový c737d480de Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I0a6561c0d667b1310cd544f1b1ec4c019ba16197
2015-12-11 23:03:32 +01:00
THOMAS J. COCOZZELLO 5304f5f7f1 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: Ibb457fc16b64ead1acbf359531ecd79e624df8ab
2015-09-03 16:22:25 -05:00
Miro Hrončok f8796122c5 Python 3 compatibility
* ConfigParser import from six
 * Drop iteritems()
  * To support both Python 2 and 3
 * Encode string before writing it to file
  * To support both Python 2 and 3
 * Use six.string_types
  * To support both Python 2 and 3
 * Use key on Python 3
  * Because cmp is no longer working
 * Add py33 and py34 to tox.ini

Change-Id: I23985be55302cd4ef577919efb51975ecbd9563d
Related-Bug: 1347899
2015-02-21 11:17:53 +01:00
Jeremy Stanley c729b6bf58 Remove tox locale overrides
* 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: I67479804e02fea28a28a446660c32a412b3ba7c4
Closes-Bug: #1277495
2014-02-10 03:00:47 +00:00
Dirk Mueller 87e08b0b4b Add Flake8 checks for bin/cfn-* to Gating
Fix the Pep8/hacking/pyflakes warnings in bin/cfn-*.

Change-Id: Ie21b3909c80d33adc712c2f3c9494d0fdbd90608
2013-06-20 14:45:01 +02:00
Monty Taylor 206650597b Migrate to pbr.
Fixes bug 1179007

Change-Id: Iaa8a2722938d0b25df1041695f3c1c8dbf563b47
2013-05-25 08:37:51 +02:00
Steven Dake 8b813462b7 Rename requires files to standard names
From bug report:
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files and tools in the
general world are growing intelligence about them.

Change-Id: I5d3bad7654e4ce101d19b40215d8c1cc93dd9832
Fixes: Bug #1179008
2013-05-16 09:33:00 -07:00
Monty Taylor a1eeee7f6c Migrate to flake8.
Fixes bug 1172444

Change-Id: I68d5e58f6992f7357e3bb4f72ae40d0ebe076d4b
2013-05-11 14:34:54 -04:00
Steve Baker 54acd090a8 Add tox, pep8, pyflakes, testr support
Also fix the python to comply. This has to be done as a single
change otherwise we'll never bootstrap gating.

Change-Id: I4a21d57e0341802a1652428dee16c60abb30251d
2013-03-07 12:28:29 +13:00
Tomas Sedovic 55bc1cf521 Remone non jeos-related files
To prevent the cfntools commit history, we've forked the Heat repo. That
means there's a lot of files that heat-jeos doesn't need.
2012-06-05 18:06:15 +02:00
Jeff Peeler a83fcc6aa3 Add functional test to verify jeos and stack ops
(Tox.ini has been modified to only run tests tagged with 'unit'
to prevent this test from running with unit tests.)

This test requires an OpenStack install present and will not run on
StackForge. This test creates a JEOS, waits for glance registration,
detects key registered with keystone, creates stack, and verifies over
SSH that:
- cfn helper script SHAs match tree
- verifies presence of wordpress
- verifies expected user data is present in multipart mime file

closes #112

Change-Id: I22a0dfe41986d466ac689c050fc33585e3e6229e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-05-23 16:53:33 -04:00
Monty Taylor 2fc479c684 Align with project standards.
Rebased from: Change-Id: Ifc9fff4f88dfaebe97b7caba4d603d23c645e346

Reviewed-by: Steven Dake <sdake@redhat.com>
2012-05-21 16:48:34 -07:00
Jeff Peeler 1b903f8b70 Add ability to automate testing with tox.
Install tox via easy_install. Tox automates the creation of multiple
virtual environments, each of which can be used with a different
interpreter or specific custom tests (and is what StackForge uses).

Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-05-08 17:39:08 -04:00