-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (76 loc) · 2.12 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
#!/usr/bin/env python
"""Setuptools script.
"""
import os
import codecs
from setuptools import setup, find_packages
PACKAGENAME = 'sqre-uservice-nbreport'
DESCRIPTION = 'Publication service for LSST notebook-based reports'
AUTHOR = 'Jonathan Sick'
AUTHOR_EMAIL = 'jsick@lsst.org'
URL = 'https://github.com/sqre-lsst/uservice-nbreport'
LICENSE = 'MIT'
install_requires = [
'sqre-apikit==0.1.2',
'uWSGI==2.0.17',
'Flask-HTTPAuth==3.2.4',
'jupyter==1.0.0', # provides nbformat, nbconvert and underlying infra
'celery[redis]==4.2.1',
'ltd-conveyor==0.4.0',
]
tests_require = [
'pytest==3.6.3',
'pytest-cov==2.5.1',
'pytest-flake8==1.0.1',
'responses==0.9.0',
'pytest-mock==1.10.0'
]
extras_require = {
'dev': tests_require
}
package_data = {'uservice_nbreport': [
'uservice_nbreport/publish/templates/report-html/*.css',
'uservice_nbreport/publish/templates/report-html/*.jinja',
]}
entry_points = {
'nbconvert.exports': [
'lsst-report-html '
'= uservice_nbreport.publish.htmlexport:LsstHtmlReportExporter',
],
'console_scripts': [
'lsst-report-html '
'= uservice_nbreport.publish.htmlexport:cli',
]
}
def local_read(filename):
"""Read a file into a string.
"""
full_filename = os.path.join(
os.path.abspath(os.path.dirname(__file__)),
filename)
return codecs.open(full_filename, 'r', 'utf-8').read()
LONG_DESC = local_read('README.md')
setup(
name=PACKAGENAME,
description=DESCRIPTION,
long_description=LONG_DESC,
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
],
keywords='lsst',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
use_scm_version=True,
setup_requires=['setuptools_scm'],
package_data=package_data,
include_package_data=True,
entry_points=entry_points,
)