This repository has been archived by the owner on Sep 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·66 lines (45 loc) · 1.98 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
65
66
#! /usr/bin/env python
# --- import -------------------------------------------------------------------------------------
import os
import sys
from setuptools import setup, find_packages
# --- define -------------------------------------------------------------------------------------
here = os.path.abspath(os.path.dirname(__file__))
# --- setup --------------------------------------------------------------------------------------
data_files = []
if sys.platform.startswith('linux'):
data_files.append(('/usr/share/applications', ['scripts/yaq.desktop']))
extra_files = []
extra_files.append(os.path.join(here, 'CONTRIBUTORS'))
extra_files.append(os.path.join(here, 'LICENSE'))
extra_files.append(os.path.join(here, 'README.rst'))
extra_files.append(os.path.join(here, 'requirements.txt'))
extra_files.append(os.path.join(here, 'VERSION'))
with open(os.path.join(here, 'requirements.txt')) as f:
required = f.read().splitlines()
with open(os.path.join(here, 'VERSION')) as version_file:
version = version_file.read().strip()
setup(
name='yaq',
packages=find_packages(),
package_data={'': extra_files},
data_files=data_files,
install_requires=required,
version=version,
description='Yet another acquisition.',
author='Blaise Thompson',
author_email='[email protected]',
license='MIT',
url='https://github.com/wright-group/yaq',
keywords='spectroscopy science multidimensional',
classifiers=['Development Status :: 1 - Planning',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering'],
entry_points={'gui_scripts': ['yaq=yaq.widgets.start:main']}
)