skilleter-thingy 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl

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.

Potentially problematic release.


This version of skilleter-thingy might be problematic. Click here for more details.

@@ -219,6 +219,8 @@ def select_git_repos(args, config):
219
219
  # If repos are specified, then only match according to exact name match,
220
220
  # exact path match or wildcard match
221
221
 
222
+ repo_abs_path = absolute_repo_path(args, repo_path)
223
+
222
224
  if args.repos:
223
225
  for entry in args.repos:
224
226
  if config[repo_path]['repo name'] == entry:
@@ -242,13 +244,13 @@ def select_git_repos(args, config):
242
244
  # If branched specified, only match if the repo is matched _and_ branched
243
245
 
244
246
  if matching and args.branched:
245
- if git.branch(path=repo_path) == config[repo_path]['default branch']:
247
+ if git.branch(path=repo_abs_path) == config[repo_path]['default branch']:
246
248
  matching = False
247
249
 
248
250
  # If modified specified, only match if the repo is matched _and_ modified
249
251
 
250
252
  if matching and args.modified:
251
- if not git.status(path=repo_path):
253
+ if not git.status(path=repo_abs_path):
252
254
  matching = False
253
255
 
254
256
  # If tag filtering specified, only match if the repo is tagged with one of the specified tags
@@ -380,16 +382,18 @@ def mg_init(args, config, console):
380
382
  # Add a new configuration entry containing the default branch, remote origin
381
383
  # (if there is one) and name
382
384
 
385
+ abs_repo_path = absolute_repo_path(args, repo)
386
+
383
387
  config[repo] = { }
384
388
 
385
- default_branch = git.branch(path=repo)
389
+ default_branch = git.branch(path=abs_repo_path)
386
390
 
387
391
  if not default_branch:
388
392
  error(f'Unable to determine default branch in [BLUE:{repo}]')
389
393
 
390
394
  config[repo]['default branch'] = default_branch
391
395
 
392
- remote = git.remotes(path=repo)
396
+ remote = git.remotes(path=abs_repo_path)
393
397
 
394
398
  if 'origin' in remote:
395
399
  config[repo]['origin'] = remote['origin']
@@ -29,7 +29,8 @@ import re
29
29
 
30
30
  ANSI_REGEXES = [
31
31
  re.compile(r'\x1b\[([0-9][0-9;]*)*m'),
32
- re.compile(r'\x1b\[m')
32
+ re.compile(r'\x1b\[m'),
33
+ re.compile(r'\x1b\[[0-9][A-Z]'),
33
34
  ]
34
35
 
35
36
  # Match and ANSI colour control sequence and capture the colour bit
@@ -58,7 +59,7 @@ RE_TIME = [
58
59
 
59
60
  {'regex': re.compile(r'[0-9]([.][0-9]*)*\s*(second[s]?)'), 'replace': '{ELAPSED}'},
60
61
 
61
- {'find': '\{DATE\} \{TIME\}', 'replace': '{DATE+TIME}'},
62
+ {'find': '{DATE} {TIME}', 'replace': '{DATE+TIME}'},
62
63
  {'regex': re.compile(r'[0-9]+m *[0-9]+s'), 'replace': '{ELAPSED}'},
63
64
  ]
64
65
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: skilleter_thingy
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: A collection of useful utilities, mainly aimed at making Git more friendly
5
5
  Author-email: John Skilleter <john@skilleter.org.uk>
6
6
  Project-URL: Home, https://skilleter.org.uk
@@ -24,7 +24,7 @@ skilleter_thingy/gl.py,sha256=9zbGpKxw6lX9RghLkdy-Q5sZlqtbB3uGFO04qTu1dH8,5954
24
24
  skilleter_thingy/gphotosync.py,sha256=M0yzt5IxCHezkCOQwz3Chn8oudY_M7PRffboIUFLedk,22477
25
25
  skilleter_thingy/linecount.py,sha256=ehTN6VD76i4U5k6dXuYoiqSRHI67_BP-bziklNAJSKY,4309
26
26
  skilleter_thingy/moviemover.py,sha256=QzUAWQzQ1AWWREIhl-VMaLo2h8MMhOekBnao5jGWV1s,4470
27
- skilleter_thingy/multigit.py,sha256=SW7Db9DaucTdTq7ozqzbRvIKObt8XhX4z4J5p-oiGO0,27667
27
+ skilleter_thingy/multigit.py,sha256=o_gW9vlPJ_uUNRxRYm92kBUl1pQKpt76xoVIBg6XaLo,27814
28
28
  skilleter_thingy/photodupe.py,sha256=l0hbzSLb2Vk2ceteg-x9fHXCEE1uUuFo84hz5rsZUPA,4184
29
29
  skilleter_thingy/phototidier.py,sha256=BOu-cKHMivDlBqlRqv7sL3J6Ix1K2dxWWNcderldyZo,7818
30
30
  skilleter_thingy/py_audit.py,sha256=xJm5k5qyeA6ii8mODa4dOkmP8L1drv94UHuxR54RsIM,4384
@@ -58,11 +58,11 @@ skilleter_thingy/thingy/popup.py,sha256=jW-nbpdeswqEMTli7OmBv1J8XQsvFoMI0J33O6dO
58
58
  skilleter_thingy/thingy/process.py,sha256=WJLg3js1zdgI7Nlkt7e5ICltkjXcA9P1f-LWPSZCdWs,3570
59
59
  skilleter_thingy/thingy/run.py,sha256=6SNKWF01fSxzB10GMU9ajraXYZqAL1w0PXkqjJdr1Uo,12611
60
60
  skilleter_thingy/thingy/tfm_pane.py,sha256=oqy5zBzKwfbjbGqetbbhpKi4x5He7sl4qkmhUeqtdZc,19789
61
- skilleter_thingy/thingy/tidy.py,sha256=71DCyj0VJrj52RmjQyj1eOiQJIfy5EIPHuThOrS6ZTA,5876
61
+ skilleter_thingy/thingy/tidy.py,sha256=UWpBWuIMCE1UonLJErb41yW3RtpXrK_bt4Z4cZR-eDU,5910
62
62
  skilleter_thingy/thingy/venv_template.py,sha256=SsVNvSwojd8NnFeQaZPCRQYTNdwJRplpZpygbUEXRnY,1015
63
- skilleter_thingy-0.1.5.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
64
- skilleter_thingy-0.1.5.dist-info/METADATA,sha256=5JrquqaBtg8bIaA3nafDa8cxTfA-Jeevr3ZWfE3NnuY,29686
65
- skilleter_thingy-0.1.5.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
66
- skilleter_thingy-0.1.5.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
67
- skilleter_thingy-0.1.5.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
68
- skilleter_thingy-0.1.5.dist-info/RECORD,,
63
+ skilleter_thingy-0.1.7.dist-info/LICENSE,sha256=ljOS4DjXvqEo5VzGfdaRwgRZPbNScGBmfwyC8PChvmQ,32422
64
+ skilleter_thingy-0.1.7.dist-info/METADATA,sha256=Rq3d_ivZOANFFtlWwG-FQo72gVMunqY4QAhKCpZpnKQ,29686
65
+ skilleter_thingy-0.1.7.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
66
+ skilleter_thingy-0.1.7.dist-info/entry_points.txt,sha256=u5ymS-KPljIGTnprV5yJsAjz7qgeT2BZ-Qo_Con_PFM,2145
67
+ skilleter_thingy-0.1.7.dist-info/top_level.txt,sha256=8-JhgToBBiWURunmvfpSxEvNkDHQQ7r25-aBXtZv61g,17
68
+ skilleter_thingy-0.1.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (76.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5