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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: versionator
3
- Version: 0.0.4
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
  ===========
@@ -21,4 +21,4 @@
21
21
  # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
22
  # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
- VERSION = "0.0.4"
24
+ VERSION = "0.0.6"
@@ -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 == '.py'
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
- text = path.read_text()
210
- except FileNotFoundError:
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
- subprocess.run([args.installpy, '-m', 'pip', 'install'] + reqs, check=True)
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
1
+ Metadata-Version: 2.2
2
2
  Name: versionator
3
- Version: 0.0.4
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