-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (58 loc) · 1.92 KB
/
setup.py
File metadata and controls
69 lines (58 loc) · 1.92 KB
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
# -*- coding: utf-8 -*-
import os
import versioneer
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def _filter_requirement(req):
req = req.strip()
# skip comments and dash options (e.g. `-e` & `-r`)
return bool(req and req[0] not in '#-')
def read_from_requirements_txt(filepath):
f = os.path.join(here, filepath)
with open(f) as fb:
return tuple([
x.strip()
for x in fb
if _filter_requirement(x)
])
install_requires = read_from_requirements_txt('requirements/main.txt')
tests_require = read_from_requirements_txt('requirements/test.txt')
extras_require = {
'test': tests_require,
}
description = """\
Application for accepting publication requests to the Connexions Archive."""
setup(
name='cnx-publishing',
version=versioneer.get_version(),
author='Connexions team',
author_email='info@cnx.org',
url="https://github.com/connexions/cnx-publishing",
license='LGPL, See also LICENSE.txt',
description=description,
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
test_suite='cnxpublishing.tests',
packages=find_packages(),
include_package_data=True,
package_data={
'cnxpublishing': ['sql/*.sql', 'sql/*/*.sql',
'views/templates/*.*',
'static/css/*.*',
'static/js/*.*',
'static/js/vendor/*.*',
],
'cnxpublishing.tests': ['data/*.*'],
},
cmdclass=versioneer.get_cmdclass(),
entry_points="""\
[paste.app_factory]
main = cnxpublishing.main:make_wsgi_app
[console_scripts]
cnx-publishing-channel-processing = \
cnxpublishing.scripts.channel_processing:main
[dbmigrator]
migrations_directory = cnxpublishing.main:find_migrations_directory
""",
)