wizlib 0.9.2__py3-none-any.whl → 0.9.4__py3-none-any.whl

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/config_machine.py CHANGED
@@ -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,14 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 0.9.2
4
- Summary: A collection of Python modules that are useful across multiple projects
5
- Author-email: Francis Potter <wizlib@steampunkwizard.ca>
3
+ Version: 0.9.4
4
+ Summary: A collection of Python modules that might be useful across multiple projects
6
5
  License: MIT
7
- Requires-Python: >=3.8
6
+ Author: Steampunk Wizard
7
+ Author-email: wizlib@steampunkwizard.ca
8
+ Requires-Python: >=3.11,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
13
+ Requires-Dist: gnureadline (>=8.1.2,<9.0.0) ; sys_platform == "darwin"
14
+ Requires-Dist: pyreadline3 (>=3.4.1,<4.0.0) ; sys_platform == "win32"
8
15
  Description-Content-Type: text/markdown
9
- Requires-Dist: PyYAML >=6.0.1
10
- Requires-Dist: gnureadline ; platform_system == "Darwin"
11
- Requires-Dist: pyreadline3 ; platform_system == "Windows"
12
16
 
13
17
  # WizLib
14
18
 
@@ -133,3 +137,4 @@ Emacs keys are enabled by default; I'm able to use the arrow keys on my Mac so y
133
137
  Logo by [Freepik](https://www.freepik.com/?_gl=1*1y9rvc9*test_ga*Mjc1MTIzODYxLjE2ODA3OTczNTg.*test_ga_523JXC6VL7*MTY4MDc5NzM1OC4xLjEuMTY4MDc5NzQxNS4zLjAuMA..*fp_ga*Mjc1MTIzODYxLjE2ODA3OTczNTg.*fp_ga_1ZY8468CQB*MTY4MDc5NzM1OC4xLjEuMTY4MDc5NzQxNS4zLjAuMA..)
134
138
 
135
139
 
140
+
@@ -1,10 +1,9 @@
1
1
  wizlib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  wizlib/class_family.py,sha256=IBdHPXouJDgxu3nOFE48QlRHYFyTGhTk_HbfnNTK-m8,4413
3
3
  wizlib/command_handler.py,sha256=3NKXfkH-orBm8G-KCVLPW1YuvtHC59lLYMyaK8VVwg4,3033
4
- wizlib/config_machine.py,sha256=oZtCMM3KQoJu9fft1odz_xapXpOUiW2X4B20OFXGAZI,2279
4
+ wizlib/config_machine.py,sha256=OUGXx_ixAMmfQGlaxg7R7a6IRKK1qK5qX16ZOhLAMbQ,2819
5
5
  wizlib/rlinput.py,sha256=l00Pa3rxNeY6LJgz8Aws_rTKoEchw33fuL8yqHF9_-o,1754
6
6
  wizlib/super_wrapper.py,sha256=F834ytHqA7zegTD1ezk_uxlF9PLygh84wReuiqcI7BI,272
7
- wizlib-0.9.2.dist-info/METADATA,sha256=uc-d82r0607o09gTa222fy8rvm1QIwgALzDtTesV9qk,5529
8
- wizlib-0.9.2.dist-info/WHEEL,sha256=5sUXSg9e4bi7lTLOHcm6QEYwO5TIF1TNbTSVFVjcJcc,92
9
- wizlib-0.9.2.dist-info/top_level.txt,sha256=PhxyT43KqCsarAe-YroORUZRMTLA-zwTAaADXKjNcB4,7
10
- wizlib-0.9.2.dist-info/RECORD,,
7
+ wizlib-0.9.4.dist-info/METADATA,sha256=SjCtOA0xdQDe5X0Em4BCKWOa3MKdtYkvzuqDfLIQm9M,5734
8
+ wizlib-0.9.4.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
9
+ wizlib-0.9.4.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.1)
2
+ Generator: poetry-core 1.7.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1 +0,0 @@
1
- wizlib