forked from genicam/harvesters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·116 lines (105 loc) · 3.65 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
#!/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'])
with open('README.rst', 'r',encoding='utf-8_sig') as fh:
__doc__ = fh.read()
description = 'Image Acquisition Library for GenICam-based Machine Vision System'
# 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='[email protected]',
# Tells the index and pip some additional metadata about our package:
classifiers=(
'Development Status :: 5 - Production/Stable',
'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',
),
# A short, on-sentence summary of the package:
description=description,
# Location where the package may be downloaded:
download_url='https://pypi.org/project/harvesters/',
# A list of required Python modules:
install_requires=[
'genicam>=1.2',
'numpy'
],
#
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',
# 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': [
os.path.join(
'logging', '*.ini'
),
os.path.join(
'test', 'xml', '*.xml'
),
os.path.join(
'test', 'xml', '*.zip'
),
]
},
# A list of supported platforms:
platforms='any',
#
provides=['harvesters'],
# The URL for the website of the project:
url='https://github.com/genicam/harvesters',
# The package version:
version=versioneer.get_version(),
)