Merge branch 'master' into 'multiple-qualities-backend'
RabbitMQ addition in master See merge request !1
This commit is contained in:
commit
dd0db38e2c
@ -70,20 +70,25 @@ derivatives) issue the following command::
|
|||||||
|
|
||||||
sudo apt-get install git-core python python-dev python-lxml \
|
sudo apt-get install git-core python python-dev python-lxml \
|
||||||
python-imaging python-virtualenv npm nodejs-legacy automake \
|
python-imaging python-virtualenv npm nodejs-legacy automake \
|
||||||
nginx
|
nginx rabbitmq-server
|
||||||
|
|
||||||
On a RPM-based system (e.g. Fedora, RedHat, and derivatives) issue the
|
On a RPM-based system (e.g. Fedora, RedHat, and derivatives) issue the
|
||||||
following command::
|
following command::
|
||||||
|
|
||||||
sudo yum install python-paste-deploy python-paste-script \
|
sudo yum install python-paste-deploy python-paste-script \
|
||||||
git-core python python-devel python-lxml python-imaging \
|
git-core python python-devel python-lxml python-imaging \
|
||||||
python-virtualenv npm automake nginx
|
python-virtualenv npm automake nginx rabbitmq-server
|
||||||
|
|
||||||
(Note: MediaGoblin now officially supports Python 3. You may instead
|
(Note: MediaGoblin now officially supports Python 3. You may instead
|
||||||
substitute from "python" to "python3" for most package names in the
|
substitute from "python" to "python3" for most package names in the
|
||||||
Debian instructions and this should cover dependency installation.
|
Debian instructions and this should cover dependency installation.
|
||||||
These instructions have not yet been tested on Fedora.)
|
These instructions have not yet been tested on Fedora.)
|
||||||
|
|
||||||
|
(Note: you might have to include additional repositories to a RPM-
|
||||||
|
based system, because rabbitmq-server might be not included in
|
||||||
|
official repositories. As an alternative, you can try installing
|
||||||
|
redis-server and configure it as celery broker)
|
||||||
|
|
||||||
Configure PostgreSQL
|
Configure PostgreSQL
|
||||||
~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -153,8 +153,7 @@ CELERY_RESULT_BACKEND = string(default="database")
|
|||||||
CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
|
CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db")
|
||||||
|
|
||||||
# default kombu stuff
|
# default kombu stuff
|
||||||
BROKER_TRANSPORT = string(default="sqlalchemy")
|
BROKER_URL = string(default="amqp://")
|
||||||
BROKER_URL = string(default="sqlite:///%(here)s/kombu.db")
|
|
||||||
|
|
||||||
# known booleans
|
# known booleans
|
||||||
CELERY_RESULT_PERSISTENT = boolean()
|
CELERY_RESULT_PERSISTENT = boolean()
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
{% if request.user and request.user.username==user.username %}
|
{% if request.user and request.user.username==user.username %}
|
||||||
<p>You have not created any blog yet.</p>
|
<p>You have not created any blog yet.</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No blog has been created by <strong>{{ user.username }}</strong>yet.</p>
|
<p>No blog has been created by <strong>{{ user.username }}</strong> yet.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -69,6 +69,9 @@ class ProcessMedia(celery.Task):
|
|||||||
"""
|
"""
|
||||||
Pass this entry off for processing.
|
Pass this entry off for processing.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
name = 'process_media'
|
||||||
|
|
||||||
def run(self, media_id, feed_url, reprocess_action, reprocess_info=None):
|
def run(self, media_id, feed_url, reprocess_action, reprocess_info=None):
|
||||||
"""
|
"""
|
||||||
Pass the media entry off to the appropriate processing function
|
Pass the media entry off to the appropriate processing function
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
{% template_hook("register_link") %}
|
{% template_hook("register_link") %}
|
||||||
{{ wtforms_util.render_divs(register_form, True) }}
|
{{ wtforms_util.render_divs(register_form, True) }}
|
||||||
{{ csrf_token }}
|
{{ csrf_token }}
|
||||||
|
{% template_hook("register_captcha") %}
|
||||||
<div class="form_submit_buttons">
|
<div class="form_submit_buttons">
|
||||||
<input type="submit" value="{% trans %}Create{% endtrans %}"
|
<input type="submit" value="{% trans %}Create{% endtrans %}"
|
||||||
class="button_form" />
|
class="button_form" />
|
||||||
|
@ -55,7 +55,4 @@ def test_setup_celery_from_config():
|
|||||||
'sqlite:///' +
|
'sqlite:///' +
|
||||||
pkg_resources.resource_filename('mediagoblin.tests', 'celery.db'))
|
pkg_resources.resource_filename('mediagoblin.tests', 'celery.db'))
|
||||||
|
|
||||||
assert fake_celery_module.BROKER_TRANSPORT == 'sqlalchemy'
|
assert fake_celery_module.BROKER_URL == 'amqp://'
|
||||||
assert fake_celery_module.BROKER_URL == (
|
|
||||||
'sqlite:///' +
|
|
||||||
pkg_resources.resource_filename('mediagoblin.tests', 'kombu.db'))
|
|
||||||
|
7
setup.py
7
setup.py
@ -56,8 +56,7 @@ install_requires = [
|
|||||||
'pytest>=2.3.1',
|
'pytest>=2.3.1',
|
||||||
'pytest-xdist',
|
'pytest-xdist',
|
||||||
'werkzeug>=0.7',
|
'werkzeug>=0.7',
|
||||||
'celery>=3.0,<4.0a0',
|
'celery>=3.0',
|
||||||
'kombu<4.0a0',
|
|
||||||
'jinja2',
|
'jinja2',
|
||||||
'Babel>=1.3',
|
'Babel>=1.3',
|
||||||
'WebTest>=2.0.18',
|
'WebTest>=2.0.18',
|
||||||
@ -75,6 +74,7 @@ install_requires = [
|
|||||||
'PasteScript',
|
'PasteScript',
|
||||||
'requests>=2.6.0',
|
'requests>=2.6.0',
|
||||||
'pyld',
|
'pyld',
|
||||||
|
'ExifRead>=2.0.0'
|
||||||
# This is optional:
|
# This is optional:
|
||||||
# 'translitcodec',
|
# 'translitcodec',
|
||||||
# For now we're expecting that users will install this from
|
# For now we're expecting that users will install this from
|
||||||
@ -83,10 +83,8 @@ install_requires = [
|
|||||||
# 'Pillow',
|
# 'Pillow',
|
||||||
] + pyversion_install_requires
|
] + pyversion_install_requires
|
||||||
|
|
||||||
dependency_links = []
|
|
||||||
if not PY2:
|
if not PY2:
|
||||||
# PyPI version (1.4.2) does not have proper Python 3 support
|
# PyPI version (1.4.2) does not have proper Python 3 support
|
||||||
dependency_links.append('https://github.com/ianare/exif-py/zipball/develop#egg=ExifRead-2.0.0')
|
|
||||||
install_requires.append('ExifRead>=2.0.0')
|
install_requires.append('ExifRead>=2.0.0')
|
||||||
|
|
||||||
with open(READMEFILE, encoding="utf-8") as fobj:
|
with open(READMEFILE, encoding="utf-8") as fobj:
|
||||||
@ -101,7 +99,6 @@ try:
|
|||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
# scripts and dependencies
|
# scripts and dependencies
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
dependency_links=dependency_links,
|
|
||||||
test_suite='nose.collector',
|
test_suite='nose.collector',
|
||||||
entry_points="""\
|
entry_points="""\
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user