dotlocalslashbin 0.0.9__py2.py3-none-any.whl → 0.0.11__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.9
3
+ Version: 0.0.11
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
@@ -12,7 +12,9 @@ Requires-Dist: flit ; extra == "test"
12
12
  Requires-Dist: mypy ; extra == "test"
13
13
  Requires-Dist: nox ; extra == "test"
14
14
  Requires-Dist: pytest ; extra == "test"
15
+ Requires-Dist: reuse ; extra == "test"
15
16
  Requires-Dist: ruff ; extra == "test"
17
+ Requires-Dist: twine ; extra == "test"
16
18
  Requires-Dist: usort ; extra == "test"
17
19
  Project-URL: Home, https://github.com/maxwell-k/dotlocalslashbin/
18
20
  Provides-Extra: test
@@ -44,12 +46,27 @@ Optionally can:
44
46
  \* if the URL is an absolute path on the local file system; it is not downloaded
45
47
  to the cache.
46
48
 
49
+ [uv]: https://github.com/astral-sh/uv
47
50
  [TOML]: https://en.wikipedia.org/wiki/TOML
48
51
 
52
+ ## Installation
53
+
54
+ The recommended way to run `dotlocalslashbin` is with [uv].
55
+
56
+ Command to install the latest released `dotlocalslashbin` from PyPI:
57
+
58
+ uv tool install dotlocalslashbin
59
+
60
+ Command to run latest development version of `dotlocalslashbin` directly from
61
+ GitHub:
62
+
63
+ uv run https://raw.githubusercontent.com/maxwell-k/dotlocalslashbin/refs/heads/main/src/dotlocalslashbin.py --version
64
+
49
65
  ## Examples
50
66
 
51
67
  For example to download `yq` to the current working directory, first save the
52
- following as `yq.toml`, then run the command below:
68
+ following as `yq.toml`, then install with uv (above) and then run the command
69
+ below:
53
70
 
54
71
  ```
55
72
  [yq]
@@ -0,0 +1,5 @@
1
+ dotlocalslashbin.py,sha256=oRfC70OnWF3Kn7gNCCQjZKnIbe3XBEMNZcZxbZhXzz4,5963
2
+ dotlocalslashbin-0.0.11.dist-info/METADATA,sha256=wMkLqzhklQJSk3U4z75xzfLthuQrAYHg0KUCzZnZkQU,3048
3
+ dotlocalslashbin-0.0.11.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
4
+ dotlocalslashbin-0.0.11.dist-info/entry_points.txt,sha256=eK8C0lW2h7WAcr78hM-_OBrLotRptdLvjbnT7f67m34,58
5
+ dotlocalslashbin-0.0.11.dist-info/RECORD,,
dotlocalslashbin.py CHANGED
@@ -2,6 +2,10 @@
2
2
  # src/dotlocalslashbin.py
3
3
  # Copyright 2022 Keith Maxwell
4
4
  # SPDX-License-Identifier: MPL-2.0
5
+ # /// script
6
+ # requires-python = ">=3.11"
7
+ # dependencies = []
8
+ # ///
5
9
  """Download and extract files to `~/.local/bin/`."""
6
10
  import tarfile
7
11
  from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace
@@ -19,7 +23,7 @@ from urllib.request import urlopen
19
23
  from zipfile import ZipFile
20
24
 
21
25
 
22
- __version__ = "0.0.9"
26
+ __version__ = "0.0.11"
23
27
 
24
28
  _OUTPUT = Path("~/.local/bin/")
25
29
  _SHA512_LENGTH = 128
@@ -1,5 +0,0 @@
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,,