Commit 30aef603 authored by Johan Bloemberg's avatar Johan Bloemberg

Fix deprecated statsd celery library.

parent 5690d92a
......@@ -14,7 +14,8 @@ requests
pytz
celery[redis]
django-celery-beat
celery-statsd
# https://github.com/pi-bjl/celery-statsd/commit/5d61d7756f115dbf05a7eeb8314495b53ee1955e
git+https://github.com/pi-bjl/celery-statsd/@0.1.3#egg=celery-statsd
statsd
Pillow # screenshots
python-resize-image # screenshots
......
......@@ -44,11 +44,24 @@ def get_version():
return '0.0.0'
def requirements(filename='requirements.txt'):
"""Return list of required package names from requirements.txt."""
# strip trailing comments, and extract package name from git urls.
requirements = [r.strip().split(' ', 1)[0].split('egg=', 1)[-1]
for r in open(filename) if not r.startswith('#')]
return requirements
setup(
name='failmap-admin',
version=get_version(),
packages=find_packages(),
install_requires=open('requirements.txt').readlines(),
install_requires=requirements(),
# allow extra packages to be installed, eg: `pip install -e .[deploy]`
extras_require={
'development': requirements('requirements.dev.txt'),
'deploy': requirements('requirements.deploy.txt'),
},
entry_points={
'console_scripts': [
'failmap-admin = failmap_admin.manage:main',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment