forked from Exopy/exopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (52 loc) · 2.02 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os.path
import sys
sys.path.insert(0, os.path.abspath('.'))
from exopy.version import __version__
install_requires = ['atom>=0.4.1', 'enaml>=0.10.2', 'kiwisolver>=1.0.0',
'configobj', 'watchdog', 'qtawesome', 'numpy']
# Avoid adding PyQt5 to install_requires if PyQt5 is already present. This
# allows to avoid re-installing it if it is already present (typically in a
# conda environment). This is not perfect but comes from
# https://github.com/ContinuumIO/anaconda-issues/issues/1554 which prevents
# setuptools to identify a conda install PyQt5 installation.
# Based on https://github.com/glue-viz/glue/pull/1836
try:
import PyQt5 # noqa
except ImportError:
install_requires.append('PyQt5')
def long_description():
"""Read the project description from the README file.
"""
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
return f.read()
setup(
name='exopy',
description='Experiment control application',
version=__version__,
long_description=long_description(),
author='Exopy Developers (see AUTHORS)',
author_email='[email protected]',
url='http://github.com/exopy/exopy',
download_url='http://github.com/exopy/exopy/tarball/master',
keywords='experiment automation GUI',
license='BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Physics',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
zip_safe=False,
packages=find_packages(exclude=['tests', 'tests.*']),
package_data={'': ['*.enaml', '*.txt']},
python_requires='>=3.5',
setup_requires=['setuptools'],
install_requires=install_requires,
entry_points={'gui_scripts': 'exopy = exopy.__main__:main'},
)