unknown-cli 0.9.3__tar.gz → 0.9.5__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.3 → unknown-cli-0.9.5}/PKG-INFO +1 -1
  2. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/PKG-INFO +1 -1
  3. unknown-cli-0.9.5/unknowncli/VERSION +1 -0
  4. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/project.py +1 -1
  5. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/task.py +10 -5
  6. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/utils.py +1 -1
  7. unknown-cli-0.9.3/unknowncli/VERSION +0 -1
  8. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/README.md +0 -0
  9. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/setup.cfg +0 -0
  10. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/setup.py +0 -0
  11. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/SOURCES.txt +0 -0
  12. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/dependency_links.txt +0 -0
  13. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/entry_points.txt +0 -0
  14. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/requires.txt +0 -0
  15. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknown_cli.egg-info/top_level.txt +0 -0
  16. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/__init__.py +0 -0
  17. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/__main__.py +0 -0
  18. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/__init__.py +0 -0
  19. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/preflight.py +0 -0
  20. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/commands/unreal.py +0 -0
  21. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/data/.p4ignore.txt +0 -0
  22. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/set_registry_keys.py +0 -0
  23. {unknown-cli-0.9.3 → unknown-cli-0.9.5}/unknowncli/set_url_handler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unknown-cli
3
- Version: 0.9.3
3
+ Version: 0.9.5
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.3
3
+ Version: 0.9.5
4
4
  Summary: Unknown Commandline Tool
5
5
  Home-page: UNKNOWN
6
6
  Author:
@@ -0,0 +1 @@
1
+ 0.9.5
@@ -201,7 +201,7 @@ def setup(
201
201
  except:
202
202
  secho("Access denied setting subst registry key. Running elevated process...")
203
203
  path = Path(__file__).parent.parent / "set_registry_keys.py"
204
- cmd = f"{sys.executable} {path.resolve()} \"{subst_cmd}\""
204
+ cmd = f"{sys.executable} \"{path.resolve()}\" \"{subst_cmd}\""
205
205
  check_call(cmd)
206
206
 
207
207
  h = winreg.CreateKey(winreg.HKEY_CURRENT_USER, "SOFTWARE\\perforce\\environment")
@@ -127,9 +127,14 @@ def create(label: str = Option(None, prompt="Task branch label")):
127
127
 
128
128
  if not label:
129
129
  abort("Aborted.")
130
- current_stream = get_current_stream()["Stream"]
131
- if current_stream.lower() not in STREAM_LIST_LOWER:
132
- abort(f"You are working in stream {current_stream}. Please first run 'unk task switch' to a parent stream.\nValid parent streams:{STREAM_LIST_STRING}")
130
+ # This needs to be lower() when used as the parent for the new task stream.
131
+ # TC is case sensitive so the parent stream needs to be '//project/sn2-main-ue'. (bug TW-87208)
132
+ # You can edit a stream if you need to change the parent to lowercase:
133
+ # p4 stream -o -v //project/<stream_name> > spec.txt
134
+ # p4 stream -i -f < spec.txt
135
+ current_stream_lower = get_current_stream()["Stream"].lower()
136
+ if current_stream_lower not in STREAM_LIST_LOWER:
137
+ abort(f"You are working in stream {current_stream_lower}. Please first run 'unk task switch' to a parent stream.\nValid parent streams:{STREAM_LIST_STRING}")
133
138
 
134
139
  ret = p4.run_opened()
135
140
  if len(ret):
@@ -147,12 +152,12 @@ def create(label: str = Option(None, prompt="Task branch label")):
147
152
  label = label.replace(" ", "_").lower()
148
153
  stream_name = f"{p4.user}-{d}-{label}"
149
154
  full_stream_name = f"//Project/{stream_name}"
150
- secho(f"Creating task stream {stream_name} from {current_stream} ...")
155
+ secho(f"Creating task stream {stream_name} from {current_stream_lower} ...")
151
156
  args = f"""
152
157
  Stream: {full_stream_name}
153
158
  Owner: {p4.user}
154
159
  Name: {stream_name}
155
- Parent: {current_stream}
160
+ Parent: {current_stream_lower}
156
161
  Type: task
157
162
  Description:
158
163
  Created by {p4.user}.
@@ -351,5 +351,5 @@ def set_url_handler(force=False):
351
351
 
352
352
  if add_key:
353
353
  path = Path(__file__).parent / "set_url_handler.py"
354
- cmd = f"{sys.executable} {path.resolve()} {exe}"
354
+ cmd = f"{sys.executable} \"{path.resolve()}\" {exe}"
355
355
  call(cmd)
@@ -1 +0,0 @@
1
- 0.9.3
File without changes
File without changes
File without changes