mirror of
https://github.com/vale981/jobmanager
synced 2025-03-04 17:31:39 -05:00
working pypi setup files.
This commit is contained in:
parent
0f87e08990
commit
bc2e40992b
16 changed files with 36 additions and 8 deletions
16
jobmanager/__init__.py
Normal file
16
jobmanager/__init__.py
Normal 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))
|
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
@ -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
|
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue