Skip to content

Commit 0e62a59

Browse files
committed
Merge branch 'release/0.12.0'
2 parents d35fbdc + 47340a1 commit 0e62a59

9 files changed

Lines changed: 221 additions & 188 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ virtualenv:
1111
system_site_packages: true
1212
before_install:
1313
- travis/install_sge.sh
14-
- export GRID_MAP_REDIS_PORT=12345
1514
- export SGE_ROOT=/var/lib/gridengine
1615
- export SGE_CELL=default
1716
- export DRMAA_LIBRARY_PATH=/usr/lib/libdrmaa.so.1.0
17+
- export SEND_ERROR_MAIL=False
1818
- sudo mkdir /scratch/
1919
- sudo chmod 777 /scratch/
20+
# Work around for multiprocessing permission bug with Travis
21+
- sudo rm -rf /dev/shm
22+
- sudo ln -s /run/shm /dev/shm
2023
install:
2124
- pip install -r requirements.txt --use-mirrors
2225
- pip install python-coveralls --use-mirrors
@@ -25,7 +28,7 @@ install:
2528

2629
# Run test
2730
script:
28-
- nosetests -d -v --with-cov --cov gridmap --cov-config .coveragerc --logging-level=DEBUG
31+
- nosetests -x -d -v --with-cov --cov gridmap --cov-config .coveragerc --logging-level=DEBUG
2932

3033
# Calculate coverage
3134
after_success:

docs/gridmap.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ From :py:mod:`~gridmap.job` Module
4242
:show-inheritance:
4343

4444

45-
:mod:`runner` Module
46-
--------------------
47-
48-
.. automodule:: gridmap.runner
49-
:members:
50-
:undoc-members:
51-
:show-inheritance:
52-
53-
5445
:mod:`web` Module
5546
-----------------
5647

gridmap/__init__.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
(Default: ``all.q``)
3434
:var CREATE_PLOTS: Should we plot cpu and mem usage and send via email?
3535
(Default: ``True``)
36-
:var SEND_ERROR_MAILS: Should we send error emails?
37-
(Default: ``True``)
36+
:var SEND_ERROR_MAIL: Should we send error emails?
37+
(Default: ``True``)
3838
:var SMTP_SERVER: SMTP server for sending error emails.
3939
(Default: last three sections of the current machine's fully
4040
qualified domain name)
@@ -70,15 +70,14 @@
7070
ERROR_MAIL_RECIPIENT, ERROR_MAIL_SENDER,
7171
HEARTBEAT_FREQUENCY, IDLE_THRESHOLD,
7272
MAX_IDLE_HEARTBEATS, MAX_TIME_BETWEEN_HEARTBEATS,
73-
NUM_RESUBMITS, SEND_ERROR_MAILS, SMTP_SERVER,
73+
NUM_RESUBMITS, SEND_ERROR_MAIL, SMTP_SERVER,
7474
USE_MEM_FREE)
75-
from gridmap.job import Job, JobException, process_jobs, grid_map, pg_map
75+
from gridmap.job import Job, JobException, process_jobs, grid_map
7676
from gridmap.version import __version__, VERSION
7777

7878
# For * imports
79-
__all__ = ['Job', 'JobException', 'process_jobs', 'grid_map', 'pg_map',
80-
'CHECK_FREQUENCY', 'CREATE_PLOTS', 'DEFAULT_QUEUE',
81-
'ERROR_MAIL_RECIPIENT', 'ERROR_MAIL_SENDER', 'HEARTBEAT_FREQUENCY',
82-
'IDLE_THRESHOLD', 'MAX_IDLE_HEARTBEATS',
83-
'MAX_TIME_BETWEEN_HEARTBEATS', 'NUM_RESUBMITS', 'SEND_ERROR_MAILS',
84-
'SMTP_SERVER', 'USE_MEM_FREE']
79+
__all__ = ['Job', 'JobException', 'process_jobs', 'grid_map', 'CHECK_FREQUENCY',
80+
'CREATE_PLOTS', 'DEFAULT_QUEUE', 'ERROR_MAIL_RECIPIENT',
81+
'ERROR_MAIL_SENDER', 'HEARTBEAT_FREQUENCY', 'IDLE_THRESHOLD',
82+
'MAX_IDLE_HEARTBEATS', 'MAX_TIME_BETWEEN_HEARTBEATS',
83+
'NUM_RESUBMITS', 'SEND_ERROR_MAIL', 'SMTP_SERVER', 'USE_MEM_FREE']

gridmap/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
(Default: ``all.q``)
3434
:var CREATE_PLOTS: Should we plot cpu and mem usage and send via email?
3535
(Default: ``True``)
36-
:var SEND_ERROR_MAILS: Should we send error emails?
37-
(Default: ``True``)
36+
:var SEND_ERROR_MAIL: Should we send error emails?
37+
(Default: ``True``)
3838
:var SMTP_SERVER: SMTP server for sending error emails.
3939
(Default: last three sections of the current machine's fully
4040
qualified domain name)
@@ -94,7 +94,7 @@
9494

9595
# Global settings ####
9696
# email settings
97-
SEND_ERROR_MAILS = 'TRUE' == os.getenv('SEND_ERROR_MAILS', 'True').upper()
97+
SEND_ERROR_MAIL = 'TRUE' == os.getenv('SEND_ERROR_MAIL', 'True').upper()
9898
SMTP_SERVER = os.getenv('SMTP_SERVER', '.'.join(gethostname().split('.')[-3:]))
9999
ERROR_MAIL_SENDER = os.getenv('ERROR_MAIL_SENDER', 'error@gridmap.py')
100100
ERROR_MAIL_RECIPIENT = os.getenv('ERROR_MAIL_RECIPIENT',

0 commit comments

Comments
 (0)