Merge ~rgildein/juju-verify:release/fix-direct-references into ~canonical-solutions-engineering/juju-verify:master

Proposed by Robert Gildein
Status: Merged
Approved by: Alvaro Uria
Approved revision: 216019be1d56998f94755a53ace64d7b7c3bedf2
Merged at revision: c7e89118339ea08f0a8024a520f76a6d66740c2e
Proposed branch: ~rgildein/juju-verify:release/fix-direct-references
Merge into: ~canonical-solutions-engineering/juju-verify:master
Diff against target: 82 lines (+17/-18)
2 files modified
setup.cfg (+3/-2)
tox.ini (+14/-16)
Reviewer Review Type Date Requested Status
Alvaro Uria (community) Approve
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
Canonical Solutions Engineering Team Pending
Review via email: mp+403554@code.launchpad.net

Commit message

fix Pypi release

The zaza and zaza-openstack was moved to tox.ini, due to the fact that
Pypi no longer supports direct dependency.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alvaro Uria (aluria) wrote :

Added a few comments inline.

Revision history for this message
Robert Gildein (rgildein) :
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alvaro Uria (aluria) wrote :

Change looks good. However, this one is interesting: pylint for the tests/ folder fails on my laptop (not in the CI env, apparently):
************* Module tests
tests/__init__.py:1:0: F0010: error while code parsing: Unable to load file tests/__init__.py:
[Errno 2] No such file or directory: 'tests/__init__.py' (parse-error)

By disabling the error in tox.ini, no other issues were seen:
"""
- pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801
+ pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801,F0010
"""

Revision history for this message
Robert Gildein (rgildein) wrote :

I wonder what version of python you are using? I'll add this error to disable.

> Change looks good. However, this one is interesting: pylint for the tests/
> folder fails on my laptop (not in the CI env, apparently):
> ************* Module tests
> tests/__init__.py:1:0: F0010: error while code parsing: Unable to load file
> tests/__init__.py:
> [Errno 2] No such file or directory: 'tests/__init__.py' (parse-error)
>
> By disabling the error in tox.ini, no other issues were seen:
> """
> - pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801
> + pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801,F0010
> """

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alvaro Uria (aluria) :
review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision c7e89118339ea08f0a8024a520f76a6d66740c2e

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/setup.cfg b/setup.cfg
2index b117068..4a2f0a2 100644
3--- a/setup.cfg
4+++ b/setup.cfg
5@@ -43,8 +43,9 @@ dev =
6 mypy
7 tox >= 3.15.0
8 python-openstackclient
9- zaza @ git+https://github.com/openstack-charmers/zaza.git#egg=zaza
10- zaza-openstack @ git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
11+# NOTE (rgildein): The zaza and zaza-openstack packages were moved to tox.ini, due to
12+# the fact that Pypi no longer supports direct dependency.
13+# https://github.com/pypa/warehouse/issues/7136
14
15 verify =
16 twine
17diff --git a/tox.ini b/tox.ini
18index 1138ca2..d105f10 100644
19--- a/tox.ini
20+++ b/tox.ini
21@@ -2,20 +2,23 @@
22 skipsdist=True
23 envlist = lint, unit
24 requires =
25- pip >= 20.3
26+ pip >= 20.3
27
28 [testenv]
29 setenv =
30- PYTHONPATH={toxinidir}:{toxinidir}/tests/functional
31+ PYTHONPATH={toxinidir}:{toxinidir}/tests/functional
32 passenv =
33- HOME
34- PATH
35- MODEL_SETTINGS
36- HTTP_PROXY
37- HTTPS_PROXY
38- NO_PROXY
39- OS_*
40-deps = .[dev]
41+ HOME
42+ PATH
43+ MODEL_SETTINGS
44+ HTTP_PROXY
45+ HTTPS_PROXY
46+ NO_PROXY
47+ OS_*
48+deps =
49+ .[dev]
50+ {lint,func,func-debug}: zaza @ git+https://github.com/openstack-charmers/zaza.git#egg=zaza
51+ {lint,func,func-debug}: zaza-openstack @ git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
52 commands = pytest -v \
53 --cov=juju_verify \
54 --cov-fail-under 100 \
55@@ -29,12 +32,11 @@ basepython = python3
56
57 [testenv:lint]
58 basepython = python3
59-deps = .[dev]
60 commands =
61 flake8 {toxinidir}/juju_verify/ {toxinidir}/tests/
62 mypy {toxinidir}/juju_verify/
63 pylint {toxinidir}/juju_verify/
64- pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801
65+ pylint {toxinidir}/tests/ --disable=E1101,R0913,R0914,W0212,R0801,F0010
66
67 [testenv:build]
68 basepython = python3
69@@ -73,13 +75,9 @@ basepython = python3
70 changedir = {toxinidir}/tests/functional
71 commands =
72 functest-run-suite {posargs}
73-deps =
74- .[dev]
75
76 [testenv:func-debug]
77 basepython = python3
78 changedir = {toxinidir}/tests/functional
79 commands =
80 functest-run-suite {posargs} --keep-model --log DEBUG
81-deps =
82- .[dev]

Subscribers

People subscribed via source and target branches