wizlib 0.9.2__tar.gz → 0.9.3__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.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

wizlib-0.9.3/.version ADDED
@@ -0,0 +1 @@
1
+ 0.9.3
@@ -1,11 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: A collection of Python modules that are useful across multiple projects
5
5
  Author-email: Francis Potter <wizlib@steampunkwizard.ca>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
+ Requires-Dist: gnureadline; platform_system == "Darwin"
10
+ Requires-Dist: pyreadline3; platform_system == "Windows"
11
+ Requires-Dist: PyYAML>=6.0.1
9
12
 
10
13
  # WizLib
11
14
 
@@ -2,6 +2,7 @@ from argparse import Namespace
2
2
  from pathlib import Path
3
3
  import os
4
4
  from dataclasses import dataclass
5
+ from unittest.mock import patch
5
6
 
6
7
  from yaml import load
7
8
  from yaml import Loader
@@ -67,3 +68,16 @@ class ConfigMachine:
67
68
  """Allows a Command class to also inherit from ConfigMachine. List
68
69
  ConfigMachine first."""
69
70
  parser.add_argument('--config', action='store')
71
+
72
+
73
+ def nohome_test(): # pragma: nocover
74
+ """Fake out a ConfigMachine so that it thinks test/files is the home
75
+ directory. This way it's not tempted to pull real configuration."""
76
+ return patch('pathlib.Path.home', lambda: Path('test/files'))
77
+
78
+
79
+ def patchconfig_test(**kwargs): # pragma: nocover
80
+ """Hand testable config data to a test method. First pass: always return
81
+ None."""
82
+ methodpath = 'wizlib.config_machine.ConfigMachine.config_get'
83
+ return patch(methodpath, lambda s, t: True)
@@ -1,11 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: A collection of Python modules that are useful across multiple projects
5
5
  Author-email: Francis Potter <wizlib@steampunkwizard.ca>
6
6
  License: MIT
7
7
  Requires-Python: >=3.8
8
8
  Description-Content-Type: text/markdown
9
+ Requires-Dist: gnureadline; platform_system == "Darwin"
10
+ Requires-Dist: pyreadline3; platform_system == "Windows"
11
+ Requires-Dist: PyYAML>=6.0.1
9
12
 
10
13
  # WizLib
11
14
 
wizlib-0.9.2/.version DELETED
@@ -1 +0,0 @@
1
- 0.9.2
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