profiling-explorer 1.3.0__tar.gz → 1.3.1__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 (23) hide show
  1. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/PKG-INFO +1 -1
  2. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/pyproject.toml +1 -1
  3. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/pyproject.toml.orig +1 -1
  4. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/views.py +5 -1
  5. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/LICENSE +0 -0
  6. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/README.rst +0 -0
  7. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/__init__.py +0 -0
  8. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/__main__.py +0 -0
  9. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/main.py +0 -0
  10. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/management/__init__.py +0 -0
  11. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/management/commands/__init__.py +0 -0
  12. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/management/commands/runserver.py +0 -0
  13. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/py.typed +0 -0
  14. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/settings.py +0 -0
  15. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/static/script.js +0 -0
  16. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/static/styles.css +0 -0
  17. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templates/_row.html +0 -0
  18. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templates/base.html +0 -0
  19. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templates/callers_callees.html +0 -0
  20. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templates/index.html +0 -0
  21. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templatetags/__init__.py +0 -0
  22. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/templatetags/profiling_explorer_tags.py +0 -0
  23. {profiling_explorer-1.3.0 → profiling_explorer-1.3.1}/src/profiling_explorer/urls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: profiling-explorer
3
- Version: 1.3.0
3
+ Version: 1.3.1
4
4
  Summary: Table-based exploration tool for Python profiling data (pstats files).
5
5
  Keywords: profiler,profiling,pstats
6
6
  Author: Adam Johnson
@@ -4,7 +4,7 @@ requires = ["uv-build>=0.12.1,<0.13"]
4
4
 
5
5
  [project]
6
6
  name = "profiling-explorer"
7
- version = "1.3.0"
7
+ version = "1.3.1"
8
8
  description = "Table-based exploration tool for Python profiling data (pstats files)."
9
9
  readme = "README.rst"
10
10
  keywords = [
@@ -6,7 +6,7 @@ requires = [
6
6
 
7
7
  [project]
8
8
  name = "profiling-explorer"
9
- version = "1.3.0"
9
+ version = "1.3.1"
10
10
  description = "Table-based exploration tool for Python profiling data (pstats files)."
11
11
  readme = "README.rst"
12
12
  keywords = [
@@ -89,7 +89,11 @@ def _shorten_filename_function(filename: str, funcname: str) -> tuple[str, str,
89
89
  if match:
90
90
  short_filename = filename[match.end() :]
91
91
  else:
92
- short_filename = os.path.relpath(filename)
92
+ try:
93
+ short_filename = os.path.relpath(filename)
94
+ except ValueError:
95
+ # On Windows, paths on a different drive can't be relative.
96
+ short_filename = filename
93
97
  full_filename = filename
94
98
  return full_filename, short_filename, funcname
95
99