-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
87 lines (77 loc) · 2.43 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
"""
"""
import os
from setuptools import setup
from distutils.core import Command as BaseCommand
from unittest import TestLoader, TextTestRunner
class TestCommand(BaseCommand):
"""Runs the package tests."""
description = 'Runs all package tests.'
user_options = [
('junit=', None,
'outputs results to a results.xml file.')
]
def initialize_options(self):
self.junit = None
def finalize_options(self):
pass
def run(self):
# Import xmlrunner here so it's not a setup requirement
import xmlrunner
test_suite = TestLoader().discover('.')
if self.junit:
with open('report.xml', 'wb') as output:
runner = xmlrunner.XMLTestRunner(output)
runner.run(test_suite)
else:
runner = TextTestRunner(verbosity=2)
runner.run(test_suite)
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with open(os.path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(name='envipyarclib',
version='1.0.11',
description='ENVI Py Client Utilities for ArcGIS',
long_description=long_description,
url='https://github.com/envi-idl/envipyarclib',
author='Harris Geospatial Solutions, Inc.',
extras_require={
'dev': [
'coverage',
'envipyengine>=1.0.5',
'pylint',
'Sphinx',
'Sphinx-PyPI-upload',
'sphinx_rtd_theme',
'twine',
'unittest-xml-reporting',
'wheel'
]
},
packages=['envipyarclib',
'envipyarclib.gptool',
'envipyarclib.gptool.parameter',
'envipyarclib.gptool.parameter.templates',
'envipyarclib.test',
'envipyarclib.test.datatype'],
package_data={
'envipyarclib': [
'test/tasks/*.pro',
'test/tasks/*.task',
'test/tasks/*.sav',
'test/data/*.dat',
'test/data/*.hdr',
'test/data/*.shp',
'test/data/*.qtr',
'test/data/*.prj',
'test/data/*.shx',
'test/data/*.xml',
'test/data/*.gif',
'test/data/*.series',
'test/data/*.h5'
]
},
license='MIT',
zip_safe=False,
cmdclass=dict(test=TestCommand))