Skip to content

Commit beac9c0

Browse files
author
afabiani
committed
minor formatting
1 parent 60c4ca2 commit beac9c0

File tree

4 files changed

+197
-4
lines changed

4 files changed

+197
-4
lines changed

requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ asn1crypto==0.24.0
22
astroid==1.4.4
33
autopep8==1.4.3
44
bcrypt==3.1.4
5+
bleach==3.1.0
6+
certifi==2019.9.11
57
cffi==1.11.5
8+
chardet==3.0.4
69
colorama==0.3.6
710
cryptography==2.3.1
11+
docutils==0.15.2
812
enum34==1.1.6
913
flake8==2.5.4
1014
functools32==3.2.3.post2
@@ -15,14 +19,24 @@ lazy-object-proxy==1.2.1
1519
mccabe==0.4.0
1620
paramiko==2.4.1
1721
pep8==1.7.1
22+
pkg-resources==0.0.0
23+
pkginfo==1.5.0.1
1824
psutil==5.4.7
1925
pyasn1==0.4.4
2026
pycodestyle==2.4.0
2127
pycparser==2.18
2228
pycrypto==2.6.1
2329
pyflakes==1.0.0
30+
Pygments==2.4.2
2431
pylint==1.5.4
2532
PyNaCl==1.2.1
33+
readme-renderer==24.0
34+
requests==2.22.0
35+
requests-toolbelt==0.9.1
2636
six==1.10.0
2737
sleekxmpp==1.3.3
38+
tqdm==4.36.1
39+
twine==1.15.0
40+
urllib3==1.25.6
41+
webencodings==0.5.1
2842
wrapt==1.10.10

setup.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,22 @@
2020
2121
5. Deploy on pypi:
2222
23-
python setup.py sdist upload -r pypi
24-
python setup.py bdist --format=gztar upload -r pypi
25-
python setup.py bdist_wheel upload -r pypi
23+
python setup.py sdist upload -r pypi; \
24+
python setup.py bdist --format=gztar upload -r pypi; \
25+
python setup.py bdist_wheel upload -r pypi;
26+
27+
python setup.py check -r -s
28+
python setup.py sdist bdist_wheel upload -r pypi
29+
30+
pip install setuptools==39.1.0 twine==1.11.0
31+
pip install setuptools --upgrade
32+
pip install twine --upgrade
33+
python setup.py sdist
34+
python setup.py bdist --format=gztar
35+
python setup.py bdist_wheel
36+
twine check dist/*
37+
twine upload dist/*
38+
2639
"""
2740
try: # for pip >= 10
2841
from pip._internal.req import parse_requirements
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# (c) 2016 Open Source Geospatial Foundation - all rights reserved
2+
# (c) 2014 - 2015 Centre for Maritime Research and Experimentation (CMRE)
3+
# (c) 2013 - 2014 German Aerospace Center (DLR)
4+
# This code is licensed under the GPL 2.0 license, available at the root
5+
# application directory.
6+
7+
# This is a INI file to be read with python ConfigParser (https://docs.python.org/2/library/configparser.html)
8+
# Is possible to reference another variable in the ini file using the format %(<variable name>)s (note the 's' at the end)
9+
10+
# ########################################### #
11+
# Default Service Params #
12+
# ########################################### #
13+
14+
[DEFAULT]
15+
service = GdalContour
16+
namespace = default
17+
description = GDAL Contour Remote Service
18+
executable_path = ./xmpp_data/configs/myservice/code
19+
executable_cmd = python %(executable_path)s/test.py
20+
output_dir = ./xmpp_data/output/
21+
unique_execution_id = %(unique_exe_id)s
22+
workdir = %(output_dir)s/%(unique_execution_id)s
23+
active = True
24+
max_running_time_seconds = 300
25+
26+
# . This option allows you to set the CPU and Memory average load scan time.
27+
# . It is espressed in 'minutes' and if disabled here it will be set by default
28+
# . to 15 minutes.
29+
load_average_scan_minutes = 1
30+
31+
# . Use this option to completely avoid using this host (and prevent starting a new
32+
# . 'processbot') whenever one of the following process names are running.
33+
# . In other words, if one of the following processes are currently running on this machine,
34+
# . GeoServer won't send any WPS execute request until they are finished.
35+
process_blacklist = [{"cwd": "/mnt/d/work/code/python/geonode/geonode-master", "name": "celery", "cmdline": "-A geonode.celery_app:app worker -Q default,geonode,cleanup,update,email -B -E -l INFO"}]
36+
37+
# ########################################### #
38+
# Inputs and Actions Declaration #
39+
# ########################################### #
40+
41+
[Input1]
42+
class = param
43+
name = interval
44+
title = Elevation Interval
45+
type = application/json
46+
input_mime_type = application/json
47+
description = Elevation interval between contours.
48+
min = 1
49+
max = 1
50+
default = 200
51+
52+
[Action1]
53+
class = cmdline
54+
input_ref = interval
55+
alias = i
56+
template = -name value
57+
58+
[Const1]
59+
class = const
60+
name = workdir
61+
type = string
62+
description = Remote process sandbox working directory
63+
value = %(workdir)s
64+
65+
[Action2]
66+
class = cmdline
67+
input_ref = workdir
68+
alias = w
69+
template = -name value
70+
71+
[Const2]
72+
class = const
73+
name = execution_id
74+
type = string
75+
description = Remote process unique execution id
76+
value = %(unique_execution_id)s
77+
78+
[Action2]
79+
class = cmdline
80+
input_ref = execution_id
81+
alias = e
82+
template = -name value
83+
84+
# ########################################### #
85+
# Output Parameters Declaration #
86+
# ########################################### #
87+
88+
#[Output1]
89+
#name = result1
90+
#type = application/zip
91+
#output_mime_type = application/zip
92+
#description = WPS Resource Binary File
93+
#title = SRTM
94+
#filepath = %(workdir)s/contour.zip
95+
#publish_as_layer = true
96+
#publish_default_style = polygon
97+
#publish_target_workspace = it.geosolutions
98+
#publish_layer_name = contour
99+
100+
# . Enable this option in order to perform a backup of this output
101+
# . before sending it to GeoServer.
102+
# . WARNING: This option works only along with 'wps_execution_shared_dir'
103+
# . option on 'remote.config', and takes precedence on 'upload_data'
104+
# backup_on_wps_execution_shared_dir = true
105+
106+
# . Enable this option if you want the output to be uploaded on remote host.
107+
# . Notice that you must also configure uploader parameters on 'remote.config'
108+
# upload_data = true
109+
110+
# . Optionally it is possible to specify a root folder if the uploader class supports it.
111+
# upload_data_root = /remote-wps/default
112+
113+
#[Output2]
114+
#name = result2
115+
#type = application/x-netcdf
116+
#output_mime_type = application/x-netcdf
117+
#description = NetCDF Binary File
118+
#title = flexpart
119+
#filepath = %(output_dir)s/flexpart.nc
120+
#publish_as_layer = true
121+
#publish_default_style = raster
122+
#publish_target_workspace = it.geosolutions
123+
#publish_layer_name = flexpart
124+
125+
[Output2]
126+
name = result2
127+
type = application/zip
128+
output_mime_type = application/zip
129+
description = Test ShapeFile
130+
title = watermask
131+
filepath = d:/tmp/DE_USNG_UTM18.zip
132+
publish_as_layer = true
133+
publish_default_style = polygon
134+
publish_target_workspace = it.geosolutions
135+
publish_layer_name = DE_USNG_UTM18
136+
137+
# . Enable this option in order to perform a backup of this output
138+
# . before sending it to GeoServer.
139+
# . WARNING: This option works only along with 'wps_execution_shared_dir'
140+
# . option on 'remote.config', and takes precedence on 'upload_data'
141+
# backup_on_wps_execution_shared_dir = true
142+
143+
# . Enable this option if you want the output to be uploaded on remote host.
144+
# . Notice that you must also configure uploader parameters on 'remote.config'
145+
# upload_data = true
146+
147+
# . Optionally it is possible to specify a root folder if the uploader class supports it.
148+
# upload_data_root = /remote-wps/default
149+
150+
#[Output3]
151+
#name = result3
152+
#type = application/owc
153+
#output_mime_type = application/xml
154+
#description = WPS OWC Json MapContext
155+
#layers_to_publish = result2
156+
#publish_as_layer = true
157+
#publish_layer_name = owc_json_ctx
158+
#publish_metadata = ./xmpp_data/resource_dir/owc_json_ctx.json
159+
160+
# ########################################### #
161+
# Logging Options Declaration #
162+
# ########################################### #
163+
164+
[Logging]
165+
stdout_parser = [.*\[DEBUG\](.*), .*\[INFO\] ProgressInfo\:([-+]?[0-9]*\.?[0-9]*)\%, .*\[(INFO)\](.*), .*\[(WARN)\](.*), .*\[(ERROR)\](.*), .*\[(CRITICAL)\](.*)]
166+
stdout_action = [ignore, progress, log, log, abort, abort]

src/wpsremote/xmpp_data/configs/remote.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
bus_class_name = xmppBus.XMPPBus
1010

1111
port = 5223
12-
address = 127.0.0.1
12+
address = 127.0.0.1
1313
domain = geoserver.org
1414

1515
# . Those are the connection parameters to the XMPP Server.

0 commit comments

Comments
 (0)