Commit Graph

23 Commits

Author SHA1 Message Date
zhouxinyong cf6e9e6ec6 Fixes the several problems/errors caused by tox 3
Change-Id: If56cab52b26e5f00ac5738544bdb213a97af073d
2023-10-11 13:32:20 +08:00
Ghanshyam Mann ace7eda8cd 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: I0fc96a3e9ce4626a9f137c1af02c738330235c43
2022-05-01 13:07:06 -05:00
Elod Illes 008b0d7e83 Disable auto-discovery for setuptools
With setuptools release 61.0.0 sahara-image-elements' package build
command (python3 setup.py sdist bdist_wheel) started to fail:

error: Multiple top-level packages discovered in a flat-layout:
['roles', 'elements', 'playbooks'].

This bug is mentioned in setuptools issue 3197 [1], and the suggested
workaround is to disable auto-discovery by adding 'py_modules=[]' in
setup.py.

To unblock the gate the following needed to be updated as well:
- requirements constraints
- fix lower-constraints job constraints (only the 1st constraints is
  used by pip, which was upper-constraints.txt from install command)

[1] https://github.com/pypa/setuptools/issues/3197

Change-Id: Ib2d3e296e6d405671594dfd630e381ae414a2709
2022-03-28 16:19:31 +02:00
Ghanshyam Mann 1e3f59084b [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

sahara-image-elements is ready with python 3 and ok to drop the
python 2.7 support.

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

Change-Id: I5680fecb667038e3fcededaa89df815c07a913c7
2019-11-17 14:27:07 +00:00
pengyuesheng aaf5ed69e1 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Iebe62db0490c522ee085008b4a9672addad54198
2019-09-29 10:34:10 +08:00
Luigi Toscano 36d2edc24d Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: I97409815d943ade7adce00168066ca6275bfd68a
2019-04-20 13:51:31 +02:00
Kim Bao Long aae9ed8be6 Update the min version of tox to 2.0
The verification comands used by tox need at least 2.0 version. This
patch aims to update tox version from 1.6 to 2.0 which should help with
local running of constraints targets.

Change-Id: I84a53543b50184b4e838cd6e597dfc80ec025588
2018-11-02 08:29:19 +00:00
Nguyen Hung Phuong 2d86783ad2 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: I204e381701c91e59558eee57efac7ae7566acf76
2018-07-11 00:15:08 +00:00
Doug Hellmann af81b26545 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: I00b41e7e3bcd86677084243917a205c703097674
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 18:14:51 -04:00
Luigi Toscano 70fea75661 dib-lint: adapt the value of ELEMENTS_DIR
While previously the elements/ directory was checked, now the path
can be specified as ELEMENTS_DIR, which defaults to
diskimage_builder/elements
and which must then be overridden.

Change-Id: I0caf00adf16a0612c94956d4fce93bd69ff2183f
2017-03-22 18:24:06 +01:00
Tony Breeds 88b00f9df3 Add Constraints support
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox
environments.

Change-Id: I5def7728f9af1c8f76a964ecfc0272f8559e74f4
2016-12-21 13:38:14 +11:00
ChangBo Guo(gcb) bfce834be7 Don't include openstack directory in exclude list for flake8
Directory openstack doesn't exist, so don't need skip it.

Change-Id: I9b360eecf49517dc6feeac91591e7e505d691851
2016-10-01 19:14:37 +08:00
Vitaly Gridnev 8ba8ee67ae ignore safe sudo check
Change-Id: I239d81d6d54b7e2eebf34efb83613b93db68a956
2016-06-10 14:52:49 +03:00
Denis Egorenko fd3bf7053b Pass all current env to tox venv
It will help to manage all variables, that used in sahara-dib script,
by exporting some stuff to script if it's needed.

Change-Id: I4e5eaa4274cdf052fdd9b0e6c322492653a88b41
2016-01-25 19:55:17 +03:00
Ondřej Nový 907aa7d6a8 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: I886027eb07ed92da7564103a27c962c0fb8d1e08
2015-12-11 23:33:54 +01:00
Jenkins d27c93d832 Merge "pass environment variables of proxy to tox" 2015-07-30 15:20:35 +00:00
Sergey Reshetnyak 4fd100a036 Add dib-lint checks for elements
Also dib-lint errors fixed or skipped

Change-Id: I74a386bf7d13203df9e93b6469384648df2ac389
2015-07-06 13:03:12 +03:00
Li, Chen 31be54c64e pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.

This patch fix this problem.

Change-Id: I1e448d9002b1541b9b6dc436c066e1dafd93c5fc
2015-06-24 16:50:07 +08:00
Sergey Reshetnyak 091330418b Make bashate checks as part of pep8 checks
Change-Id: I2b070423eff71be760b737ed1bbf7c18f32aada8
2014-12-07 13:16:46 +03:00
Artem Osadchiy 61823d408c Image Elements for MapR
Change-Id: I87fde2f5d5b430b935c3261d31b86a7b68ac3244
Implements: blueprint mapr-image-elements
2014-11-28 14:57:34 +02:00
Sergey Reshetnyak 006486b55b Add bashate checks to elements
Bashate is pep8 equivalent for bash scripts
Run checks:
  $ tox -e bashate

Change-Id: I3a3b814029613b8c53da4953eaba48d57342a39a
2014-09-30 23:27:35 +04:00
Sergey Lukjanov 39b01c261a Enable hacking checks
Change-Id: I1bb5c28e9f726cf10e8562b738e7708785987461
2013-11-15 13:09:03 +04:00
Sergey Lukjanov 37bf2d5da3 Add simple tox.ini to make gate working
Change-Id: I9f487d504f3bcff8e12783b2e5f46ad551a30b51
2013-10-15 10:50:47 -07:00