dotlocalslashbin 0.0.8__py2.py3-none-any.whl → 0.0.9__py2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dotlocalslashbin
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Download and extract files to `~/.local/bin/`.
5
5
  Author-email: Keith Maxwell <keith.maxwell@gmail.com>
6
6
  Description-Content-Type: text/markdown
@@ -11,6 +11,7 @@ Requires-Dist: codespell ; extra == "test"
11
11
  Requires-Dist: flit ; extra == "test"
12
12
  Requires-Dist: mypy ; extra == "test"
13
13
  Requires-Dist: nox ; extra == "test"
14
+ Requires-Dist: pytest ; extra == "test"
14
15
  Requires-Dist: ruff ; extra == "test"
15
16
  Requires-Dist: usort ; extra == "test"
16
17
  Project-URL: Home, https://github.com/maxwell-k/dotlocalslashbin/
@@ -0,0 +1,5 @@
1
+ dotlocalslashbin.py,sha256=0fye6NwZ7ieIwr7NfoKcPWvXcyTZAmZZlMquN8wFJy8,5894
2
+ dotlocalslashbin-0.0.9.dist-info/METADATA,sha256=o-FrDcilOcVyxmFSojEEZdn9Xh2_WC-Jp400lydLyoI,2502
3
+ dotlocalslashbin-0.0.9.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
4
+ dotlocalslashbin-0.0.9.dist-info/entry_points.txt,sha256=eK8C0lW2h7WAcr78hM-_OBrLotRptdLvjbnT7f67m34,58
5
+ dotlocalslashbin-0.0.9.dist-info/RECORD,,
dotlocalslashbin.py CHANGED
@@ -19,9 +19,9 @@ from urllib.request import urlopen
19
19
  from zipfile import ZipFile
20
20
 
21
21
 
22
- __version__ = "0.0.8"
22
+ __version__ = "0.0.9"
23
23
 
24
- DEFAULT_OUTPUT = Path("~/.local/bin/")
24
+ _OUTPUT = Path("~/.local/bin/")
25
25
  _SHA512_LENGTH = 128
26
26
 
27
27
 
@@ -84,7 +84,7 @@ def main() -> int:
84
84
  print(f"Error {e.code} downloading {e.url}")
85
85
  return 1
86
86
 
87
- arg0 = item.name if args.output == DEFAULT_OUTPUT else str(item.target)
87
+ arg0 = item.name if args.output == _OUTPUT else str(item.target.absolute())
88
88
  print(" ".join(("#" if item.version else "$", arg0, item.version or "")))
89
89
  if item.version:
90
90
  run([arg0, item.version], check=True)
@@ -135,7 +135,7 @@ def _parse_args() -> _CustomNamespace:
135
135
  help_ = "TOML specification"
136
136
  parser.add_argument("--input", default="bin.toml", help=help_, type=Path)
137
137
  help_ = "Target directory"
138
- parser.add_argument("--output", default=DEFAULT_OUTPUT, help=help_, type=Path)
138
+ parser.add_argument("--output", default=_OUTPUT, help=help_, type=Path)
139
139
  help_ = "Output directory"
140
140
  default = "~/.cache/dotlocalslashbin/"
141
141
  parser.add_argument("--downloaded", default=default, help=help_, type=Path)
@@ -1,5 +0,0 @@
1
- dotlocalslashbin.py,sha256=GVz-O7DMLnq0MbJMrn7RdDJUoiXpoWewYvOcFjDd08Q,5904
2
- dotlocalslashbin-0.0.8.dist-info/METADATA,sha256=6Kzw5I9vuP68MBwJR3X64LDM9Y59lfEkNI1sIYj5mqk,2462
3
- dotlocalslashbin-0.0.8.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
4
- dotlocalslashbin-0.0.8.dist-info/entry_points.txt,sha256=eK8C0lW2h7WAcr78hM-_OBrLotRptdLvjbnT7f67m34,58
5
- dotlocalslashbin-0.0.8.dist-info/RECORD,,