-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·63 lines (53 loc) · 1.82 KB
/
setup.py
File metadata and controls
executable file
·63 lines (53 loc) · 1.82 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
from setuptools import setup
from datetime import datetime
now = datetime.now()
pack_extensions = {
'base': True,
'home': True,
'proxy': True
}
include_packages = ['qpod.%s' % x for x in pack_extensions if pack_extensions[x]]
print("Pack extensions: %s." % str(include_packages))
include_packages_data = {
'qpod': [k.replace('.', '/') + '/static/*' for k in pack_extensions]
}
print(include_packages_data)
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='qpod-hub',
version='%s.%s.%s' % (now.year, now.month, now.day),
author='QPod',
author_email='45032326+QPod0@users.noreply.github.com',
url='https://github.com/QPod/qpod-hub',
license='BSD',
packages=['qpod'], # find_packages(include=include_packages),
include_package_data=True,
package_data=include_packages_data,
platforms='Linux, Mac OS X, Windows',
zip_safe=False,
install_requires=[
'jupyter_server_proxy'
],
description='A hub portal UI and proxy service for QPod.',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
data_files=[
('etc/jupyter/jupyter_server_config.d', ['qpod/base/etc/qpod_hub-jpserverextension.json']),
('etc/jupyter/jupyter_notebook_config.d', ['qpod/base/etc/qpod_hub-nbserverextension.json']),
('etc/jupyter/nbconfig/tree.d', ['qpod/base/etc/qpod_hub-nbextension.json'])
],
entry_points={
'console_scripts': [
'qpod = qpod:main',
]
},
)