sample-git-diffs 0.4.2__tar.gz → 0.5.0__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.
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/PKG-INFO +3 -1
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/pyproject.toml +1 -1
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/sample_git_diffs/sample_git_diffs.py +3 -1
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/README.md +0 -0
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/sample_git_diffs/__init__.py +0 -0
- {sample_git_diffs-0.4.2 → sample_git_diffs-0.5.0}/sample_git_diffs/to_md.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sample-git-diffs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary:
|
|
5
5
|
Home-page: https://github.com/ninpnin/sample-git-diffs
|
|
6
6
|
License: MIT
|
|
@@ -13,6 +13,8 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
18
|
Requires-Dist: pandas
|
|
17
19
|
Project-URL: Repository, https://github.com/ninpnin/sample-git-diffs
|
|
18
20
|
Description-Content-Type: text/markdown
|
|
@@ -9,6 +9,7 @@ import random
|
|
|
9
9
|
import warnings
|
|
10
10
|
from io import StringIO
|
|
11
11
|
import argparse
|
|
12
|
+
from pathlib import Path
|
|
12
13
|
|
|
13
14
|
DIFF_EXP = re.compile("@@[ 0-9\.,\-\+]{2,50}@@")
|
|
14
15
|
|
|
@@ -53,9 +54,10 @@ def sample_diffs(diffstat="git diff --stat", diffcommand="git diff", n=150):
|
|
|
53
54
|
sample = sample.groupby(['filename'], as_index=False).size()
|
|
54
55
|
|
|
55
56
|
output = []
|
|
57
|
+
diffcommand_prime = list(filter(lambda fp: not Path(fp).exists(), diffcommand.split()))
|
|
56
58
|
for _, row in sample.iterrows():
|
|
57
59
|
filename, n_row = row["filename"], row["size"]
|
|
58
|
-
call =
|
|
60
|
+
call = diffcommand_prime + [filename.strip()]
|
|
59
61
|
result = subprocess.run(call, capture_output=True)
|
|
60
62
|
s = result.stdout.decode("utf-8")
|
|
61
63
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|