This repository has been archived by the owner on Apr 18, 2020. It is now read-only.
/
setup.py
133 lines (126 loc) · 4.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import os
from setuptools import setup
from distutils.core import Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'NAME': 'test.db',
'TEST_NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.staticfiles',
'compressor',
'greeking',
'bakery',
'bigbuild',
),
TEMPLATES=[
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': False,
'OPTIONS': {},
},
],
BASE_DIR=os.path.dirname(__file__),
BAKERY_GZIP=False,
BAKERY_VIEWS=(
'bigbuild.views.IndexRedirectView',
'bigbuild.views.PageListView',
'bigbuild.views.PageDetailView',
'bigbuild.views.Static404View',
'bigbuild.views.RobotsView',
'bigbuild.sitemaps.SitemapView',
'bigbuild.sitemaps.GoogleNewsSitemapView',
'bigbuild.feeds.LatestPages',
),
STATIC_ROOT="./.static",
STATIC_URL = "/static/",
COMPRESS_ENABLED = True,
COMPRESS_JS_COMPRESSOR = "bigbuild.compressors.SimpleJsCompressor",
COMPRESS_CSS_COMPRESSOR = "bigbuild.compressors.SimpleCssCompressor",
STATICFILES_FINDERS = (
'compressor.finders.CompressorFinder',
),
COMPRESS_CSS_FILTERS = [
'compressor.filters.cssmin.rCSSMinFilter'
],
COMPRESS_JS_FILTERS = [
'compressor.filters.jsmin.JSMinFilter',
],
COMPRESS_PRECOMPILERS = (
('module', 'bigbuild.precompilers.ES6Compiler'),
),
COMPRESS_BROWSERIFY_BIN = os.path.join(
os.path.dirname(__file__),
"node_modules/.bin/browserify"
),
COMPRESS_CACHEABLE_PRECOMPILERS = (),
USE_TZ = True,
ROOT_URLCONF = 'bigbuild.urls',
BIGBUILD_GIT_BRANCH = os.environ.get("BIGBUILD_GIT_BRANCH", None),
BIGBUILD_BRANCH_BUILD = True,
)
from django.core.management import call_command
import django
django.setup()
call_command('test', 'bigbuild')
setup(
name='django-bigbuild',
version='0.9.8',
description="The open-source engine that powers bigbuilder, the Los Angeles Times Data Desk's \
system for publishing standalone pages",
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bigbuild/',
zip_safe=False,
packages=(
'bigbuild',
'bigbuild.management',
'bigbuild.management.commands',
'bigbuild.models',
'bigbuild.templatetags',
),
include_package_data=True,
license="MIT",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Framework :: Django',
'Framework :: Django :: 1.11',
'License :: OSI Approved :: MIT License',
],
install_requires=[
'python-frontmatter>=0.4.2',
'django-bakery==0.12.5',
'validictory>=1.0.1',
'django-compressor==2.2',
'django-compressor-toolkit>=0.6.0',
'greeking>=2.2.0',
'GitPython>=2.0.8',
'python-dateutil>=2.6.0',
'archieml>=0.3.1',
'django-jsonfield>=1.0.1',
'pytz',
'six',
],
cmdclass={'test': TestCommand}
)