unknown-cli 0.9.6__tar.gz → 0.9.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/PKG-INFO +1 -1
  2. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/PKG-INFO +1 -1
  3. unknown-cli-0.9.7/unknowncli/VERSION +1 -0
  4. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/commands/preflight.py +4 -5
  5. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/commands/project.py +1 -1
  6. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/commands/task.py +12 -6
  7. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/commands/unreal.py +3 -3
  8. unknown-cli-0.9.6/unknowncli/VERSION +0 -1
  9. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/README.md +0 -0
  10. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/setup.cfg +0 -0
  11. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/setup.py +0 -0
  12. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/SOURCES.txt +0 -0
  13. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/dependency_links.txt +0 -0
  14. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/entry_points.txt +0 -0
  15. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/requires.txt +0 -0
  16. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknown_cli.egg-info/top_level.txt +0 -0
  17. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/__init__.py +0 -0
  18. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/__main__.py +0 -0
  19. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/commands/__init__.py +0 -0
  20. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/data/.p4ignore.txt +0 -0
  21. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/set_registry_keys.py +0 -0
  22. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/set_url_handler.py +0 -0
  23. {unknown-cli-0.9.6 → unknown-cli-0.9.7}/unknowncli/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -0,0 +1 @@
1
+ 0.9.7
@@ -504,7 +504,7 @@ def sync_scripts():
504
504
  # Use 'p4 where' on the local path to figure out where the scripts depot path would be.
505
505
  # Note this is needed because the stream path can be different from the actual depot path.
506
506
  try:
507
- scripts_depot_path = p4.run_where(f"{client_root}\{SCRIPTS_DIR}\*")[0]["depotFile"]
507
+ scripts_depot_path = p4.run_where(os.path.join(client_root, SCRIPTS_DIR, "*"))[0]["depotFile"]
508
508
  except:
509
509
  # Path is not under the root which will be the case for generated unix Swarm workspaces.
510
510
  continue
@@ -517,17 +517,16 @@ def sync_scripts():
517
517
 
518
518
 
519
519
  def get_script_path(script_file_name):
520
- main_root = f"s:/sn2-main/{SCRIPTS_DIR}"
521
- main_path = f"{main_root}/{script_file_name}"
520
+ main_path = os.path.join("s:", os.sep, "sn2-main", SCRIPTS_DIR, script_file_name)
522
521
  if os.path.isfile(main_path):
523
522
  return main_path
524
523
  if p4_client:
525
- p4_path = f"{get_client_root(p4_client)}/{SCRIPTS_DIR}/{script_file_name}"
524
+ p4_path = os.path.join(get_client_root(p4_client), SCRIPTS_DIR, script_file_name)
526
525
  if os.path.isfile(p4_path):
527
526
  return p4_path
528
527
  client_root = p4.run_info()[0]["clientRoot"]
529
528
  if client_root:
530
- p4_path = f"{client_root}/{SCRIPTS_DIR}/{script_file_name}"
529
+ p4_path = os.path.join(client_root, SCRIPTS_DIR, script_file_name)
531
530
  if os.path.isfile(p4_path):
532
531
  return p4_path
533
532
  abort(f"Failed to find script '{script_file_name}', post for help on Slack!")
@@ -224,7 +224,7 @@ def setup(
224
224
  else:
225
225
  computer_name = input
226
226
  for stream_name, stream in STREAMS.items():
227
- mapping = f"{root_path}/{stream_name}"
227
+ mapping = os.path.join(root_path, stream_name)
228
228
  found = False
229
229
  for r in all_client_specs:
230
230
  root = r["Root"].lower()
@@ -1,5 +1,6 @@
1
1
  import datetime
2
2
  import logging
3
+ import os
3
4
  import socket
4
5
  import sys
5
6
  from ..utils import abort
@@ -114,7 +115,7 @@ def sync():
114
115
  try:
115
116
  ret = p4.run_client("-o")[0]
116
117
  root_path = ret["Root"]
117
- p4.run_sync("-q", f"{root_path}/...")
118
+ p4.run_sync("-q", os.path.join(root_path, "..."))
118
119
  except P4Exception as e:
119
120
  print(e)
120
121
 
@@ -333,7 +334,7 @@ def mergedown(nosubmit: Optional[bool] = Option(False, help="Do not submit the c
333
334
  echo(str(e))
334
335
  progress.update(task, advance=1, description="..." + depotFile[-50:])
335
336
  try:
336
- ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", f"{root_path}/...")
337
+ ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", os.path.join(root_path, "..."))
337
338
  except P4Exception as e:
338
339
  echo(str(e))
339
340
 
@@ -384,7 +385,7 @@ def mergedown(nosubmit: Optional[bool] = Option(False, help="Do not submit the c
384
385
  secho("All Unresolved files have been overwritten by parent stream")
385
386
 
386
387
  try:
387
- ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", f"{root_path}/...")
388
+ ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", os.path.join(root_path, "..."))
388
389
  except P4Exception as e:
389
390
  echo(str(e))
390
391
  filelist = ""
@@ -410,14 +411,19 @@ Files:
410
411
  p4.run_submit("-i")
411
412
 
412
413
  try:
413
- ret = p4.run_resolve("-f", "-am", "-as", f"{root_path}/...")
414
+ ret = p4.run_resolve("-f", "-am", "-as", os.path.join(root_path, "..."))
414
415
  except P4Exception as e:
415
416
  if "no file(s) to resolve" not in str(e):
416
417
  raise
417
418
  try:
418
- ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", f"{root_path}/...")
419
+ ret = p4.run_fstat("-Olhp", "-Rco", "-e", "default", os.path.join(root_path, "..."))
419
420
  except P4Exception as e:
420
- if "not opened on this client." in str(e) or "no such file(s)." in str(e):
421
+ empty_changelist_msg_list = [
422
+ "not opened on this client.",
423
+ "not opened in that changelist",
424
+ "no such file(s)."
425
+ ]
426
+ if any([msg for msg in empty_changelist_msg_list if msg in str(e)]):
421
427
  secho(f"Your task stream is now up to date with {parent_stream}", fg="green")
422
428
  return
423
429
  else:
@@ -1,4 +1,4 @@
1
- import time
1
+ import time
2
2
  import requests
3
3
  import logging
4
4
  from pathlib import Path
@@ -49,7 +49,7 @@ def diff(first, second):
49
49
  abort(f"{first} or {second} not found")
50
50
  secho(f"Diffing the following files:\n {first}\n {second}", bold=True)
51
51
 
52
- # with open("c:/temp/out.log", "w") as f:
52
+ # with open("c:\\temp\\out.log", "w") as f:
53
53
  # f.write(f"Diffing the following files:\n {first}\n {second}")
54
54
  left = quote_plus(first)
55
55
  right = quote_plus(second)
@@ -60,7 +60,7 @@ def diff(first, second):
60
60
  print(resp.text)
61
61
  except Exception as e:
62
62
  raise
63
- # with open("c:/temp/out.log", "w") as f:
63
+ # with open("c:\\temp\\out.log", "w") as f:
64
64
  # f.write(str(e))
65
65
 
66
66
  @app.command()
@@ -1 +0,0 @@
1
- 0.9.6
File without changes
File without changes
File without changes