winipedia-utils 0.6.3__py3-none-any.whl → 0.6.4__py3-none-any.whl
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.
Potentially problematic release.
This version of winipedia-utils might be problematic. Click here for more details.
- winipedia_utils/artifacts/build.py +1 -1
- winipedia_utils/git/pre_commit/hooks.py +0 -59
- {winipedia_utils-0.6.3.dist-info → winipedia_utils-0.6.4.dist-info}/METADATA +1 -8
- {winipedia_utils-0.6.3.dist-info → winipedia_utils-0.6.4.dist-info}/RECORD +6 -6
- {winipedia_utils-0.6.3.dist-info → winipedia_utils-0.6.4.dist-info}/WHEEL +0 -0
- {winipedia_utils-0.6.3.dist-info → winipedia_utils-0.6.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -57,7 +57,7 @@ class Build(ABCLoggingMixin):
|
|
|
57
57
|
raise FileNotFoundError(msg)
|
|
58
58
|
|
|
59
59
|
# rename the files with -platform.system()
|
|
60
|
-
new_name = f"{artifact.
|
|
60
|
+
new_name = f"{artifact.stem}-{platform.system()}{artifact.suffix}"
|
|
61
61
|
new_path = cls.ARTIFACTS_PATH / new_name
|
|
62
62
|
artifact.rename(new_path)
|
|
63
63
|
|
|
@@ -13,65 +13,6 @@ from winipedia_utils.projects.poetry.poetry import (
|
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def fetch_latest_changes() -> list[str]:
|
|
17
|
-
"""Fetch the latest changes from origin.
|
|
18
|
-
|
|
19
|
-
This function returns the input for subprocess.run() to fetch the latest
|
|
20
|
-
changes from origin.
|
|
21
|
-
"""
|
|
22
|
-
return ["git", "fetch", "origin"]
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
def stash_changes() -> list[str]:
|
|
26
|
-
"""Stash the changes.
|
|
27
|
-
|
|
28
|
-
This function returns the input for subprocess.run() to stash the changes.
|
|
29
|
-
"""
|
|
30
|
-
return [
|
|
31
|
-
"git",
|
|
32
|
-
"stash",
|
|
33
|
-
"push",
|
|
34
|
-
"-m",
|
|
35
|
-
"WIP: Temporarily stashed changes before rebasing",
|
|
36
|
-
]
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def rebase_on_main() -> list[str]:
|
|
40
|
-
"""Rebase the current branch on origin/main.
|
|
41
|
-
|
|
42
|
-
This function returns the input for subprocess.run() to rebase the current
|
|
43
|
-
branch on origin/main.
|
|
44
|
-
"""
|
|
45
|
-
return ["git", "rebase", "origin/main"]
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def pop_stashed_changes() -> list[str]:
|
|
49
|
-
"""Pop the stashed changes.
|
|
50
|
-
|
|
51
|
-
This function returns the input for subprocess.run() to pop the stashed changes.
|
|
52
|
-
"""
|
|
53
|
-
return ["git", "stash", "pop"]
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
def add_popped_stash_to_git() -> list[str]:
|
|
57
|
-
"""Add the unstashed changes to git.
|
|
58
|
-
|
|
59
|
-
This function returns the input for subprocess.run() to add the unstashed
|
|
60
|
-
changes to git.
|
|
61
|
-
We must do git add . because unstashing unadds the changes and pre-commit fails
|
|
62
|
-
"""
|
|
63
|
-
return ["git", "add", "."]
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
def add_version_patch_to_git() -> list[str]:
|
|
67
|
-
"""Add the version patch to git.
|
|
68
|
-
|
|
69
|
-
This function returns the input for subprocess.run() to add the version
|
|
70
|
-
patch to git, so that the hook does not fail bc the file was changed.
|
|
71
|
-
"""
|
|
72
|
-
return ["git", "add", "pyproject.toml"]
|
|
73
|
-
|
|
74
|
-
|
|
75
16
|
def update_package_manager() -> list[str]:
|
|
76
17
|
"""Update the package manager.
|
|
77
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: winipedia-utils
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
4
4
|
Summary: A package with many utility functions
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -157,13 +157,6 @@ Usually VSCode or other IDEs activates the venv automatically when opening the t
|
|
|
157
157
|
|
|
158
158
|
Hooks run in the following order:
|
|
159
159
|
|
|
160
|
-
- Fetch latest changes (git fetch origin)
|
|
161
|
-
- Stash changes (git stash push -m "WIP: Stashed changes before rebasing")
|
|
162
|
-
- Rebase on main (git rebase origin/main)
|
|
163
|
-
- Pop stashed changes (git stash pop)
|
|
164
|
-
- Add popped stash to git (git add ., bc unstashing unadds the changes and pre-commit fails, be aware that this might add changes you didn't want to commit, so inspect the changes before committing)
|
|
165
|
-
- Patch version (poetry version patch)
|
|
166
|
-
- Add version patch to git (git add pyproject.toml)
|
|
167
160
|
- Update package manager (poetry self update)
|
|
168
161
|
- Install packages (poetry install --with dev)
|
|
169
162
|
- Update packages (poetry update --with dev (winipedia_utils forces all dependencies with * to be updated to latest compatible version))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
winipedia_utils/__init__.py,sha256=vOWZ8n-YemVIzDLd8eWw1HVPGH3jxuT6VtDKHbmxk_A,43
|
|
2
2
|
winipedia_utils/artifacts/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
|
|
3
|
-
winipedia_utils/artifacts/build.py,sha256=
|
|
3
|
+
winipedia_utils/artifacts/build.py,sha256=mYiAGrtNzl-Grl7rdmzl6yrc2Bas0vXyAUsMlHLF83U,2428
|
|
4
4
|
winipedia_utils/concurrent/__init__.py,sha256=Tu0ig4gVCk_f1n74G35hDwH-WS3P3STVQGWjxTIbbo8,54
|
|
5
5
|
winipedia_utils/concurrent/concurrent.py,sha256=h2vgxeDFsagZ10LnHKkswwF2bjY_L1hXKutejeJo48U,8648
|
|
6
6
|
winipedia_utils/concurrent/multiprocessing.py,sha256=1pnAU-CS3crNOKlp68gCCvNbTvNJs0in_VASMpZ7M1c,4721
|
|
@@ -27,7 +27,7 @@ winipedia_utils/git/gitignore/config.py,sha256=Oi1gAf2mbR7vxMi0zsAFpCGzDaLNDd5S2
|
|
|
27
27
|
winipedia_utils/git/gitignore/gitignore.py,sha256=uE2MdynWgQuTG-y2YLR0FU5_giSE7s_TqSVQ6vnNOf8,2419
|
|
28
28
|
winipedia_utils/git/pre_commit/__init__.py,sha256=gFLVGQRmS6abgy5MfPQy_GZiF1_hGxuXtcOHX95WL-A,58
|
|
29
29
|
winipedia_utils/git/pre_commit/config.py,sha256=t0CETAbworS_1g3U4BijVsI1pzcArWTT2-WOexh8aVA,1822
|
|
30
|
-
winipedia_utils/git/pre_commit/hooks.py,sha256=
|
|
30
|
+
winipedia_utils/git/pre_commit/hooks.py,sha256=RNMB7LMRjtMjG4d5Ia7spIV-oTpAewKEjaYLPhfzLwA,3609
|
|
31
31
|
winipedia_utils/git/pre_commit/run_hooks.py,sha256=pLdqV75-uvZZj0cYSC5pQ4VMv_8WwrhqSRJ_hw4H_gg,1769
|
|
32
32
|
winipedia_utils/iterating/__init__.py,sha256=rlF9hzxbowq5yOfcXvOKOQdB-EQmfrislQpf659Zeu4,53
|
|
33
33
|
winipedia_utils/iterating/iterate.py,sha256=k4U6qrnE4zij-GJhI5X0wM3pveSi8wtEsA1i8xQrfG0,3522
|
|
@@ -91,7 +91,7 @@ winipedia_utils/testing/tests/conftest.py,sha256=BLgUJtLecOwuEsIyJ__0buqovd5AhiG
|
|
|
91
91
|
winipedia_utils/text/__init__.py,sha256=j2bwtK6kyeHI6SnoBjpRju0C1W2n2paXBDlNjNtaUxA,48
|
|
92
92
|
winipedia_utils/text/config.py,sha256=jjKmn-tSbyaK6jGL0FxFHSREP6A6V1ZSX3RuIgvQ4io,7794
|
|
93
93
|
winipedia_utils/text/string.py,sha256=uHqpm1yXumiSDD7MZxfdkRS_4paQ5wIJweeBJK2bCdQ,4332
|
|
94
|
-
winipedia_utils-0.6.
|
|
95
|
-
winipedia_utils-0.6.
|
|
96
|
-
winipedia_utils-0.6.
|
|
97
|
-
winipedia_utils-0.6.
|
|
94
|
+
winipedia_utils-0.6.4.dist-info/METADATA,sha256=klTjIfArVGPjYG2Vqkfs979V2ixluikmrtjCFA-AbaA,16515
|
|
95
|
+
winipedia_utils-0.6.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
96
|
+
winipedia_utils-0.6.4.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
|
|
97
|
+
winipedia_utils-0.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|