From e7b5fee3552c610e19b2a3cfa52926c1d1850a6d Mon Sep 17 00:00:00 2001 From: Wes Kendall Date: Sat, 8 Mar 2014 11:02:33 -0500 Subject: [PATCH 1/4] updated README to not include abc stuff in the celery example --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index cccfad7..f8aaa0f 100644 --- a/README.md +++ b/README.md @@ -52,17 +52,15 @@ In order to change the duration of a lock, set the DB_MUTEX_TTL_SECONDS variable Django DB Mutex can be used with celery's tasks in the following manner. from celery import Task - from abc import ABCMeta, abstractmethod class NonOverlappingTask(Task): __metaclass__ = ABCMeta - @abstractmethod def run_worker(self, *args, **kwargs): """ Run worker code here. """ - pass + raise NotImplementedError() def run(self, *args, **kwargs): try: From 6eb22de647c5b1f2bd57da2f40c64691a2212100 Mon Sep 17 00:00:00 2001 From: Wes Kendall Date: Sat, 8 Mar 2014 15:17:08 -0500 Subject: [PATCH 2/4] updated tests to verify package can be installed --- .travis.yml | 1 + db_mutex/VERSION | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4179019..2b17e2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: env: - DJANGO=1.6.1 DB=postgres install: + - python setup.py install - pip install -q Django==$DJANGO - pip install -r requirements.txt before_script: diff --git a/db_mutex/VERSION b/db_mutex/VERSION index 49d5957..17e51c3 100644 --- a/db_mutex/VERSION +++ b/db_mutex/VERSION @@ -1 +1 @@ -0.1 +0.1.1 From 77fe4cf248cdd3407548393eecb844ee495af257 Mon Sep 17 00:00:00 2001 From: Wes Kendall Date: Sat, 8 Mar 2014 15:22:15 -0500 Subject: [PATCH 3/4] bumped version --- db_mutex/VERSION | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db_mutex/VERSION b/db_mutex/VERSION index 17e51c3..b1e80bb 100644 --- a/db_mutex/VERSION +++ b/db_mutex/VERSION @@ -1 +1 @@ -0.1.1 +0.1.3 diff --git a/setup.py b/setup.py index f584e59..df39097 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ author='Wes Kendall', author_email='wesleykendall@gmail.com', packages=[ - 'manager_utils', + 'db_mutex', ], classifiers=[ 'Programming Language :: Python', From df0fb6417749fd25a8529009b13d3bc87e74f9a9 Mon Sep 17 00:00:00 2001 From: Wes Kendall Date: Sat, 8 Mar 2014 15:28:20 -0500 Subject: [PATCH 4/4] updated version --- db_mutex/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_mutex/VERSION b/db_mutex/VERSION index b1e80bb..d917d3e 100644 --- a/db_mutex/VERSION +++ b/db_mutex/VERSION @@ -1 +1 @@ -0.1.3 +0.1.2