This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathsetup.py
64 lines (57 loc) · 1.43 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
import os
from glob import glob
from setuptools import setup
here = os.path.dirname(os.path.abspath(__file__))
name = 'scriptedforms'
pjoin = os.path.join
tar_path = pjoin(here, 'scriptedforms', '*.tgz')
version_ns = {}
with open(pjoin(here, name, '_version.py')) as file:
code = file.read()
exec(code, version_ns)
version = version_ns['__version__']
def get_data_files():
"""Get the data files for the package.
"""
return [
('share/jupyter/lab/extensions', [
os.path.relpath(f, '.') for f in glob(tar_path)
]),
('etc/jupyter/jupyter_notebook_config.d', [
os.path.relpath(
pjoin(here, 'scriptedforms', 'scriptedforms.json'), '.')
])
]
setup(
name="scriptedforms",
version=version,
author="Simon Biggs",
author_email="sbiggs@scriptedforms.com.au",
description="ScriptedForms.",
long_description=(
""
),
keywords=[],
packages=[
"scriptedforms"
],
entry_points={
'console_scripts': [
'scriptedforms=scriptedforms:main',
],
},
data_files=get_data_files(),
license='AGPL-3.0+',
python_requires='>=3.5',
install_requires=[
'notebook >= 5.5',
'numpy',
'pandas',
'watchdog',
'matplotlib',
'jupyterlab >= 0.32.0'
],
classifiers=[],
url="https://scriptedforms.com.au",
include_package_data=True
)