versionator 0.0.4__tar.gz → 0.0.6__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.
- {versionator-0.0.4 → versionator-0.0.6}/PKG-INFO +3 -2
- {versionator-0.0.4 → versionator-0.0.6}/versionator/__init__.py +1 -1
- {versionator-0.0.4 → versionator-0.0.6}/versionator/__main__.py +9 -5
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/PKG-INFO +3 -2
- {versionator-0.0.4 → versionator-0.0.6}/LICENSE +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/README.md +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/pyproject.toml +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/setup.cfg +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/SOURCES.txt +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/dependency_links.txt +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/entry_points.txt +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/requires.txt +0 -0
- {versionator-0.0.4 → versionator-0.0.6}/versionator.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: versionator
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: A tool for managing Python packages
|
|
5
5
|
Home-page: https://ktpanda.org/software/versionator
|
|
6
6
|
Author: Katie Rust
|
|
@@ -12,6 +12,7 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: argcomplete>=2.0.0
|
|
15
16
|
|
|
16
17
|
versionator
|
|
17
18
|
===========
|
|
@@ -197,8 +197,8 @@ def find_version_files(base):
|
|
|
197
197
|
|
|
198
198
|
yield from walk_tree(
|
|
199
199
|
base,
|
|
200
|
-
filter_dir=lambda path: path.name not in {'venv', 'build', 'dist', 'lib', 'site-packages'},
|
|
201
|
-
filter_file=lambda path: path.suffix
|
|
200
|
+
filter_dir=lambda path: path.name not in {'venv', 'build', 'dist', 'lib', 'site-packages', '.git'},
|
|
201
|
+
filter_file=lambda path: path.suffix in {'.py', ''}
|
|
202
202
|
)
|
|
203
203
|
|
|
204
204
|
def find_version_data(base):
|
|
@@ -206,8 +206,9 @@ def find_version_data(base):
|
|
|
206
206
|
current_version = None
|
|
207
207
|
for path in find_version_files(base):
|
|
208
208
|
try:
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
# If the file is not UTF-8, just ignore it
|
|
210
|
+
text = path.read_text(encoding='utf8')
|
|
211
|
+
except (FileNotFoundError, UnicodeDecodeError):
|
|
211
212
|
continue
|
|
212
213
|
|
|
213
214
|
m = (RX_VERSION_NOQUOTE if path.name == 'setup.cfg' else RX_VERSION_QUOTE).search(text)
|
|
@@ -342,7 +343,10 @@ def main():
|
|
|
342
343
|
cfg = read_configuration('setup.cfg')
|
|
343
344
|
opts = cfg.get('options', {})
|
|
344
345
|
reqs = opts.get('install_requires', [])
|
|
345
|
-
|
|
346
|
+
if reqs:
|
|
347
|
+
subprocess.run([args.installpy, '-m', 'pip', 'install'] + reqs, check=True)
|
|
348
|
+
else:
|
|
349
|
+
print('No dependencies to install.')
|
|
346
350
|
return
|
|
347
351
|
|
|
348
352
|
if not args.remote:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: versionator
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: A tool for managing Python packages
|
|
5
5
|
Home-page: https://ktpanda.org/software/versionator
|
|
6
6
|
Author: Katie Rust
|
|
@@ -12,6 +12,7 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.6
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: argcomplete>=2.0.0
|
|
15
16
|
|
|
16
17
|
versionator
|
|
17
18
|
===========
|
|
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
|