This repository has been archived by the owner on May 23, 2020. It is now read-only.
forked from amcat/amcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
89 lines (86 loc) · 3.37 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
from distutils.core import setup
from os import path
from pip.req import parse_requirements
from pip.download import PipSession
here = path.abspath(path.join(path.dirname(path.abspath(__file__))))
requirements = [str(ir.req) for ir in
parse_requirements(path.join(here, "requirements.txt"), session=PipSession())]
# Ugly hack to get the version prior to installation, without having the amcat
# package depend on setup.py.
execfile(path.join(here, "amcat", "_version.py"))
package = dict(
name='amcat',
version=__version__,
packages=[ # we could do with less of those
'navigator.views',
'navigator',
'navigator.utils',
'navigator.templatetags',
'amcat.tests',
'amcat.management',
'amcat.management.commands',
'amcat.scripts.output',
'amcat.scripts.tools',
'amcat.scripts',
'amcat.scripts.forms',
'amcat.scripts.actions',
'amcat.scripts.processors',
'amcat.scripts.searchscripts',
'amcat.scripts.article_upload',
'amcat.tools',
'amcat.tools.table',
'amcat.manage',
'amcat',
'amcat.forms',
'amcat.contrib.plugins',
'amcat.contrib',
'amcat.models',
'amcat.models.coding',
'accounts',
'settings',
'api.rest.viewsets',
'api.rest.viewsets.coding',
'api.rest',
'api.rest.resources',
'api.webscripts',
'api',
'annotator.views',
'annotator',
],
package_data={"amcat.models": ["*.json"],
"amcat.scripts.article_upload": ["test_files/*.txt",
"test_files/*.xml",
"test_files/bzk/*",
"test_files/lexisnexis/*"],
"amcat.tools": ["sql/*.sql"],
"navigator" : ["static/js/*.js",
"statis/js/jqplot/*.js",
"statis/js/jqplot/plugins/*.js",
"static/css/*.css",
"templates/project/*.html",
"templates/*.html",
"static/fonts/*",
],
"annotator" : ["static/js/annotator/*.js",
"templates/annotator/*.html",
],
"api" : ["templates/api/*.js",
"templates/api/*.html",
"templates/api/webscripts/*.html",
],
"accounts" : ["templates/accounts/*.html"],
},
url='https://github.com/amcat/amcat',
license='GNU Affero GPL',
author='AmCAT Developers',
author_email='[email protected]',
description=('System for document management and analysis. '
'The purpose of AmCAT is to make it easier to conduct '
'manual or automatic analyses of texts for (social) '
'scientific purposes. AmCAT can improve the use and standard'
'of content analysis in the social sciences and stimulate '
'sharing data and analyses.'),
install_requires = requirements,
)
if __name__ == '__main__':
setup(**package)