Skip to content

Commit

Permalink
Push v0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekGloudemans committed Jun 30, 2022
1 parent b62e938 commit 519afff
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 3 deletions.
28 changes: 28 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Copyright (c) 2022, Derek Gloudemans
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of [project] nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[metadata]
name = i24_sysctl
version = 0.1
author = Derek Gloudemans
author_email = [email protected]
description = Control of processes on multiple machines within a cluster from a single machine
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/DerekGloudemans/i24_sysctl

classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: BSD License
Operating System :: OS Independent

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6


[options.packages.find]
where = src
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools import setup
if __name__ == '__main__':
setup()
2 changes: 2 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from ClusterControl import ClusterControl
from ServerControlStub import serverControl
Binary file removed src/__pycache__/ServerControlStub.cpython-39.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions src/server_control.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from ServerControlStub import ServerControlStub
#from i24_sysctl import ServerControlStub
import time
from i24_logger.log_writer import logger



# TODO - add your list of import target functions here
# CODEWRITER TODO - import your process targets here such that these functions can be directly passed as the target to mp.Process or mp.Pool

def dummy_function(arg1,arg2,kwarg1 = None):
Expand All @@ -13,7 +13,7 @@ def dummy_function(arg1,arg2,kwarg1 = None):
logger.debug("This is what happens when you start a process!")
time.sleep(5)

# TODO - add your process targets to register_functions
# CODEWRITER TODO - add your process targets to register_functions
register_functions = [dummy_function]
name_to_process = dict([(fn.__name__, fn) for fn in register_functions])

Expand All @@ -32,4 +32,4 @@ def get_additional_args(self):

if __name__ == "__main__":

s = ServerControl(name_to_process)
s = ServerControl(name_to_process)

0 comments on commit 519afff

Please sign in to comment.