-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
80 lines (77 loc) · 2.3 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
from setuptools import setup, find_packages
from setuptest import test
import os, sys
import cronos
try:
if sys.argv[1] == 'install':
'''
Rename local_settings.py in order to
be excluded from setup.py install command
'''
ORIG_NAME = 'cronos/local_settings.py'
TEMP_NAME = 'cronos/local_settings.py1'
try:
os.rename(ORIG_NAME, TEMP_NAME)
except:
pass
except IndexError:
pass
setup(
name='cronos',
version=cronos.__version__,
license='AGPLv3',
author='Cronos Development Team',
author_email='cronos@teilar.gr',
url='http://cronos.teilar.gr',
description='Django application that collects announcements and personal data for students of TEI of Larissa',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
keywords='rss, announcements, university, django, teilar',
packages=find_packages(),
data_files=[
('', ['LICENSE', 'manage.py']),
('bin', [
'bin/update_cronos.sh',
'bin/logs_create_fix_perms.sh',
'bin/get_full_production_db.sh'
]),
],
cmdclass={'test': test},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Students',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: Greek',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Framework :: Django',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development',
],
install_requires=[
'beautifulsoup4>=4.1.0',
'Django>=1.4.1',
'django-setuptest>=0.1.2',
'django-endless-pagination>=1.1',
'django-tastypie>=0.9.11',
'feedparser>=5.1.2',
'lxml>=2.3.4',
'mysql-python>=1.2.3',
'pycrypto>=2.6',
'python-dateutil<=2.0',
'requests>=0.13.6',
'setuptools>=0.6.21',
],
tests_require=[
'django-setuptest>=0.1.2',
],
include_package_data=True,
)
if sys.argv[1] == 'install':
'''
Restore local_settings.py
'''
try:
os.rename(TEMP_NAME, ORIG_NAME)
except:
pass