scripthelper 23.5__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.
Files changed (25) hide show
  1. {scripthelper-23.5 → scripthelper-24.2}/CHANGELOG.md +8 -0
  2. {scripthelper-23.5 → scripthelper-24.2}/PKG-INFO +3 -3
  3. {scripthelper-23.5 → scripthelper-24.2}/justfile +2 -2
  4. {scripthelper-23.5 → scripthelper-24.2}/pyproject.toml +2 -2
  5. {scripthelper-23.5 → scripthelper-24.2}/src/scripthelper/__init__.py +1 -0
  6. {scripthelper-23.5 → scripthelper-24.2}/test_examples.py +1 -24
  7. {scripthelper-23.5 → scripthelper-24.2}/.gitignore +0 -0
  8. {scripthelper-23.5 → scripthelper-24.2}/LICENSE +0 -0
  9. {scripthelper-23.5 → scripthelper-24.2}/README.compiled.md +0 -0
  10. {scripthelper-23.5 → scripthelper-24.2}/README.md +0 -0
  11. {scripthelper-23.5 → scripthelper-24.2}/compile-readme.py +0 -0
  12. {scripthelper-23.5 → scripthelper-24.2}/example1.py +0 -0
  13. {scripthelper-23.5 → scripthelper-24.2}/example10.py +0 -0
  14. {scripthelper-23.5 → scripthelper-24.2}/example2.py +0 -0
  15. {scripthelper-23.5 → scripthelper-24.2}/example2b.py +0 -0
  16. {scripthelper-23.5 → scripthelper-24.2}/example3.py +0 -0
  17. {scripthelper-23.5 → scripthelper-24.2}/example4.py +0 -0
  18. {scripthelper-23.5 → scripthelper-24.2}/example4module.py +0 -0
  19. {scripthelper-23.5 → scripthelper-24.2}/example5.py +0 -0
  20. {scripthelper-23.5 → scripthelper-24.2}/example6.py +0 -0
  21. {scripthelper-23.5 → scripthelper-24.2}/example7.py +0 -0
  22. {scripthelper-23.5 → scripthelper-24.2}/example8.py +0 -0
  23. {scripthelper-23.5 → scripthelper-24.2}/example9.py +0 -0
  24. {scripthelper-23.5 → scripthelper-24.2}/mypy.ini +0 -0
  25. {scripthelper-23.5 → scripthelper-24.2}/src/scripthelper/py.typed +0 -0
@@ -1,3 +1,11 @@
1
+ ## 24.2
2
+
3
+ - Remove Python 3.8 support
4
+
5
+ ## 24.1
6
+
7
+ - Add Python 3.13 support
8
+
1
9
  ## 23.5
2
10
 
3
11
  - Show the name of the logger in the log messages (can be very helpful if you use libraries which logs too much)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: scripthelper
3
- Version: 23.5
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,11 +12,11 @@ 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
19
18
  Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
20
  Classifier: Topic :: Utilities
21
21
  Classifier: Typing :: Typed
22
22
  Requires-Dist: coloredlogs>=10.0
@@ -1,7 +1,7 @@
1
1
  set shell := ["nu", "-c"]
2
2
 
3
- DEFAULT_VERSION := "3.8"
4
- SUPPORTED_VERSIONS := "['3.8' '3.9' '3.10' '3.11' '3.12']"
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 = "23.5"
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,11 +10,11 @@ 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",
17
16
  "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
18
  "Topic :: Utilities",
19
19
  "Typing :: Typed",
20
20
  ]
@@ -5,6 +5,7 @@ one file, and you can start working immediately.
5
5
 
6
6
  The output will be colored with support of multiple
7
7
  log levels, easy-to-add command line arguments, etc."""
8
+
8
9
  import argparse
9
10
  import inspect
10
11
  import logging
@@ -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,17 +290,8 @@ 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
- expected = "WARNING example10 Item #12 has some errors"
317
- self.assert_output("example10.py", expected)
294
+ self.assert_output("example10.py", "WARNING example10 Item #12 has some errors")
318
295
 
319
296
 
320
297
  if __name__ == "__main__":
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