forked from slaclab/timechart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (39 loc) · 1.4 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
import versioneer
from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().split()
git_requirements = [r for r in requirements if r.startswith('git+')]
requirements = [r for r in requirements if not r.startswith('git+')]
if len(git_requirements) > 0:
print("User must install \n" +
"\n".join('{}'.format(r) for r in git_requirements) +
"\n\nmanually")
setup(
name='timechart',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
# Author details
author='SLAC National Accelerator Laboratory',
packages=find_packages(),
package_dir={'timechart':'timechart', 'timechart_launcher':'timechart_launcher'},
description='Time Chart Tool based on PyDM',
url='https://github.com/slaclab/timechart',
entry_points={
'gui_scripts': [
'timechart=timechart_launcher.main:main'
]
},
license='BSD',
include_package_data=True,
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
install_requires=requirements,
)