one-updater 1.4.0__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 (39) hide show
  1. one_updater-1.4.0/LICENSE.md +21 -0
  2. one_updater-1.4.0/PKG-INFO +164 -0
  3. one_updater-1.4.0/README.md +141 -0
  4. one_updater-1.4.0/one_updater/__init__.py +1 -0
  5. one_updater-1.4.0/one_updater/cli.py +742 -0
  6. one_updater-1.4.0/one_updater/package_managers/__init__.py +39 -0
  7. one_updater-1.4.0/one_updater/package_managers/apt.py +47 -0
  8. one_updater-1.4.0/one_updater/package_managers/base.py +154 -0
  9. one_updater-1.4.0/one_updater/package_managers/basher.py +75 -0
  10. one_updater-1.4.0/one_updater/package_managers/bin.py +106 -0
  11. one_updater-1.4.0/one_updater/package_managers/brew.py +72 -0
  12. one_updater-1.4.0/one_updater/package_managers/cargo.py +86 -0
  13. one_updater-1.4.0/one_updater/package_managers/dnf.py +92 -0
  14. one_updater-1.4.0/one_updater/package_managers/flatpak.py +95 -0
  15. one_updater-1.4.0/one_updater/package_managers/gem.py +55 -0
  16. one_updater-1.4.0/one_updater/package_managers/ghcli.py +54 -0
  17. one_updater-1.4.0/one_updater/package_managers/go.py +284 -0
  18. one_updater-1.4.0/one_updater/package_managers/krew.py +49 -0
  19. one_updater-1.4.0/one_updater/package_managers/micro.py +58 -0
  20. one_updater-1.4.0/one_updater/package_managers/npm.py +54 -0
  21. one_updater-1.4.0/one_updater/package_managers/pacman.py +94 -0
  22. one_updater-1.4.0/one_updater/package_managers/pip.py +290 -0
  23. one_updater-1.4.0/one_updater/package_managers/pipx.py +45 -0
  24. one_updater-1.4.0/one_updater/package_managers/pkgx.py +28 -0
  25. one_updater-1.4.0/one_updater/package_managers/registry.py +83 -0
  26. one_updater-1.4.0/one_updater/package_managers/snap.py +57 -0
  27. one_updater-1.4.0/one_updater/package_managers/tldr.py +24 -0
  28. one_updater-1.4.0/one_updater/package_managers/uv.py +52 -0
  29. one_updater-1.4.0/one_updater/package_managers/vagrant.py +51 -0
  30. one_updater-1.4.0/one_updater.egg-info/PKG-INFO +164 -0
  31. one_updater-1.4.0/one_updater.egg-info/SOURCES.txt +37 -0
  32. one_updater-1.4.0/one_updater.egg-info/dependency_links.txt +1 -0
  33. one_updater-1.4.0/one_updater.egg-info/entry_points.txt +2 -0
  34. one_updater-1.4.0/one_updater.egg-info/requires.txt +14 -0
  35. one_updater-1.4.0/one_updater.egg-info/top_level.txt +1 -0
  36. one_updater-1.4.0/pyproject.toml +80 -0
  37. one_updater-1.4.0/setup.cfg +4 -0
  38. one_updater-1.4.0/tests/test_cli.py +52 -0
  39. one_updater-1.4.0/tests/test_export_import.py +979 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Timothy Bryant
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.4
2
+ Name: one-updater
3
+ Version: 1.4.0
4
+ Summary: One tool many packages
5
+ Author-email: Tim Bryant <timothybryant3@gmail.com>
6
+ Requires-Python: <3.14,>=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE.md
9
+ Requires-Dist: pyyaml
10
+ Requires-Dist: rich
11
+ Requires-Dist: python-semantic-release
12
+ Provides-Extra: dev
13
+ Requires-Dist: autopep8; extra == "dev"
14
+ Requires-Dist: black; extra == "dev"
15
+ Requires-Dist: pytest; extra == "dev"
16
+ Requires-Dist: pre-commit; extra == "dev"
17
+ Requires-Dist: isort; extra == "dev"
18
+ Requires-Dist: pyinstaller; extra == "dev"
19
+ Requires-Dist: pyyaml; extra == "dev"
20
+ Requires-Dist: ansible; extra == "dev"
21
+ Requires-Dist: passlib; extra == "dev"
22
+ Dynamic: license-file
23
+
24
+ # One Updater
25
+
26
+ A flexible package manager updater that helps you keep all your development tools up to date.
27
+
28
+ ## Features
29
+
30
+ - Update multiple package managers with a single command
31
+ - Configure which package managers to update
32
+ - Support for virtual environments and pyenv for Python packages
33
+ - Beautiful command-line interface with rich formatting and logging
34
+ - Cross-platform support
35
+ - Extensible architecture for adding new package managers
36
+
37
+ ## Supported Package Managers
38
+
39
+ - Homebrew
40
+ - pip (with virtualenv/pyenv support)
41
+ - npm
42
+ - cargo
43
+ - gem
44
+ - pipx
45
+ - pacman
46
+ - dnf
47
+ - flatpak
48
+ - pkgx
49
+ - vagrant-plugins
50
+ - micro editor plugins
51
+ - tldr pages
52
+ - go packages
53
+ - apt
54
+ - bin (https://github.com/marcosnils/bin)
55
+ - More coming soon!
56
+
57
+ ## Installation
58
+
59
+ Install from PyPI:
60
+
61
+ ```bash
62
+ pip install one-updater
63
+ ```
64
+
65
+ To upgrade to the latest version:
66
+
67
+ ```bash
68
+ pip install --upgrade one-updater
69
+ ```
70
+
71
+ Use one of the pre-built executables in `one_updater/bin` e.g.:
72
+
73
+ ```bash
74
+ sudo cp one-updater-linux /usr/local/bin/one-updater
75
+ sudo chmod +x /usr/local/bin/one-updater
76
+ ```
77
+
78
+ ## Usage
79
+
80
+ ### Basic Usage
81
+
82
+ Update all enabled package managers:
83
+
84
+ ```bash
85
+ one-updater update
86
+ ```
87
+
88
+ Update specific package managers:
89
+
90
+ ```bash
91
+ one-updater update -m homebrew -m pip
92
+ ```
93
+
94
+ List configured package managers:
95
+
96
+ ```bash
97
+ one-updater list-managers
98
+ ```
99
+
100
+ Initialize a new configuration file:
101
+
102
+ ```bash
103
+ one-updater init
104
+ ```
105
+
106
+ ### Configuration
107
+
108
+ The tool uses a YAML configuration file (default: `~/.config/one-updater/config.yaml`) to specify package manager settings. You can:
109
+
110
+ 1. Enable/disable specific package managers
111
+ 2. Configure virtualenv/pyenv for Python packages
112
+ 3. Customize update commands
113
+ 4. Configure logging and verbosity
114
+
115
+ Example configuration:
116
+
117
+ ```yaml
118
+ verbose: true
119
+ logging:
120
+ level: "INFO"
121
+ format: "%(message)s"
122
+
123
+ package_managers:
124
+ homebrew:
125
+ enabled: true
126
+ commands:
127
+ update: ["brew", "update"]
128
+ upgrade: ["brew", "upgrade"]
129
+
130
+ pip:
131
+ enabled: true
132
+ virtualenv: "/path/to/virtualenv" # Optional
133
+ pyenv: "3.11.0" # Optional
134
+ commands:
135
+ update: ["pip", "install", "--upgrade", "pip"]
136
+ upgrade: ["pip", "list", "--outdated", "--format=json"]
137
+ ```
138
+
139
+ ## Contributing
140
+
141
+ Contributions are welcome! Feel free to:
142
+
143
+ 1. Add support for new package managers
144
+ 2. Improve error handling and logging
145
+ 3. Add new features
146
+ 4. Fix bugs
147
+ 5. Improve documentation
148
+
149
+ Please ensure your changes pass the test suite and code quality checks:
150
+
151
+ ```bash
152
+ # Install development dependencies
153
+ poetry install
154
+
155
+ # Run tests
156
+ poetry run pytest
157
+
158
+ # Run code formatting
159
+ poetry run black .
160
+ ```
161
+
162
+ ## License
163
+
164
+ MIT License
@@ -0,0 +1,141 @@
1
+ # One Updater
2
+
3
+ A flexible package manager updater that helps you keep all your development tools up to date.
4
+
5
+ ## Features
6
+
7
+ - Update multiple package managers with a single command
8
+ - Configure which package managers to update
9
+ - Support for virtual environments and pyenv for Python packages
10
+ - Beautiful command-line interface with rich formatting and logging
11
+ - Cross-platform support
12
+ - Extensible architecture for adding new package managers
13
+
14
+ ## Supported Package Managers
15
+
16
+ - Homebrew
17
+ - pip (with virtualenv/pyenv support)
18
+ - npm
19
+ - cargo
20
+ - gem
21
+ - pipx
22
+ - pacman
23
+ - dnf
24
+ - flatpak
25
+ - pkgx
26
+ - vagrant-plugins
27
+ - micro editor plugins
28
+ - tldr pages
29
+ - go packages
30
+ - apt
31
+ - bin (https://github.com/marcosnils/bin)
32
+ - More coming soon!
33
+
34
+ ## Installation
35
+
36
+ Install from PyPI:
37
+
38
+ ```bash
39
+ pip install one-updater
40
+ ```
41
+
42
+ To upgrade to the latest version:
43
+
44
+ ```bash
45
+ pip install --upgrade one-updater
46
+ ```
47
+
48
+ Use one of the pre-built executables in `one_updater/bin` e.g.:
49
+
50
+ ```bash
51
+ sudo cp one-updater-linux /usr/local/bin/one-updater
52
+ sudo chmod +x /usr/local/bin/one-updater
53
+ ```
54
+
55
+ ## Usage
56
+
57
+ ### Basic Usage
58
+
59
+ Update all enabled package managers:
60
+
61
+ ```bash
62
+ one-updater update
63
+ ```
64
+
65
+ Update specific package managers:
66
+
67
+ ```bash
68
+ one-updater update -m homebrew -m pip
69
+ ```
70
+
71
+ List configured package managers:
72
+
73
+ ```bash
74
+ one-updater list-managers
75
+ ```
76
+
77
+ Initialize a new configuration file:
78
+
79
+ ```bash
80
+ one-updater init
81
+ ```
82
+
83
+ ### Configuration
84
+
85
+ The tool uses a YAML configuration file (default: `~/.config/one-updater/config.yaml`) to specify package manager settings. You can:
86
+
87
+ 1. Enable/disable specific package managers
88
+ 2. Configure virtualenv/pyenv for Python packages
89
+ 3. Customize update commands
90
+ 4. Configure logging and verbosity
91
+
92
+ Example configuration:
93
+
94
+ ```yaml
95
+ verbose: true
96
+ logging:
97
+ level: "INFO"
98
+ format: "%(message)s"
99
+
100
+ package_managers:
101
+ homebrew:
102
+ enabled: true
103
+ commands:
104
+ update: ["brew", "update"]
105
+ upgrade: ["brew", "upgrade"]
106
+
107
+ pip:
108
+ enabled: true
109
+ virtualenv: "/path/to/virtualenv" # Optional
110
+ pyenv: "3.11.0" # Optional
111
+ commands:
112
+ update: ["pip", "install", "--upgrade", "pip"]
113
+ upgrade: ["pip", "list", "--outdated", "--format=json"]
114
+ ```
115
+
116
+ ## Contributing
117
+
118
+ Contributions are welcome! Feel free to:
119
+
120
+ 1. Add support for new package managers
121
+ 2. Improve error handling and logging
122
+ 3. Add new features
123
+ 4. Fix bugs
124
+ 5. Improve documentation
125
+
126
+ Please ensure your changes pass the test suite and code quality checks:
127
+
128
+ ```bash
129
+ # Install development dependencies
130
+ poetry install
131
+
132
+ # Run tests
133
+ poetry run pytest
134
+
135
+ # Run code formatting
136
+ poetry run black .
137
+ ```
138
+
139
+ ## License
140
+
141
+ MIT License
@@ -0,0 +1 @@
1
+ """One Update - A flexible package manager updater."""