Uh oh!
There was an error while loading. Please reload this page.
forked from lightwave-lab/lightlab
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
72 lines (58 loc) · 1.96 KB
/
Copy pathsetup.py
File metadata and controls
72 lines (58 loc) · 1.96 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
70
71
72
#!/usr/bin/env python
# -*- coding: utf-8 -*-
importos
importsys
fromsetuptoolsimportsetup, find_packages
LABSTATE_FILENAME="labstate.json"
JUPYTER_GROUP="jupyter"
# assert sys.version_info >= (3, 6), "Use python >= 3.6 - We are living in the __future__!"
deftouch(fname, times=None):
withopen(fname, 'a'):
os.utime(fname, times)
defmain():
withopen('README.rst') asf:
readme=f.read()
withopen('LICENSE') asf:
license_text=f.read()
withopen("version.py") asf:
code=compile(f.read(), "version.py", 'exec')
version_dict= {}
exec(code, {}, version_dict) # pylint: disable=exec-used
release=version_dict['release']
metadata=dict(
name='lightlab',
version=release,
description='Lightwave Lab instrument automation tools',
long_description=readme,
license=license_text.split('\n')[0],
python_requires='>=3.6',
packages=find_packages(exclude=('tests', 'docs', 'data')),
url="https://github.com/lightwave-lab/lightlab",
author="Alex Tait <atait@ieee.org>, Thomas Ferreira de Lima <tlima@princeton.edu>",
author_email="tlima@princeton.edu",
classifiers=(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: System :: Hardware :: Hardware Drivers",
"Framework :: Jupyter",
),
install_requires=[
'dpath',
'jsonpickle',
'matplotlib',
'IPython',
'PyVISA',
'scipy',
'sklearn',
'dill',
],
entry_points={
'console_scripts': ['lightlab=lightlab.command_line:main'],
}
)
setup(**metadata)
if__name__=='__main__':
main()