diff --git a/.travis.yml b/.travis.yml index f6c1a89..370f5a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,25 @@ python: - 3.3 - 3.4 +services: + - redis-server + #- rabbitmq + #- mongodb + #- couchdb + install: - python -c 'import setup; print(setup.REQUIRES_PIP)' |xargs pip install - pip install robpol86-codecov - pip install . +before_script: + - echo -e "daemonize yes\nunixsocket /tmp/redis.sock\nport 0" |redis-server - + - mysql -u root -e 'CREATE DATABASE flask_celery_helper_test;' + - mysql -u root -e 'GRANT ALL PRIVILEGES ON flask_celery_helper_test.* TO "user"@"localhost" IDENTIFIED BY "pass";' + - psql -U postgres -c 'CREATE DATABASE flask_celery_helper_test;' + - psql -U postgres -c "CREATE USER user1 WITH PASSWORD 'pass';" + - psql -U postgres -c 'GRANT ALL PRIVILEGES ON DATABASE flask_celery_helper_test TO user1;' + script: - python setup.py test && mv .coverage .coverage.sqlite # SQLAlchemy SQLite - BROKER=mysql python setup.py test && mv .coverage .coverage.mysql @@ -27,17 +41,3 @@ script: after_success: - coverage combine - codecov - -before_script: - - echo -e "daemonize yes\nunixsocket /tmp/redis.sock\nport 0" |redis-server - - - mysql -u root -e 'CREATE DATABASE flask_celery_helper_test;' - - mysql -u root -e 'GRANT ALL PRIVILEGES ON flask_celery_helper_test.* TO "user"@"localhost" IDENTIFIED BY "pass";' - - psql -U postgres -c 'CREATE DATABASE flask_celery_helper_test;' - - psql -U postgres -c "CREATE USER user1 WITH PASSWORD 'pass';" - - psql -U postgres -c 'GRANT ALL PRIVILEGES ON DATABASE flask_celery_helper_test TO user1;' - -services: - - redis-server - #- rabbitmq - #- mongodb - #- couchdb diff --git a/README.rst b/README.rst index a4cffe6..10bc2f1 100644 --- a/README.rst +++ b/README.rst @@ -170,6 +170,14 @@ Single Instance Example Changelog --------- +1.1.0 +````` + +* Added Windows support. +* ``CELERY_RESULT_BACKEND`` no longer mandatory. +* ``single_instance`` supported on SQLite/MySQL/PostgreSQL in addition to Redis. +* Breaking changes: ``flask.ext.celery.CELERY_LOCK`` moved to ``flask.ext.celery._LockManagerRedis.CELERY_LOCK``. + 1.0.0 ````` @@ -183,12 +191,12 @@ Changelog 0.2.1 ````` -* Fixed single_instance arguments with functools. +* Fixed ``single_instance`` arguments with functools. 0.2.0 ````` -* Added include_args argument to single_instance. +* Added include_args argument to ``single_instance``. 0.1.0 ````` diff --git a/appveyor.yml b/appveyor.yml index 6737cac..63e1616 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,6 +22,10 @@ install: - ps: pip install $(python -c 'import setup; print(setup.REQUIRES_PIP)') - pip install robpol86-codecov +services: + - mysql + - postgresql + build_script: - ps: mv .git .. - pip install . @@ -52,7 +56,3 @@ test_script: after_test: - coverage combine - codecov - -services: - - mysql - - postgresql diff --git a/flask_celery.py b/flask_celery.py index 3990ff4..576105b 100644 --- a/flask_celery.py +++ b/flask_celery.py @@ -13,7 +13,7 @@ __author__ = '@Robpol86' __license__ = 'MIT' -__version__ = '1.0.0' +__version__ = '1.1.0' class OtherInstanceError(Exception):