forked from skylines-project/skylines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·73 lines (66 loc) · 1.77 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
requirements = [
'flask==0.10.1',
'werkzeug==0.9.4',
'Flask-Babel==0.9',
'Flask-Assets==0.8',
'Flask-Login==0.2.7',
'Flask-Cache==0.12',
'Flask-Migrate==1.1.0',
'Flask-Script==0.6.6',
'Flask-SQLAlchemy==1.0',
'Flask-WTF==0.9.3',
'sqlalchemy==0.8.2',
'alembic==0.6.0',
'skylinespolyencode==0.1.3',
'psycopg2==2.4.6',
'geoalchemy2==0.2.1',
'shapely==1.2.18',
'crc16==0.1.1',
'markdown==2.3.1',
'pytz',
'webassets==0.8',
'cssmin==0.1.4',
'twisted==13.1',
'closure==20121212',
'WebHelpers==1.3',
'celery_with_redis==3.0',
'xcsoar==0.1.1',
'Pygments==1.6',
]
test_requirements = [r for r in open('requirements.txt').readlines()
if not r.startswith('http') and not r.startswith('-e')]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='SkyLines',
version='0.1',
description='',
author='',
author_email='',
url='http://www.skylines-project.org/',
packages=find_packages(exclude=['ez_setup']),
install_requires=requirements,
include_package_data=True,
cmdclass = {'test': PyTest},
tests_require=requirements + test_requirements,
package_data={
'skylines': [
'i18n/*/LC_MESSAGES/*.mo',
'templates/*/*',
'assets/static/*/*'
]
},
zip_safe=False
)