Fix genconfig
Currently tox -e genconfig fails with stevedore issues, because tox is not doing sdist. Closes-Bug: #2051575 Change-Id: Idfc26fe380a546d0fd712a531e5913090b01d808
This commit is contained in:
@@ -8,3 +8,9 @@
|
|||||||
- publish-openstack-docs-pti
|
- publish-openstack-docs-pti
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
- periodic-stable-jobs
|
- periodic-stable-jobs
|
||||||
|
check:
|
||||||
|
jobs:
|
||||||
|
- kolla-tox-genconfig
|
||||||
|
gate:
|
||||||
|
jobs:
|
||||||
|
- kolla-tox-genconfig
|
||||||
|
|||||||
12
.zuul.d/tox.yaml
Normal file
12
.zuul.d/tox.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
- job:
|
||||||
|
name: kolla-tox-genconfig
|
||||||
|
parent: openstack-tox
|
||||||
|
timeout: 2400
|
||||||
|
description: |
|
||||||
|
|
||||||
|
Run genconfig
|
||||||
|
|
||||||
|
Uses tox with the ``genconfig`` environment.
|
||||||
|
vars:
|
||||||
|
tox_envlist: genconfig
|
||||||
@@ -302,20 +302,29 @@ _BASE_OPTS = [
|
|||||||
|
|
||||||
def get_source_opts(type_=None, location=None, reference=None, enabled=True,
|
def get_source_opts(type_=None, location=None, reference=None, enabled=True,
|
||||||
version=None, sha256=None):
|
version=None, sha256=None):
|
||||||
return [cfg.StrOpt('type', choices=['local', 'git', 'url'],
|
return [cfg.StrOpt('type',
|
||||||
|
choices=['local', 'git', 'url'],
|
||||||
default=type_,
|
default=type_,
|
||||||
help='Source location type'),
|
help='Source location type'),
|
||||||
cfg.StrOpt('location', default=location,
|
cfg.StrOpt('location',
|
||||||
|
default=location,
|
||||||
help='The location for source install'),
|
help='The location for source install'),
|
||||||
cfg.StrOpt('reference', default=reference,
|
cfg.StrOpt('reference',
|
||||||
|
default=reference,
|
||||||
help=('Git reference to pull, commit sha, tag '
|
help=('Git reference to pull, commit sha, tag '
|
||||||
'or branch name')),
|
'or branch name')),
|
||||||
cfg.BoolOpt('enabled', default=enabled,
|
cfg.BoolOpt('enabled',
|
||||||
|
default=enabled,
|
||||||
help=('Whether the source is enabled')),
|
help=('Whether the source is enabled')),
|
||||||
cfg.StrOpt('version', default=version,
|
cfg.StrOpt('version',
|
||||||
|
default=version,
|
||||||
help=('Package version to download for GitHub '
|
help=('Package version to download for GitHub '
|
||||||
'sources')),
|
'sources')),
|
||||||
cfg.DictOpt('sha256', default=sha256)]
|
cfg.DictOpt('sha256',
|
||||||
|
default=sha256,
|
||||||
|
help=('Dictionary of sha256 sums for GitHub '
|
||||||
|
'sources')),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def get_user_opts(uid, gid, group):
|
def get_user_opts(uid, gid, group):
|
||||||
|
|||||||
3
tox.ini
3
tox.ini
@@ -1,12 +1,11 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.18
|
minversion = 3.18
|
||||||
skipsdist = True
|
|
||||||
envlist = pep8,py310-{docker,podman}
|
envlist = pep8,py310-{docker,podman}
|
||||||
ignore_basepython_conflict = True
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
usedevelop=True
|
usedevelop = True
|
||||||
allowlist_externals = find
|
allowlist_externals = find
|
||||||
rm
|
rm
|
||||||
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
|||||||
Reference in New Issue
Block a user