dotlocalslashbin 0.0.9__tar.gz → 0.0.10__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.
- {dotlocalslashbin-0.0.9 → dotlocalslashbin-0.0.10}/PKG-INFO +19 -2
- {dotlocalslashbin-0.0.9 → dotlocalslashbin-0.0.10}/README.md +16 -1
- {dotlocalslashbin-0.0.9 → dotlocalslashbin-0.0.10}/pyproject.toml +2 -0
- {dotlocalslashbin-0.0.9 → dotlocalslashbin-0.0.10}/src/dotlocalslashbin.py +5 -1
- {dotlocalslashbin-0.0.9 → dotlocalslashbin-0.0.10}/LICENSES/MPL-2.0.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dotlocalslashbin
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
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/dotfiles/refs/heads/main/dotlocalslashbin.py --help
|
|
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
|
|
68
|
+
following as `yq.toml`, then install with uv (above) and then run the command
|
|
69
|
+
below:
|
|
53
70
|
|
|
54
71
|
```
|
|
55
72
|
[yq]
|
|
@@ -25,12 +25,27 @@ Optionally can:
|
|
|
25
25
|
\* if the URL is an absolute path on the local file system; it is not downloaded
|
|
26
26
|
to the cache.
|
|
27
27
|
|
|
28
|
+
[uv]: https://github.com/astral-sh/uv
|
|
28
29
|
[TOML]: https://en.wikipedia.org/wiki/TOML
|
|
29
30
|
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
The recommended way to run `dotlocalslashbin` is with [uv].
|
|
34
|
+
|
|
35
|
+
Command to install the latest released `dotlocalslashbin` from PyPI:
|
|
36
|
+
|
|
37
|
+
uv tool install dotlocalslashbin
|
|
38
|
+
|
|
39
|
+
Command to run latest development version of `dotlocalslashbin` directly from
|
|
40
|
+
GitHub:
|
|
41
|
+
|
|
42
|
+
uv run https://raw.githubusercontent.com/maxwell-k/dotfiles/refs/heads/main/dotlocalslashbin.py --help
|
|
43
|
+
|
|
30
44
|
## Examples
|
|
31
45
|
|
|
32
46
|
For example to download `yq` to the current working directory, first save the
|
|
33
|
-
following as `yq.toml`, then run the command
|
|
47
|
+
following as `yq.toml`, then install with uv (above) and then run the command
|
|
48
|
+
below:
|
|
34
49
|
|
|
35
50
|
```
|
|
36
51
|
[yq]
|
|
@@ -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.
|
|
26
|
+
__version__ = "0.0.10"
|
|
23
27
|
|
|
24
28
|
_OUTPUT = Path("~/.local/bin/")
|
|
25
29
|
_SHA512_LENGTH = 128
|
|
File without changes
|