forked from microscope-cockpit/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·89 lines (73 loc) · 2.54 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Copyright (C) 2018 David Miguel Susano Pinto <[email protected]>
##
## Copying and distribution of this file, with or without modification,
## are permitted in any medium without royalty provided the copyright
## notice and this notice are preserved. This file is offered as-is,
## without any warranty.
import glob
import os.path
import setuptools
import setuptools.command.sdist
## Modify the sdist command class to include extra files in the source
## distribution. We could also have a MANIFEST file but we'd rather
## not have the distribution configuration over multiple files.
manifest_files = [
'README.rst',
'INSTALL.rst',
'COPYING',
os.path.join('cockpit', 'resources', 'fonts', 'Universalis_COPYING.txt'),
os.path.join('cockpit', 'resources', 'fonts', 'Universalis_NOTICE.txt'),
os.path.join('aux', 'convert-images-to-png.py'),
] + glob.glob(os.path.join('images', 'touchscreen', '*.svg'))
class sdist(setuptools.command.sdist.sdist):
def make_distribution(self):
self.filelist.extend(manifest_files)
super(sdist, self).make_distribution()
setuptools.setup(
name = 'microscope-cockpit',
version = '2.9.1+dev',
description = 'Hardware agnostic microscope user interface',
long_description = open('README.rst', 'r').read(),
license = 'GPL-3.0+',
url = "https://github.com/MicronOxford/cockpit",
author = 'See source for a complete list of contributors',
author_email = ' ',
## https://pypi.org/pypi?:action=list_classifiers
classifiers = [
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
],
packages = setuptools.find_packages(),
package_data = {
'cockpit' : [
os.path.join('resources', 'images', 'touchscreen', '*.png'),
os.path.join('resources', 'images', '*.icns'),
os.path.join('resources', 'images', '*.ico'),
os.path.join('resources', 'fonts', '*.otf'),
],
},
python_requires = '>=3.5',
install_requires = [
'PyOpenGL',
'Pyro4',
'freetype-py',
'matplotlib',
'microscope>=0.5',
'numpy',
'pyserial',
'scipy',
'wxPython>=4.1',
],
test_suite = 'cockpit.testsuite',
entry_points = {
'gui_scripts': [
'cockpit = cockpit:_setuptools_entry_point',
]
},
cmdclass = {
'sdist' : sdist,
},
)