mirror of
https://github.com/status-im/cabot.git
synced 2025-02-22 17:38:06 +00:00
Add static files and templates to MANIFEST.in
This commit is contained in:
parent
764a93e4ca
commit
df3e799cbc
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ dev.db
|
||||
venv/*
|
||||
backups/*
|
||||
static/
|
||||
cabot/.collectstatic/
|
||||
node_modules/*
|
||||
.python-eggs/*
|
||||
cabot.egg-info
|
||||
|
2
MANIFEST.in
Normal file
2
MANIFEST.in
Normal file
@ -0,0 +1,2 @@
|
||||
recursive-include cabot/.collectstatic *
|
||||
recursive-include cabot/templates *
|
@ -69,7 +69,7 @@ MEDIA_URL = '%s/media/' % URL_PREFIX
|
||||
# Don't put anything in this directory yourself; store your static files
|
||||
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
||||
# Example: "/home/media/media.lawrence.com/static/"
|
||||
STATIC_ROOT = os.path.join(PROJECT_ROOT, os.path.pardir, 'static/')
|
||||
STATIC_ROOT = os.path.join(PROJECT_ROOT, '.collectstatic/')
|
||||
|
||||
COMPRESS_ROOT = STATIC_ROOT
|
||||
|
||||
|
@ -18,7 +18,6 @@
|
||||
<link rel="stylesheet" href="{% static 'arachnys/css/graph.css' %}" type="text/css">
|
||||
{% endcompress %}
|
||||
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<link rel="icon" href="{% static 'arachnys/img/icon_48x48.png'%}" type="image/png">
|
||||
{% compress js %}
|
||||
<script type="text/coffeescript">
|
||||
|
19
setup.py
19
setup.py
@ -2,19 +2,18 @@
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
from os import environ as env
|
||||
import subprocess
|
||||
|
||||
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
|
||||
with open(requirements_file) as f:
|
||||
requirements = [line.rstrip('\n')
|
||||
for line in f
|
||||
if line and not line.startswith('#')]
|
||||
from pip.req import parse_requirements
|
||||
|
||||
# pull in active plugins
|
||||
plugins = env['CABOT_PLUGINS_ENABLED'].split(',') if 'CABOT_PLUGINS_ENABLED' in env else ["cabot_alert_hipchat", "cabot_alert_twilio", "cabot_alert_email"]
|
||||
requirements = [str(req.req) for req in parse_requirements('requirements.txt', session=False)]
|
||||
requirements_plugins = [str(req.req) for req in parse_requirements('requirements-plugins.txt', session=False)]
|
||||
|
||||
VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip()
|
||||
|
||||
setup(
|
||||
name='cabot',
|
||||
version='0.8.3',
|
||||
version=VERSION,
|
||||
description="Self-hosted, easily-deployable monitoring and alerts service"
|
||||
" - like a lightweight PagerDuty",
|
||||
long_description=open('README.md').read(),
|
||||
@ -22,8 +21,8 @@ setup(
|
||||
author_email='info@arachnys.com',
|
||||
url='http://cabotapp.com',
|
||||
license='MIT',
|
||||
install_requires=requirements + plugins,
|
||||
install_requires=requirements + requirements_plugins,
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
zip_safe=False
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user