-
Notifications
You must be signed in to change notification settings - Fork 95
/
setup.py
71 lines (65 loc) · 2.11 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
from setuptools import setup
#try:
# from setuptools import setup
#except ImportError:
# from distutils.core import setup
def get_anki_bundled_files():
import os
data_files = []
for root, dirs, files in os.walk('anki-bundled'):
data_files.append((root, [os.path.join(root, f) for f in files]))
return data_files
setup(
name="AnkiServer",
version="2.0.6",
description="A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)",
long_description=open('README.rst').read(),
license='LICENSE.txt',
author="David Snopek",
author_email="[email protected]",
url="https://github.com/dsnopek/anki-sync-server",
install_requires=[
"PasteDeploy>=1.3.2",
"PasteScript>=1.7.3",
"WebOb>=0.9.7",
"SQLAlchemy>=0.6.3",
],
tests_require=[
'nose>=1.3.0',
'mock>=1.0.0,<2.0.0a',
],
data_files=get_anki_bundled_files()+[
('examples', [
'example.ini',
'logging.conf',
'supervisor-anki-server.conf',
]),
],
zip_safe=False,
test_suite='nose.collector',
scripts=['ankiserverctl.py'],
packages=['AnkiServer','AnkiServer.apps'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Education',
'Topic :: Education :: Computer Aided Instruction (CAI)',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Utilities',
],
entry_points="""
[paste.app_factory]
sync_app = AnkiServer.apps.sync_app:make_app
rest_app = AnkiServer.apps.rest_app:make_app
[paste.server_runner]
server = AnkiServer:server_runner
""",
)