Skip to content

Commit

Permalink
Merge 4bdf6e6 into d295189
Browse files Browse the repository at this point in the history
  • Loading branch information
Djailla committed Nov 18, 2019
2 parents d295189 + 4bdf6e6 commit b85d21a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -2,10 +2,12 @@ language: python

matrix:
include:
- python: '3.5'
- python: 3.5
env: TOXENV=py35-coverage
- python: '3.6'
- python: 3.6
env: TOXENV=py36-coverage
- python: 3.7
env: TOXENV=py37-coverage

install:
- pip install tox coveralls
Expand Down
5 changes: 2 additions & 3 deletions gourde/gourde.py
Expand Up @@ -310,7 +310,6 @@ def run_with_gunicorn(self, **options):
"""Run with gunicorn."""
import gunicorn.app.base
import multiprocessing
from six import iteritems

class GourdeApplication(gunicorn.app.base.BaseApplication):

Expand All @@ -320,9 +319,9 @@ def __init__(self, app, options=None):
super(GourdeApplication, self).__init__()

def load_config(self):
config = dict([(key, value) for key, value in iteritems(self.options)
config = dict([(key, value) for key, value in self.options.items()
if key in self.cfg.settings and value is not None])
for key, value in iteritems(config):
for key, value in config.items():
self.cfg.set(key.lower(), value)

def load(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
@@ -1,7 +1,6 @@
Flask
prometheus_client
prometheus-flask-exporter
six

# For exception handling.
blinker
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -65,7 +65,6 @@ def _read_reqs(relpath):
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37}-coverage,pylama
envlist = py{35,36,37}-coverage,pylama

[testenv]
commands =
Expand Down

0 comments on commit b85d21a

Please sign in to comment.