Skip to content

Commit 5b25c6d

Browse files
authored
Merge pull request #5 from cfhamlet/develop
compat os-config 0.2.2
2 parents f4af0fc + 0cabcf9 commit 5b25c6d

File tree

6 files changed

+33
-23
lines changed

6 files changed

+33
-23
lines changed

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ source = os_m3_engine
77
source =
88
src/os_m3_engine
99
.tox/*/lib/python*/site-packages/os_m3_engine
10+
.tox/*/site-packages/os_m3_engine

.travis.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@ sudo: false
33
matrix:
44
include:
55
- python: 2.7
6-
env: TOXENV=py27
6+
env: TOXENV=py27,codecov
77
- python: 3.6
8-
env: TOXENV=py36
8+
env: TOXENV=py36,codecov
99
- python: pypy
1010
env: TOXENV=pypy
1111
- python: pypy3
1212
env: TOXENV=pypy3
13-
- env: TOXENV=coverage
1413
install:
15-
- pip install -U pip tox codecov
14+
- pip install -U pip tox
1615
script:
1716
- tox
18-
after_success:
19-
- codecov
2017
deploy:
2118
provider: pypi
2219
user: cfhamlet
2320
password:
2421
secure: UyRk0TWj/RARDioa5+o8VlNTojY3hvYT9ILHi7Twnxl3f9EX/9gAuxNr7A5hGfklwQD3TrAd/mS8NyvulJj1xAWEPG4XDfeqlqAjQO8ziZEn6Ozqd/aSyCjVu6WPDluxj4kjxsXebmmDcdtX206FVgdqsG6DoT3ZZ54SeRIsuBCS2A+IlXqj4vpkKwOWhI3CGeygV4GFtOjQIRQbfejPMht1hMv/eFIXdp1fNgXpzA38JwBa40Z3vyHX5QLNLT0ShL3c0D9KRkRbrBG29kcjyUdcOwp1Hb+WUCSw1oar3fEqLabbQtw8zxPD2IDl/teygCmUGC0ldqHM6y6FeF38UPsdcXiOwyh6BjQ6ezba8vw68Moe5sacoROBkApn0JqSKsFKSqKAatQEyfgHEvjWpJklQZXC7ikq4yd5TsGoZq0DHbPFot35zFYWFKDaq92k+I/rEPoly87gfQVa6OXI7IsCzo/WvTNwA9H9xd/guu3re/yOCLoc/5NTJZZotPdRuJaMwWNNY8Y9h03vvG0uxEMw1Sp4drmclkJvFZ41F8iGzrY1Yh2lZ4kSiQ5Zuy4Iij7fLkb7es44lcUIbnNPakn0tgDYw3utGeKi08fmvuvsK91SD8d8jIdZjPnS3W3CdZ0Bi1yTnblK6Z4GQOT4mSx9vzYH05X2rGXM6TkFHV8=
2522
true:
2623
tags: true
27-
condition: ${TOXENV} == py27
24+
condition: ${TRAVIS_PYTHON_VERSION} == 2.7

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
six
2-
os-config>0.1
2+
os-config>=0.2.2

src/os_m3_engine/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.1
1+
0.1.2

src/os_m3_engine/launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
)
2222

2323
ENGINE_TRANSPORT_BRIDGE_CONFIG = Config.create()
24-
ENGINE_TRANSPORT_BRIDGE_CONFIG.update(ENGINE_TRANSPORT_CONFIG)
24+
Config.update(ENGINE_TRANSPORT_BRIDGE_CONFIG, ENGINE_TRANSPORT_CONFIG)
2525
ENGINE_TRANSPORT_BRIDGE_CONFIG.driver_cls = 'os_m3_engine.core.transport.BridgeDriver'
2626

2727
ENGINE_BACKEND_CONFIG = Config.create(
@@ -48,7 +48,7 @@ def _queue_size(custorm_config, default_config, thread_num):
4848

4949
def combine_with_default_config(default_config, custom_config):
5050
c = Config.create()
51-
c.update(default_config)
51+
Config.update(c, default_config)
5252
if custom_config is not None:
5353
for k, _ in default_config:
5454
if hasattr(custom_config, k):

tox.ini

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,33 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py36, pypy, pypy3, coverage
7+
envlist = py{27,36,py,py3}, coverage-report
88

9-
[testenv]
10-
commands =
11-
pytest {posargs}
9+
[base]
1210
deps =
13-
pytest >= 2.10
11+
pytest > 2.10
12+
coverage
13+
pytest-env
1414

15-
[testenv:coverage]
15+
[testenv]
1616
commands =
17-
coverage erase
18-
coverage run -m pytest {posargs}
17+
coverage run -m pytest {posargs:}
18+
deps =
19+
{[base]deps}
20+
21+
[testenv:coverage-report]
22+
deps = coverage
23+
skip_install = true
24+
commands =
1925
coverage combine
2026
coverage report
21-
deps =
22-
coverage
23-
pytest >= 2.10
24-
pytest-env
27+
28+
[testenv:codecov]
29+
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
30+
deps = codecov
31+
skip_install = true
32+
commands =
33+
coverage combine
34+
coverage report
35+
codecov
36+

0 commit comments

Comments
 (0)