crackerjack 0.4.2__tar.gz → 0.4.4__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.
- {crackerjack-0.4.2 → crackerjack-0.4.4}/PKG-INFO +2 -4
- {crackerjack-0.4.2 → crackerjack-0.4.4}/README.md +0 -3
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/crackerjack.py +3 -18
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/pyproject.toml +2 -1
- {crackerjack-0.4.2 → crackerjack-0.4.4}/pyproject.toml +2 -1
- {crackerjack-0.4.2 → crackerjack-0.4.4}/LICENSE +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/.gitignore +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/.libcst.codemod.yaml +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/.pre-commit-config.yaml +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/.ruff_cache/.gitignore +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/.ruff_cache/CACHEDIR.TAG +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/__init__.py +0 -0
- {crackerjack-0.4.2 → crackerjack-0.4.4}/crackerjack/__main__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Crackerjack
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Crackerjack code style
|
|
5
5
|
Keywords: black ruff mypy creosote refurb
|
|
6
6
|
Home-page: https://github.com/lesleslie/crackerjack
|
|
@@ -23,6 +23,7 @@ Requires-Dist: inflection>=0.5.1
|
|
|
23
23
|
Requires-Dist: acb>=0.1.12
|
|
24
24
|
Requires-Dist: pdm-bump>=0.7.3
|
|
25
25
|
Requires-Dist: pyright>=1.1.327
|
|
26
|
+
Requires-Dist: autotyping>=23.3.0
|
|
26
27
|
Description-Content-Type: text/markdown
|
|
27
28
|
|
|
28
29
|
# Crackerjack Python
|
|
@@ -80,9 +81,6 @@ This package:
|
|
|
80
81
|
|
|
81
82
|
- streamlines and standardizes code style across numerous packages
|
|
82
83
|
|
|
83
|
-
- removes pipenv, poetry, and hatch build, dependency management, and virtual environment
|
|
84
|
-
management packages and replaces them with PDM using PEP-582 (work in progress)
|
|
85
|
-
|
|
86
84
|
- installs, or updates, a project's pre-commit tools as well as .gitignore & other config files
|
|
87
85
|
to comply with evolving crackerjack standards
|
|
88
86
|
|
|
@@ -53,9 +53,6 @@ This package:
|
|
|
53
53
|
|
|
54
54
|
- streamlines and standardizes code style across numerous packages
|
|
55
55
|
|
|
56
|
-
- removes pipenv, poetry, and hatch build, dependency management, and virtual environment
|
|
57
|
-
management packages and replaces them with PDM using PEP-582 (work in progress)
|
|
58
|
-
|
|
59
56
|
- installs, or updates, a project's pre-commit tools as well as .gitignore & other config files
|
|
60
57
|
to comply with evolving crackerjack standards
|
|
61
58
|
|
|
@@ -7,7 +7,6 @@ from subprocess import run
|
|
|
7
7
|
|
|
8
8
|
from acb.actions import dump
|
|
9
9
|
from acb.actions import load
|
|
10
|
-
|
|
11
10
|
from aioconsole import ainput
|
|
12
11
|
from aioconsole import aprint
|
|
13
12
|
from aiopath import AsyncPath
|
|
@@ -53,17 +52,6 @@ class Crakerjack(BaseModel):
|
|
|
53
52
|
else:
|
|
54
53
|
await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore
|
|
55
54
|
|
|
56
|
-
async def clean_poetry_pipenv(self) -> None:
|
|
57
|
-
root_files = [
|
|
58
|
-
file
|
|
59
|
-
async for file in self.pkg_path.iterdir()
|
|
60
|
-
if ("poetry" or "Pip") in file.name
|
|
61
|
-
]
|
|
62
|
-
if root_files:
|
|
63
|
-
self.poetry_pip_env = True
|
|
64
|
-
for file in root_files:
|
|
65
|
-
await file.unlink()
|
|
66
|
-
|
|
67
55
|
async def copy_configs(self) -> None:
|
|
68
56
|
config_files = (
|
|
69
57
|
".gitignore",
|
|
@@ -77,8 +65,6 @@ class Crakerjack(BaseModel):
|
|
|
77
65
|
if config in config_files[:-2]:
|
|
78
66
|
if self.pkg_path.stem == "crackerjack":
|
|
79
67
|
await config_path.write_text(await pkg_config_path.read_text())
|
|
80
|
-
# if poetry_pip_env:
|
|
81
|
-
# await config_pkg_path.unlink()
|
|
82
68
|
config_text = await config_path.read_text()
|
|
83
69
|
await pkg_config_path.write_text(
|
|
84
70
|
config_text.replace("crackerjack", self.pkg_name)
|
|
@@ -99,7 +85,6 @@ class Crakerjack(BaseModel):
|
|
|
99
85
|
success = True
|
|
100
86
|
|
|
101
87
|
async def update_pkg_configs(self) -> None:
|
|
102
|
-
await self.clean_poetry_pipenv()
|
|
103
88
|
await self.copy_configs()
|
|
104
89
|
installed_pkgs = check_output(
|
|
105
90
|
["pdm", "list", "--freeze"],
|
|
@@ -113,8 +98,8 @@ class Crakerjack(BaseModel):
|
|
|
113
98
|
run(["git", "add", "pyproject.toml"])
|
|
114
99
|
run(["pdm", "add", "-d", "pre_commit"])
|
|
115
100
|
run(["pdm", "add", "-d", "pytest"])
|
|
116
|
-
run(["pdm", "add", "-d", "pyanalyze"])
|
|
117
101
|
run(["pdm", "add", "-d", "autotyping"])
|
|
102
|
+
run(["pdm", "add", "-d", "pyright"])
|
|
118
103
|
run(["pre-commit", "install"])
|
|
119
104
|
run(["git", "add", "pdm.lock"])
|
|
120
105
|
run(["git", "config", "advice.addIgnoredFile", "false"])
|
|
@@ -143,8 +128,8 @@ class Crakerjack(BaseModel):
|
|
|
143
128
|
if options.publish:
|
|
144
129
|
run(["pdm", "publish"])
|
|
145
130
|
if options.commit:
|
|
146
|
-
commit_msg =
|
|
147
|
-
call(["git", "commit", "-m", f"
|
|
131
|
+
commit_msg = await ainput("Commit message: ")
|
|
132
|
+
call(["git", "commit", "-m", f"{commit_msg}", "--no-verify", "--", "."])
|
|
148
133
|
call(["git", "push", "origin", "main"])
|
|
149
134
|
await aprint("\nCrackerjack complete!\n")
|
|
150
135
|
|
|
@@ -45,7 +45,7 @@ pythonVersion = "3.11"
|
|
|
45
45
|
|
|
46
46
|
[project]
|
|
47
47
|
name = "Crackerjack"
|
|
48
|
-
version = "0.4.
|
|
48
|
+
version = "0.4.4"
|
|
49
49
|
description = "Crackerjack code style"
|
|
50
50
|
requires-python = ">=3.11"
|
|
51
51
|
readme = "README.md"
|
|
@@ -71,6 +71,7 @@ dependencies = [
|
|
|
71
71
|
"acb>=0.1.12",
|
|
72
72
|
"pdm-bump>=0.7.3",
|
|
73
73
|
"pyright>=1.1.327",
|
|
74
|
+
"autotyping>=23.3.0",
|
|
74
75
|
]
|
|
75
76
|
authors = [
|
|
76
77
|
{ name = "lesleslie", email = "les@wedgwoodwebworks.com" },
|
|
@@ -64,7 +64,7 @@ pythonVersion = "3.11"
|
|
|
64
64
|
|
|
65
65
|
[project]
|
|
66
66
|
name = "Crackerjack"
|
|
67
|
-
version = "0.4.
|
|
67
|
+
version = "0.4.4"
|
|
68
68
|
description = "Crackerjack code style"
|
|
69
69
|
requires-python = ">=3.11"
|
|
70
70
|
readme = "README.md"
|
|
@@ -90,6 +90,7 @@ dependencies = [
|
|
|
90
90
|
"acb>=0.1.12",
|
|
91
91
|
"pdm-bump>=0.7.3",
|
|
92
92
|
"pyright>=1.1.327",
|
|
93
|
+
"autotyping>=23.3.0",
|
|
93
94
|
]
|
|
94
95
|
authors = [
|
|
95
96
|
{ name = "lesleslie", email = "les@wedgwoodwebworks.com" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|