-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (65 loc) · 2.12 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
"""
"""
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='gsfarc',
version='1.0.4',
description='GSF Py Client Utilities for ArcGIS',
long_description=long_description,
url='https://github.com/geospatial-services-framework/gsfpyarc',
author='Exelis Visual Information Solutions, Inc.',
author_email='[email protected]',
packages=['gsfarc',
'gsfarc.gptool',
'gsfarc.gptool.parameter',
'gsfarc.gptool.parameter.templates'],
package_dir= {'gsfarc': 'gsfarc'},
install_requires=[
'gsf>=1.0.0'
],
package_data = {
'gsfarc': [
'esri/toolboxes/*.xml',
'esri/toolboxes/*.pyt',
'doc/_images/*',
'doc/_modules/*.html',
'doc/_modules/gsfarc/*.html',
'doc/_modules/gsfarc/gptool/parameter/*.html',
'doc/_static/*',
'doc/*.html',
'doc/*.js'
]
},
license='MIT',
zip_safe=False,
scripts=['scripts/creategsftoolbox.py'],
cmdclass=dict(test=TestCommand)
)