From 5bd3cf44388cd381a98c0b01dce4357af7ba22b5 Mon Sep 17 00:00:00 2001 From: GES-mpalermo Date: Tue, 21 Dec 2021 09:55:05 +0100 Subject: [PATCH] Fixed conda build files and imports --- jobdispatcher/__init__.py | 1 + .../{jobdispatcher.py => processor.py} | 4 +--- meta.yaml | 18 ++++++------------ setup.py | 6 +++--- 4 files changed, 11 insertions(+), 18 deletions(-) create mode 100644 jobdispatcher/__init__.py rename jobdispatcher/{jobdispatcher.py => processor.py} (99%) diff --git a/jobdispatcher/__init__.py b/jobdispatcher/__init__.py new file mode 100644 index 0000000..37dfc60 --- /dev/null +++ b/jobdispatcher/__init__.py @@ -0,0 +1 @@ +from jobdispatcher.processor import JobDispatcher diff --git a/jobdispatcher/jobdispatcher.py b/jobdispatcher/processor.py similarity index 99% rename from jobdispatcher/jobdispatcher.py rename to jobdispatcher/processor.py index 2bf9292..9504359 100644 --- a/jobdispatcher/jobdispatcher.py +++ b/jobdispatcher/processor.py @@ -6,18 +6,16 @@ @author: mpalermo """ -import queue from multiprocessing import Process, current_process, active_children, Manager import os import sys -import gc import time import traceback from typing import Callable, List -class JobProcessor: +class JobDispatcher: """Queue any number of different functions and execute them in parallel.""" def __init__( diff --git a/meta.yaml b/meta.yaml index 7fabdfc..80bf949 100644 --- a/meta.yaml +++ b/meta.yaml @@ -1,5 +1,5 @@ -{% set name = "jobdispatcher" %} -{% set version = "0.1.0" %} +{% set name = "job-dispatcher" %} +{% set version = "0.1.3" %} @@ -10,29 +10,23 @@ package: source: - url: https://github.com/GES-compchem/job-dispatcher/archive/refs/tags/0.1.0-alpha.tar.gz + url: https://github.com/GES-compchem/{{ name }}/archive/refs/tags/{{ version }}.zip build: + noarch: python number: 0 requirements: host: - - python + - python>=3.8 run: - - python - - - -test: - imports: - - jobdispatcher - + - python>=3.8 about: diff --git a/setup.py b/setup.py index 5901d1d..373fed9 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,10 @@ setuptools.setup( - name="jobdispatcher", - version="0.1.0", + name="job-dispatcher", + version="0.1.3", description="", long_description="", packages=["jobdispatcher"], - install_requires=["multiprocessing", "os", "sys", "time", "traceback", "python"], + install_requires=[], )