scripthelper 24.1__tar.gz → 24.2__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.
- {scripthelper-24.1 → scripthelper-24.2}/CHANGELOG.md +4 -0
- {scripthelper-24.1 → scripthelper-24.2}/PKG-INFO +2 -3
- {scripthelper-24.1 → scripthelper-24.2}/justfile +2 -2
- {scripthelper-24.1 → scripthelper-24.2}/pyproject.toml +1 -2
- {scripthelper-24.1 → scripthelper-24.2}/src/scripthelper/__init__.py +1 -0
- {scripthelper-24.1 → scripthelper-24.2}/test_examples.py +0 -22
- {scripthelper-24.1 → scripthelper-24.2}/.gitignore +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/LICENSE +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/README.compiled.md +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/README.md +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/compile-readme.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example1.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example10.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example2.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example2b.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example3.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example4.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example4module.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example5.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example6.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example7.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example8.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/example9.py +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/mypy.ini +0 -0
- {scripthelper-24.1 → scripthelper-24.2}/src/scripthelper/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: scripthelper
|
|
3
|
-
Version: 24.
|
|
3
|
+
Version: 24.2
|
|
4
4
|
Summary: Helper module for creating simple Python scripts
|
|
5
5
|
Project-URL: Homepage, https://github.com/presidento/scripthelper
|
|
6
6
|
Project-URL: Changelog, https://github.com/presidento/scripthelper/blob/main/CHANGELOG.md
|
|
@@ -12,7 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: Intended Audience :: System Administrators
|
|
13
13
|
Classifier: License :: OSI Approved :: MIT License
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
set shell := ["nu", "-c"]
|
|
2
2
|
|
|
3
|
-
DEFAULT_VERSION := "3.
|
|
4
|
-
SUPPORTED_VERSIONS := "['3.
|
|
3
|
+
DEFAULT_VERSION := "3.9"
|
|
4
|
+
SUPPORTED_VERSIONS := "['3.9' '3.10' '3.11' '3.12' '3.13']"
|
|
5
5
|
PYTHON_EXECUTABLE := if os_family() == "windows" { "Scripts/python.exe" } else { "bin/python3" }
|
|
6
6
|
SYSTEM_PYTHON_PREFIX := if os_family() == "windows" { "py -" } else { "python" }
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "scripthelper"
|
|
3
|
-
version = "24.
|
|
3
|
+
version = "24.2"
|
|
4
4
|
description = "Helper module for creating simple Python scripts"
|
|
5
5
|
readme = "README.compiled.md"
|
|
6
6
|
license = {text = "MIT License"}
|
|
@@ -10,7 +10,6 @@ classifiers = [
|
|
|
10
10
|
"Intended Audience :: System Administrators",
|
|
11
11
|
"License :: OSI Approved :: MIT License",
|
|
12
12
|
"Operating System :: OS Independent",
|
|
13
|
-
"Programming Language :: Python :: 3.8",
|
|
14
13
|
"Programming Language :: Python :: 3.9",
|
|
15
14
|
"Programming Language :: Python :: 3.10",
|
|
16
15
|
"Programming Language :: Python :: 3.11",
|
|
@@ -126,11 +126,6 @@ class TestExamples(unittest.TestCase):
|
|
|
126
126
|
DEBUG example1 debug message
|
|
127
127
|
"""
|
|
128
128
|
).strip()
|
|
129
|
-
expected = self.change_namespace_for_python_lte_38(
|
|
130
|
-
expected,
|
|
131
|
-
"DEBUG example1 Arguments: Namespace(colors=None, disable_traceback_variables=False, quiet=None, verbose=2)",
|
|
132
|
-
)
|
|
133
|
-
|
|
134
129
|
self.assert_output("example1.py -vv", expected)
|
|
135
130
|
|
|
136
131
|
def test_example1_with_3_verbose(self):
|
|
@@ -146,11 +141,6 @@ class TestExamples(unittest.TestCase):
|
|
|
146
141
|
SPAM example1 spam message
|
|
147
142
|
"""
|
|
148
143
|
).strip()
|
|
149
|
-
expected = self.change_namespace_for_python_lte_38(
|
|
150
|
-
expected,
|
|
151
|
-
"DEBUG example1 Arguments: Namespace(colors=None, disable_traceback_variables=False, quiet=None, verbose=3)",
|
|
152
|
-
)
|
|
153
|
-
|
|
154
144
|
self.assert_output("example1.py -vvv", expected)
|
|
155
145
|
|
|
156
146
|
def test_example1_with_3_long_verbose(self):
|
|
@@ -166,10 +156,6 @@ class TestExamples(unittest.TestCase):
|
|
|
166
156
|
SPAM example1 spam message
|
|
167
157
|
"""
|
|
168
158
|
).strip()
|
|
169
|
-
expected = self.change_namespace_for_python_lte_38(
|
|
170
|
-
expected,
|
|
171
|
-
"DEBUG example1 Arguments: Namespace(colors=None, disable_traceback_variables=False, quiet=None, verbose=3)",
|
|
172
|
-
)
|
|
173
159
|
self.assert_output("example1.py --verbose --verbose --verbose", expected)
|
|
174
160
|
|
|
175
161
|
def test_example2_without_arguments(self):
|
|
@@ -304,14 +290,6 @@ class TestExamples(unittest.TestCase):
|
|
|
304
290
|
),
|
|
305
291
|
)
|
|
306
292
|
|
|
307
|
-
@staticmethod
|
|
308
|
-
def change_namespace_for_python_lte_38(original, replacement):
|
|
309
|
-
if sys.version_info.minor <= 8:
|
|
310
|
-
lines = original.splitlines()
|
|
311
|
-
lines[0] = replacement
|
|
312
|
-
return "\n".join(lines)
|
|
313
|
-
return original
|
|
314
|
-
|
|
315
293
|
def test_example10(self):
|
|
316
294
|
self.assert_output("example10.py", "WARNING example10 Item #12 has some errors")
|
|
317
295
|
|
|
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
|
|
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
|
|
File without changes
|