Skip to content

Commit fb8ce9c

Browse files
authored
Merge pull request #489 from Parsely/feature/upgrade-setuptools
update setuptools in created venv
2 parents 7efa754 + 06ab33f commit fb8ce9c

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

streamparse/cli/submit.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,7 @@ def submit_topology(
283283
env_config, host=host, port=port, timeout=timeout
284284
)
285285
if remote_jar_path:
286-
print(
287-
f"Reusing remote JAR on Nimbus server at path: {remote_jar_path}"
288-
)
286+
print(f"Reusing remote JAR on Nimbus server at path: {remote_jar_path}")
289287
else:
290288
remote_jar_path = _upload_jar(nimbus_client, local_jar_path)
291289
_kill_existing_topology(override_name, force, wait, nimbus_client)
@@ -303,7 +301,7 @@ def submit_topology(
303301

304302

305303
def subparser_hook(subparsers):
306-
""" Hook to add subparser for this command. """
304+
"""Hook to add subparser for this command."""
307305
subparser = subparsers.add_parser("submit", description=__doc__, help=main.__doc__)
308306
subparser.set_defaults(func=main)
309307
add_ackers(subparser)
@@ -367,7 +365,7 @@ def subparser_hook(subparsers):
367365

368366

369367
def main(args):
370-
""" Submit a Storm topology to Nimbus. """
368+
"""Submit a Storm topology to Nimbus."""
371369
env.pool_size = args.pool_size
372370
submit_topology(
373371
name=args.name,

streamparse/cli/update_virtualenv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _create_or_update_virtualenv(
6767
puts(f"Updating virtualenv: {virtualenv_name}")
6868
pip_path = "/".join((virtualenv_path, "bin", "pip"))
6969
# Make sure we're using latest pip so options work as expected
70-
run_cmd(f"{pip_path} install --upgrade 'pip>=9.0,!=19.0'", user)
70+
run_cmd(f"{pip_path} install --upgrade 'pip>=9.0,!=19.0' setuptools", user)
7171
run_cmd(
7272
(
7373
"{} install -r {} --exists-action w --upgrade "
@@ -155,7 +155,7 @@ def create_or_update_virtualenvs(
155155

156156

157157
def subparser_hook(subparsers):
158-
""" Hook to add subparser for this command. """
158+
"""Hook to add subparser for this command."""
159159
subparser = subparsers.add_parser(
160160
"update_virtualenv", description=__doc__, help=main.__doc__
161161
)
@@ -172,7 +172,7 @@ def subparser_hook(subparsers):
172172

173173

174174
def main(args):
175-
""" Create or update a virtualenv on Storm workers. """
175+
"""Create or update a virtualenv on Storm workers."""
176176
env.pool_size = args.pool_size
177177
create_or_update_virtualenvs(
178178
args.environment,

streamparse/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ def _safe_int(string):
2828
return string
2929

3030

31-
__version__ = "4.1.0"
31+
__version__ = "4.1.1"
3232
VERSION = tuple(_safe_int(x) for x in __version__.split("."))

0 commit comments

Comments
 (0)