-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
executable file
·129 lines (115 loc) · 4.11 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/usr/bin/env python3
# ----------------------------------------------------------------------------
#
# Copyright 2018 EMVA
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an 'AS IS' BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ----------------------------------------------------------------------------
# Standard library imports
import os
import setuptools
from distutils import log
import sys
# Related third party imports
# Local application/library specific imports
import versioneer as versioneer
#
log.set_verbosity(log.DEBUG)
log.info('Entered setup.py')
log.info('$PATH=%s' % os.environ['PATH'])
# Check the Python version:
supported_versions = [(3, 5), (3, 6), (3, 7), (3, 8)]
if sys.version_info in supported_versions:
raise RuntimeError(
'See https://github.com/genicam/harvesters_gui#requirements'
)
with open('README.rst', 'r',encoding='utf-8_sig') as fh:
__doc__ = fh.read()
description = 'Graphical user interfce of Harvester'
# Determine the base directory:
base_dir = os.path.dirname(__file__)
src_dir = os.path.join(base_dir, 'src')
# Make our package importable when executing setup.py;
# the package is located in src_dir:
sys.path.insert(0, src_dir)
setuptools.setup(
# The author of the package:
author='The GenICam Committee',
author_email='genicam@list.stemmer-imaging.com',
# Tells the index and pip some additional metadata about our package:
classifiers=(
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
),
# A short, on-sentence summary of the package:
description=description,
# Location where the package may be downloaded:
download_url='https://pypi.org/project/harvesters_gui/',
# A list of required Python modules:
install_requires=[
'PyQt5<=5.13',
'vispy<=0.6',
'harvesters>=1.1',
],
license='Apache Software License V2.0',
# A detailed description of the package:
long_description=__doc__,
# The index to tell what type of markup is used for the long description:
long_description_content_type='text/x-rst',
# The name of the package:
name='harvesters_gui',
# A list of all Python import packages that should be included in the
# distribution package:
packages=setuptools.find_packages(where='src'),
# Keys: Package names; an empty name stands for the root package.
# Values: Directory names relative to the setup.py.
package_dir={
'': 'src'
},
# Keys: Package names.
# Values: A list of globs.
# All the files that match package_data will be added to the MANIFEST
# file if no template is provided:
package_data={
'harvesters_gui': [
os.path.join(
'_private', 'frontend', 'image', '*', '*.jpg'
),
os.path.join(
'_private', 'frontend', 'image', '*', '*.png'
),
os.path.join(
'logging', '*.ini'
),
]
},
# A list of supported platforms:
platforms='any',
#
provides=['harvesters_gui'],
# The URL for the website of the project:
url='https://github.com/genicam/harvesters_gui',
# The package version:
version=versioneer.get_version(),
)