dotx 2.0.0__tar.gz → 2.0.2__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 (28) hide show
  1. {dotx-2.0.0/src/dotx.egg-info → dotx-2.0.2}/PKG-INFO +3 -25
  2. {dotx-2.0.0 → dotx-2.0.2}/pyproject.toml +4 -4
  3. dotx-2.0.2/src/dotx/__init__.py +8 -0
  4. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/cli.py +12 -0
  5. {dotx-2.0.0 → dotx-2.0.2/src/dotx.egg-info}/PKG-INFO +3 -25
  6. dotx-2.0.0/src/dotx/__init__.py +0 -0
  7. {dotx-2.0.0 → dotx-2.0.2}/LICENSE +0 -0
  8. {dotx-2.0.0 → dotx-2.0.2}/README.md +0 -0
  9. {dotx-2.0.0 → dotx-2.0.2}/setup.cfg +0 -0
  10. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/database.py +0 -0
  11. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/ignore.py +0 -0
  12. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/install.py +0 -0
  13. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/options.py +0 -0
  14. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/plan.py +0 -0
  15. {dotx-2.0.0 → dotx-2.0.2}/src/dotx/uninstall.py +0 -0
  16. {dotx-2.0.0 → dotx-2.0.2}/src/dotx.egg-info/SOURCES.txt +0 -0
  17. {dotx-2.0.0 → dotx-2.0.2}/src/dotx.egg-info/dependency_links.txt +0 -0
  18. {dotx-2.0.0 → dotx-2.0.2}/src/dotx.egg-info/entry_points.txt +0 -0
  19. {dotx-2.0.0 → dotx-2.0.2}/src/dotx.egg-info/requires.txt +0 -0
  20. {dotx-2.0.0 → dotx-2.0.2}/src/dotx.egg-info/top_level.txt +0 -0
  21. {dotx-2.0.0 → dotx-2.0.2}/tests/test_cli.py +0 -0
  22. {dotx-2.0.0 → dotx-2.0.2}/tests/test_cli_database.py +0 -0
  23. {dotx-2.0.0 → dotx-2.0.2}/tests/test_ignore.py +0 -0
  24. {dotx-2.0.0 → dotx-2.0.2}/tests/test_ignore_rules.py +0 -0
  25. {dotx-2.0.0 → dotx-2.0.2}/tests/test_install.py +0 -0
  26. {dotx-2.0.0 → dotx-2.0.2}/tests/test_options.py +0 -0
  27. {dotx-2.0.0 → dotx-2.0.2}/tests/test_plan.py +0 -0
  28. {dotx-2.0.0 → dotx-2.0.2}/tests/test_uninstall.py +0 -0
@@ -1,38 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dotx
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A command-line tool to install a link-farm to your dotfiles
5
5
  Author-email: Wolf <Wolf@zv.cx>
6
- License: MIT License
7
-
8
- Copyright (c) 2022 Wolf
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
-
6
+ License-Expression: MIT
28
7
  Project-URL: Homepage, https://github.com/wolf/dotx
29
8
  Project-URL: Repository, https://github.com/wolf/dotx
30
9
  Project-URL: Issues, https://github.com/wolf/dotx/issues
31
10
  Keywords: dotfiles,symlinks,configuration,link-farm
32
- Classifier: Development Status :: 4 - Beta
11
+ Classifier: Development Status :: 5 - Production/Stable
33
12
  Classifier: Environment :: Console
34
13
  Classifier: Intended Audience :: Developers
35
- Classifier: License :: OSI Approved :: MIT License
36
14
  Classifier: Operating System :: OS Independent
37
15
  Classifier: Programming Language :: Python :: 3
38
16
  Classifier: Programming Language :: Python :: 3.13
@@ -1,19 +1,19 @@
1
1
  [project]
2
2
  name = "dotx"
3
- version = "2.0.0"
3
+ version = "2.0.2"
4
4
  description = "A command-line tool to install a link-farm to your dotfiles"
5
5
  authors = [
6
6
  { name = "Wolf", email = "Wolf@zv.cx" }
7
7
  ]
8
- license = { file = "LICENSE" }
8
+ license = "MIT"
9
+ license-files = ["LICENSE"]
9
10
  readme = "README.md"
10
11
  requires-python = ">=3.13"
11
12
  keywords = ["dotfiles", "symlinks", "configuration", "link-farm"]
12
13
  classifiers = [
13
- "Development Status :: 4 - Beta",
14
+ "Development Status :: 5 - Production/Stable",
14
15
  "Environment :: Console",
15
16
  "Intended Audience :: Developers",
16
- "License :: OSI Approved :: MIT License",
17
17
  "Operating System :: OS Independent",
18
18
  "Programming Language :: Python :: 3",
19
19
  "Programming Language :: Python :: 3.13",
@@ -0,0 +1,8 @@
1
+ """dotx - A command-line tool to install a link-farm to your dotfiles."""
2
+
3
+ from importlib.metadata import version, PackageNotFoundError
4
+
5
+ try:
6
+ __version__ = version("dotx")
7
+ except PackageNotFoundError:
8
+ __version__ = "unknown"
@@ -22,6 +22,7 @@ import click
22
22
  import typer
23
23
  from loguru import logger
24
24
 
25
+ from dotx import __version__
25
26
  from dotx.database import InstallationDB
26
27
  from dotx.install import plan_install
27
28
  from dotx.options import set_option
@@ -34,6 +35,13 @@ app = typer.Typer(
34
35
  )
35
36
 
36
37
 
38
+ def version_callback(value: bool):
39
+ """Print version and exit."""
40
+ if value:
41
+ typer.echo(f"dotx version {__version__}")
42
+ raise typer.Exit()
43
+
44
+
37
45
  def configure_logging(debug: bool, verbose: bool, log: Optional[Path]):
38
46
  """Configure loguru logging based on command-line options."""
39
47
  logger.remove() # Remove default handler
@@ -84,6 +92,10 @@ def main(
84
92
  dry_run: Annotated[
85
93
  bool, typer.Option("--dry-run/--no-dry-run", help="Just echo; don't actually (un)install.")
86
94
  ] = False,
95
+ version: Annotated[
96
+ Optional[bool],
97
+ typer.Option("--version", "-V", callback=version_callback, is_eager=True, help="Show version and exit."),
98
+ ] = None,
87
99
  ):
88
100
  """Manage a link farm: (un)install groups of links from "source packages"."""
89
101
  # Store options in context for access by commands
@@ -1,38 +1,16 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dotx
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: A command-line tool to install a link-farm to your dotfiles
5
5
  Author-email: Wolf <Wolf@zv.cx>
6
- License: MIT License
7
-
8
- Copyright (c) 2022 Wolf
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all
18
- copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
- SOFTWARE.
27
-
6
+ License-Expression: MIT
28
7
  Project-URL: Homepage, https://github.com/wolf/dotx
29
8
  Project-URL: Repository, https://github.com/wolf/dotx
30
9
  Project-URL: Issues, https://github.com/wolf/dotx/issues
31
10
  Keywords: dotfiles,symlinks,configuration,link-farm
32
- Classifier: Development Status :: 4 - Beta
11
+ Classifier: Development Status :: 5 - Production/Stable
33
12
  Classifier: Environment :: Console
34
13
  Classifier: Intended Audience :: Developers
35
- Classifier: License :: OSI Approved :: MIT License
36
14
  Classifier: Operating System :: OS Independent
37
15
  Classifier: Programming Language :: Python :: 3
38
16
  Classifier: Programming Language :: Python :: 3.13
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes