gitfluff 0.3.0__tar.gz → 0.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.
- {gitfluff-0.3.0 → gitfluff-0.3.1}/PKG-INFO +2 -2
- {gitfluff-0.3.0 → gitfluff-0.3.1}/README.md +1 -1
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff/__init__.py +1 -1
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff/downloader.py +8 -5
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/PKG-INFO +2 -2
- {gitfluff-0.3.0 → gitfluff-0.3.1}/pyproject.toml +1 -1
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff/__main__.py +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff/cli.py +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/SOURCES.txt +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/dependency_links.txt +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/entry_points.txt +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/requires.txt +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/gitfluff.egg-info/top_level.txt +0 -0
- {gitfluff-0.3.0 → gitfluff-0.3.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitfluff
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Commit message linter and formatter
|
|
5
5
|
Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -75,7 +75,7 @@ default_install_hook_types:
|
|
|
75
75
|
|
|
76
76
|
repos:
|
|
77
77
|
- repo: https://github.com/Goldziher/gitfluff
|
|
78
|
-
rev: v0.3.
|
|
78
|
+
rev: v0.3.1
|
|
79
79
|
hooks:
|
|
80
80
|
- id: gitfluff-lint
|
|
81
81
|
stages: [commit-msg]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.3.
|
|
2
|
+
__version__ = "0.3.1"
|
|
@@ -88,11 +88,14 @@ def _extract(archive: Path, ext: str, destination: Path) -> None:
|
|
|
88
88
|
raise RuntimeError("Binary not found in downloaded archive")
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
def _cache_path() -> Path:
|
|
92
|
-
|
|
93
|
-
cache.
|
|
91
|
+
def _cache_path(version: str) -> Path:
|
|
92
|
+
"""
|
|
93
|
+
Return a versioned cache path so upgrades download matching binaries.
|
|
94
|
+
"""
|
|
95
|
+
cache_dir = Path.home() / ".cache" / "gitfluff" / version
|
|
96
|
+
cache_dir.mkdir(parents=True, exist_ok=True)
|
|
94
97
|
suffix = ".exe" if platform.system().lower() == "windows" else ""
|
|
95
|
-
return
|
|
98
|
+
return cache_dir / f"gitfluff{suffix}"
|
|
96
99
|
|
|
97
100
|
|
|
98
101
|
def ensure_binary() -> str:
|
|
@@ -103,7 +106,7 @@ def ensure_binary() -> str:
|
|
|
103
106
|
if override:
|
|
104
107
|
return override
|
|
105
108
|
|
|
106
|
-
binary_path = _cache_path()
|
|
109
|
+
binary_path = _cache_path(__version__)
|
|
107
110
|
if binary_path.exists() and os.access(binary_path, os.X_OK):
|
|
108
111
|
return str(binary_path)
|
|
109
112
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: gitfluff
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Commit message linter and formatter
|
|
5
5
|
Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -75,7 +75,7 @@ default_install_hook_types:
|
|
|
75
75
|
|
|
76
76
|
repos:
|
|
77
77
|
- repo: https://github.com/Goldziher/gitfluff
|
|
78
|
-
rev: v0.3.
|
|
78
|
+
rev: v0.3.1
|
|
79
79
|
hooks:
|
|
80
80
|
- id: gitfluff-lint
|
|
81
81
|
stages: [commit-msg]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|