working pypi setup files.

This commit is contained in:
Paul Müller 2014-12-22 18:39:55 +01:00
parent 0f87e08990
commit bc2e40992b
16 changed files with 36 additions and 8 deletions

View file

16
jobmanager/__init__.py Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "0.1.0"
from .jobmanager import *
from . import clients
from . import servers
from . import progress
# ode_wrapper requires scipy
try:
from . import ode_wrapper
except ImportError:
warnings.warn("Submodule 'ode_wrapper' is not available."+\
" Reason: {}.".format(sys.exc_info()[1].message))

View file

@ -1,3 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The clients module
This module provides special subclasses of the JobManager_Client
"""
import os
import sys
import traceback
@ -5,12 +13,6 @@ import traceback
from .jobmanager import JobManager_Client
import ode_wrapper
"""
The clients module
This module provides special subclasses of the JobManager_Client
"""
class Integration_Client_CPLX(JobManager_Client):
"""
@ -160,4 +162,4 @@ class FunctionCall_Client(JobManager_Client):
return f(**f_kwargs)

View file

@ -16,6 +16,14 @@ import sys
import time
import traceback
# This is a list of all python objects that will be imported upon
# initialization during module import (see __init__.py)
__all__ = ["JobManager_Client",
"JobManager_Local",
"JobManager_Server",
]
# Magic conversion from 3 to 2
if sys.version_info[0] == 2:
# Python 2

View file

@ -1,3 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sqlitedict
from .jobmanager import JobManager_Server
from collections import namedtuple
@ -70,4 +72,4 @@ class PersistentData_Server(JobManager_Server, PersistentDataBase):
else:
JobManager_Server.put_arg(self, a)