-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
108 lines (97 loc) · 3.27 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
#!/bin/env python
from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES
import os
import sys
class osx_install_data(install_data):
def finalize_options(self):
self.set_undefined_options('install', ('install_lib', 'install_dir'))
install_data.finalize_options(self)
if sys.platform == "darwin":
cmdclasses = {'install_data': osx_install_data}
else:
cmdclasses = {'install_data': install_data}
packages, data_files = [], []
def fullsplit(path, result=None):
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
for module in ("publication_backbone",):
for dirpath, dirnames, filenames in os.walk(module):
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
packages.append('.'.join(fullsplit(dirpath)))
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
import datetime, time
ts = time.time()
st = datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d-%H-%M-%S')
version = '0.6.6.0-' + st
setup(
name='PublicationBackbone',
version=version,
author='Excentrics LLC',
author_email='info@excentrics.ru',
packages=packages,
data_files=data_files,
cmdclass=cmdclasses,
scripts=[],
url='https://github.com/Excentrics/publication-backbone.git',
license='LICENSE.txt',
description='Publication Backbone.',
long_description=open('README.md').read(),
dependency_links=[
"https://github.com/bradleyayers/django-ace",
"https://github.com/Excentrics/beautiful-fields",
"https://github.com/disqus/django-bitfield",
"https://github.com/sergey-romanov/django-form-designer",
"https://github.com/sergey-romanov/django-mptt-admin",
"https://github.com/edoburu/django-fluent-pages",
"https://github.com/SmartTeleMax/chakert",
],
install_requires=[
"Pillow",
"Django==1.7.10",
"pytils",
"lxml==3.3.4",
"django-mptt==0.7.4",
"django-mptt-admin",
"django-polymorphic==0.7.2",
"django-haystack==2.4.1",
"pyelasticsearch==1.4",
"elasticsearch==1.9.0",
"elasticstack==0.4.0",
"django-salmonella==0.6.1",
"django-constance==1.1.1",
"django-picklefield==0.3.1",
"django_compressor==1.4",
"django-constance==1.0.1",
"django-ckeditor==4.4.6",
"django-ace",
"BeautifulFields",
"django-bitfield",
"django-form-designer",
"django-mptt-admin",
"sorl-thumbnail==12.3",
"django-classy-tags==0.6.2",
"django-simple-captcha",
"django-wysiwyg==0.7.1",
"django-fluent-pages",
"django-fluent-contents==1.0.2",
"django-twitter-bootstrap==3.1.1",
"django-pipeline==1.3.23",
"django_compressor==1.4",
"django-any-urlfield",
"django-any-imagefield",
"chakert",
],
)