##// END OF EJS Templates
bump requirements
ergo -
Show More
@@ -1,43 +1,42 b''
1 repoze.sendmail==4.1
1 repoze.sendmail==4.4.1
2 pyramid==1.10.2
2 pyramid==1.10.2
3 pyramid_tm==0.12
3 pyramid_tm==2.2.1
4 pyramid_debugtoolbar
4 pyramid_debugtoolbar
5 pyramid_authstack==1.0.1
5 pyramid_authstack==1.0.1
6 SQLAlchemy==1.0.12
6 SQLAlchemy==1.2.18
7 alembic==1.0.8
7 alembic==1.0.8
8 webhelpers2==2.0
8 webhelpers2==2.0
9 transaction==1.4.3
9 transaction==2.4.0
10 zope.sqlalchemy==0.7.6
10 zope.sqlalchemy==1.1
11 pyramid_mailer==0.14.1
11 pyramid_mailer==0.15.1
12 redis==2.10.5
12 redis==3.2.1
13 redlock-py==1.0.8
13 redlock-py==1.0.8
14 pyramid_jinja2==2.6.2
14 pyramid_jinja2==2.8
15 psycopg2==2.7.7
15 psycopg2-binary==2.7.7
16 wtforms==2.1
16 wtforms==2.2.1
17 celery==3.1.23
17 celery==4.2.1
18 formencode==1.3.0
18 formencode==1.3.1
19 psutil==2.1.2
19 psutil==5.6.1
20 ziggurat_foundations==0.8.3
20 ziggurat_foundations==0.8.3
21 bcrypt==3.1.6
21 bcrypt==3.1.6
22 appenlight_client
22 appenlight_client
23 markdown==2.5
23 markdown==3.0.1
24 colander==1.7
24 colander==1.7
25 defusedxml==0.5.0
25 defusedxml==0.5.0
26 dogpile.cache==0.5.7
26 dogpile.cache==0.7.1
27 pyramid_redis_sessions==1.0.1
27 pyramid_redis_sessions==1.0.1
28 simplejson==3.8.2
28 simplejson==3.16.0
29 waitress==1.0
29 waitress==1.2.1
30 gunicorn==19.9.0
30 gunicorn==19.9.0
31 requests==2.20.0
31 uwsgi==2.0.18
32 requests_oauthlib==0.6.1
32 requests==2.21.0
33 gevent==1.1.1
33 requests_oauthlib==1.2.0
34 gevent-websocket==0.9.5
34 gevent==1.4.0
35 pygments==2.1.3
35 pygments==2.3.1
36 lxml==4.3.2
36 lxml==4.3.2
37 paginate==0.5.4
37 paginate==0.5.6
38 paginate-sqlalchemy==0.2.0
38 paginate-sqlalchemy==0.3.0
39 elasticsearch>=2.0.0,<3.0.0
39 elasticsearch>=2.0.0,<3.0.0
40 six>=1.10.0
41 mock==1.0.1
40 mock==1.0.1
42 itsdangerous==1.1.0
41 itsdangerous==1.1.0
43 camplight==0.9.6
42 camplight==0.9.6
@@ -45,5 +44,4 b' jira==1.0.7'
45 python-dateutil==2.5.3
44 python-dateutil==2.5.3
46 authomatic==0.1.0.post1
45 authomatic==0.1.0.post1
47 cryptography==2.6.1
46 cryptography==2.6.1
48 webassets==0.11.1
49
47
@@ -57,7 +57,7 b' def on_preload_parsed(options, **kwargs):'
57 if not ini_location:
57 if not ini_location:
58 raise Exception('You need to pass pyramid ini location using '
58 raise Exception('You need to pass pyramid ini location using '
59 '--ini=filename.ini argument to the worker')
59 '--ini=filename.ini argument to the worker')
60 env = bootstrap(ini_location)
60 env = bootstrap(ini_location[0])
61 api_key = env['request'].registry.settings['appenlight.api_key']
61 api_key = env['request'].registry.settings['appenlight.api_key']
62 tr_config = env['request'].registry.settings.get(
62 tr_config = env['request'].registry.settings.get(
63 'appenlight.transport_config')
63 'appenlight.transport_config')
@@ -18,7 +18,8 b' import copy'
18 import hashlib
18 import hashlib
19 import inspect
19 import inspect
20
20
21 from dogpile.cache import make_region, compat
21 from dogpile.cache import make_region
22 from dogpile.cache.util import compat
22
23
23 regions = None
24 regions = None
24
25
@@ -16,7 +16,7 b''
16
16
17 import sqlalchemy as sa
17 import sqlalchemy as sa
18 from ziggurat_foundations.models.base import BaseModel
18 from ziggurat_foundations.models.base import BaseModel
19 from sqlalchemy.dialects.postgres import JSON
19 from sqlalchemy.dialects.postgresql import JSON
20
20
21 from . import Base
21 from . import Base
22
22
@@ -16,7 +16,7 b''
16
16
17 import sqlalchemy as sa
17 import sqlalchemy as sa
18 from ziggurat_foundations.models.base import BaseModel
18 from ziggurat_foundations.models.base import BaseModel
19 from sqlalchemy.dialects.postgres import JSON
19 from sqlalchemy.dialects.postgresql import JSON
20
20
21 from . import Base
21 from . import Base
22
22
@@ -84,7 +84,7 b' class ReportGroup(Base, BaseModel):'
84 'assigned_reports_relation',
84 'assigned_reports_relation',
85 lazy='dynamic',
85 lazy='dynamic',
86 order_by=sa.desc(
86 order_by=sa.desc(
87 "reports_groups.id")
87 sa.text("reports_groups.id"))
88 ),
88 ),
89 passive_deletes=True,
89 passive_deletes=True,
90 passive_updates=True,
90 passive_updates=True,
@@ -17,7 +17,7 b''
17 import sqlalchemy as sa
17 import sqlalchemy as sa
18 from datetime import datetime
18 from datetime import datetime
19 from ziggurat_foundations.models.base import BaseModel
19 from ziggurat_foundations.models.base import BaseModel
20 from sqlalchemy.dialects.postgres import JSON
20 from sqlalchemy.dialects.postgresql import JSON
21
21
22 from . import Base
22 from . import Base
23
23
@@ -130,14 +130,13 b' def system(request):'
130 min_mem = 1024 * 1024 * 40 # 40MB
130 min_mem = 1024 * 1024 * 40 # 40MB
131 process_info = []
131 process_info = []
132 for p in psutil.process_iter():
132 for p in psutil.process_iter():
133 mem_used = p.get_memory_info().rss
133 mem_used = p.memory_info().rss
134 if mem_used < min_mem:
134 if mem_used < min_mem:
135 continue
135 continue
136 process_info.append({'owner': p.username(),
136 process_info.append({'owner': p.username(),
137 'pid': p.pid,
137 'pid': p.pid,
138 'cpu': round(p.get_cpu_percent(interval=0), 1),
138 'cpu': round(p.cpu_percent(interval=0), 1),
139 'mem_percentage': round(p.get_memory_percent(),
139 'mem_percentage': round(p.memory_percent(),1),
140 1),
141 'mem_usage': bytes2human(mem_used),
140 'mem_usage': bytes2human(mem_used),
142 'name': p.name(),
141 'name': p.name(),
143 'command': ' '.join(p.cmdline())
142 'command': ' '.join(p.cmdline())
@@ -17,7 +17,6 b''
17 import copy
17 import copy
18 import json
18 import json
19 import logging
19 import logging
20 import six
21
20
22 from datetime import datetime, timedelta
21 from datetime import datetime, timedelta
23
22
@@ -20,7 +20,6 b' import datetime'
20 import time
20 import time
21 import random
21 import random
22 import redis
22 import redis
23 import six
24 import pyramid.renderers
23 import pyramid.renderers
25 import requests
24 import requests
26
25
General Comments 0
You need to be logged in to leave comments. Login now