Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 6a580a2

Browse files
author
Olivier Gambier
committed
Amending previous commits
- don't source NEW_RELIC_INI multiple times - better variable name for new relic ini ref - learn to stop worrying about dev dependencies - trailing coma in extras section of setup to avoid changing multiple lines when adding a new one Docker-DCO-1.1-Signed-off-by: Olivier Gambier <[email protected]> (github: dmp42)
1 parent 84c26f1 commit 6a580a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docker_registry/wsgi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from .server import env
55
import logging
66

7-
newini = env.source('NEW_RELIC_INI')
8-
if newini:
7+
_new_relic_ini = env.source('NEW_RELIC_INI')
8+
if _new_relic_ini:
99
try:
1010
import newrelic.agent
1111
newrelic.agent.initialize(
12-
env.source('NEW_RELIC_INI'),
12+
_new_relic_ini,
1313
env.source('NEW_RELIC_STAGE'))
1414
except Exception as e:
1515
raise(Exception('Failed to init new relic agent %s' % e))

requirements/test.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
nose>=1.3,<1.4
2-
coverage>=3.7,<3.8
3-
mock>=1.0,<1.1
1+
nose>=1.3,<2.0
2+
coverage>=3.7,<4.0
3+
mock>=1.0,<2.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@
8080
tests_require=open('./requirements/test.txt').read(),
8181
extras_require={
8282
'bugsnag': ['bugsnag>=2.0,<2.1'],
83-
'newrelic': ['newrelic>=2.22,<2.23']
83+
'newrelic': ['newrelic>=2.22,<2.23'],
8484
}
8585
)

0 commit comments

Comments
 (0)