stouputils 1.2.17__tar.gz → 1.2.19__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. {stouputils-1.2.17 → stouputils-1.2.19}/PKG-INFO +8 -9
  2. {stouputils-1.2.17 → stouputils-1.2.19}/pyproject.toml +8 -9
  3. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/applications/automatic_docs.py +1 -2
  4. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/ctx.py +3 -4
  5. {stouputils-1.2.17 → stouputils-1.2.19}/.gitignore +0 -0
  6. {stouputils-1.2.17 → stouputils-1.2.19}/LICENSE +0 -0
  7. {stouputils-1.2.17 → stouputils-1.2.19}/README.md +0 -0
  8. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/__init__.py +0 -0
  9. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/all_doctests.py +0 -0
  10. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/applications/__init__.py +0 -0
  11. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/archive.py +0 -0
  12. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/backup.py +0 -0
  13. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/collections.py +0 -0
  14. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/continuous_delivery/__init__.py +0 -0
  15. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/continuous_delivery/cd_utils.py +0 -0
  16. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/continuous_delivery/github.py +0 -0
  17. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/continuous_delivery/pypi.py +0 -0
  18. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/continuous_delivery/pyproject.py +0 -0
  19. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/decorators.py +0 -0
  20. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/dont_look/zip_file_override.py +0 -0
  21. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/image.py +0 -0
  22. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/io.py +0 -0
  23. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/parallel.py +0 -0
  24. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/print.py +0 -0
  25. {stouputils-1.2.17 → stouputils-1.2.19}/stouputils/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stouputils
3
- Version: 1.2.17
3
+ Version: 1.2.19
4
4
  Summary: Stouputils is a collection of utility modules designed to simplify and enhance the development process. It includes a range of tools for tasks such as execution of doctests, display utilities, decorators, as well as context managers, and many more.
5
5
  Project-URL: Homepage, https://github.com/Stoupy51/stouputils
6
6
  Project-URL: Issues, https://github.com/Stoupy51/stouputils/issues
@@ -11,18 +11,17 @@ Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.10
13
13
  Requires-Dist: furo>=2024.8.6
14
- Requires-Dist: hatch>=1.14.0
15
14
  Requires-Dist: m2r2>=0.3.3.post2
16
- Requires-Dist: myst-parser>=4.0.1
17
- Requires-Dist: numpy>=2.2.4
18
- Requires-Dist: opencv-python>=4.8.1.78
19
- Requires-Dist: pillow>=11.1.0
15
+ Requires-Dist: myst-parser>=4.0.0
16
+ Requires-Dist: numpy
17
+ Requires-Dist: opencv-python>=4.0.0
18
+ Requires-Dist: pillow>=11.0.0
20
19
  Requires-Dist: pyyaml>=6.0.0
21
20
  Requires-Dist: requests>=2.30.0
22
- Requires-Dist: sphinx-rtd-theme>=3.0.2
23
- Requires-Dist: sphinx>=8.1.3
21
+ Requires-Dist: sphinx-rtd-theme>=3.0.0
22
+ Requires-Dist: sphinx>=8.0.0
24
23
  Requires-Dist: toml>=0.10.0
25
- Requires-Dist: tqdm>=4.66.0
24
+ Requires-Dist: tqdm>=4.0.0
26
25
  Description-Content-Type: text/markdown
27
26
 
28
27
 
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
 
6
6
  [project]
7
7
  name = "stouputils"
8
- version = "1.2.17"
8
+ version = "1.2.19"
9
9
  description = "Stouputils is a collection of utility modules designed to simplify and enhance the development process. It includes a range of tools for tasks such as execution of doctests, display utilities, decorators, as well as context managers, and many more."
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.10"
@@ -15,19 +15,18 @@ classifiers = [
15
15
  "Operating System :: OS Independent",
16
16
  ]
17
17
  dependencies = [
18
- "tqdm>=4.66.0",
18
+ "tqdm>=4.0.0",
19
19
  "requests>=2.30.0",
20
20
  "pyyaml>=6.0.0",
21
21
  "toml>=0.10.0",
22
22
  "m2r2>=0.3.3.post2",
23
- "sphinx>=8.1.3",
24
- "sphinx-rtd-theme>=3.0.2",
25
- "myst-parser>=4.0.1",
23
+ "sphinx>=8.0.0",
24
+ "sphinx-rtd-theme>=3.0.0",
25
+ "myst-parser>=4.0.0",
26
26
  "furo>=2024.8.6",
27
- "hatch>=1.14.0",
28
- "pillow>=11.1.0",
29
- "numpy>=2.2.4",
30
- "opencv-python>=4.8.1.78",
27
+ "pillow>=11.0.0",
28
+ "numpy",
29
+ "opencv-python>=4.0.0",
31
30
  ]
32
31
  [[project.authors]]
33
32
  name = "Stoupy51"
@@ -51,8 +51,7 @@ Example of GitHub Actions workflow:
51
51
  - uses: actions/setup-python@v5
52
52
  - name: Install dependencies
53
53
  run: |
54
- pip install hatch stouputils
55
- hatch build
54
+ pip install stouputils
56
55
  - name: Build version docs
57
56
  run: |
58
57
  python scripts/create_docs.py ${GITHUB_REF#refs/tags/v}
@@ -78,14 +78,13 @@ class TeeMultiOutput(object):
78
78
  """ Whether to strip ANSI color codes from output sent to non-stdout/stderr files """
79
79
 
80
80
  def write(self, obj: str) -> None:
81
- """ Write the object to all files.
81
+ """ Write the object to all files while stripping colors if needed.
82
82
 
83
83
  Args:
84
84
  obj (str): String to write
85
85
  """
86
- for f in self.files:
87
- # Strip colors for files that are not stdout or stderr
88
- if self.strip_colors and f not in (sys.stdout, sys.stderr):
86
+ for i, f in enumerate(self.files):
87
+ if self.strip_colors and i != 0:
89
88
  f.write(remove_colors(obj))
90
89
  else:
91
90
  f.write(obj)
File without changes
File without changes
File without changes