plain.dev 0.13.0__py3-none-any.whl → 0.14.0__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.
- plain/dev/contribute/cli.py +25 -30
- {plain_dev-0.13.0.dist-info → plain_dev-0.14.0.dist-info}/METADATA +1 -1
- {plain_dev-0.13.0.dist-info → plain_dev-0.14.0.dist-info}/RECORD +6 -6
- {plain_dev-0.13.0.dist-info → plain_dev-0.14.0.dist-info}/LICENSE +0 -0
- {plain_dev-0.13.0.dist-info → plain_dev-0.14.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.13.0.dist-info → plain_dev-0.14.0.dist-info}/entry_points.txt +0 -0
plain/dev/contribute/cli.py
CHANGED
@@ -7,11 +7,11 @@ import click
|
|
7
7
|
|
8
8
|
@click.command("contribute")
|
9
9
|
@click.option("--repo", default="../plain", help="Path to the plain repo")
|
10
|
-
@click.argument("
|
11
|
-
def cli(
|
12
|
-
"""Contribute to plain by linking
|
10
|
+
@click.argument("packages", nargs=-1)
|
11
|
+
def cli(packages, repo):
|
12
|
+
"""Contribute to plain by linking packages locally."""
|
13
13
|
|
14
|
-
if
|
14
|
+
if "reset" in packages:
|
15
15
|
click.secho("Undoing any changes to pyproject.toml and uv.lock", bold=True)
|
16
16
|
result = subprocess.run(["git", "checkout", "pyproject.toml", "uv.lock"])
|
17
17
|
if result.returncode:
|
@@ -46,33 +46,28 @@ def cli(package, repo):
|
|
46
46
|
)
|
47
47
|
click.secho(f"Using repo at {repo} ({repo_branch} branch)", bold=True)
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
49
|
+
plain_packages = []
|
50
|
+
plainx_packages = []
|
51
|
+
|
52
|
+
for package in packages:
|
53
|
+
package = package.replace(".", "-")
|
54
|
+
click.secho(f"Linking {package} to {repo}", bold=True)
|
55
|
+
if package == "plain" or package.startswith("plain-"):
|
56
|
+
plain_packages.append(str(repo / package))
|
57
|
+
elif package.startswith("plainx-"):
|
58
|
+
plainx_packages.append(str(repo))
|
59
|
+
else:
|
60
|
+
click.secho(f"Unknown package {package}", fg="red")
|
61
|
+
sys.exit(2)
|
62
|
+
|
63
|
+
if plain_packages:
|
64
|
+
result = subprocess.run(["uv", "add", "--editable", "--dev"] + plain_packages)
|
60
65
|
if result.returncode:
|
61
|
-
click.secho("Failed to link
|
66
|
+
click.secho("Failed to link plain packages", fg="red")
|
62
67
|
sys.exit(result.returncode)
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
"uv",
|
67
|
-
"add",
|
68
|
-
"--editable",
|
69
|
-
"--dev",
|
70
|
-
str(repo),
|
71
|
-
]
|
72
|
-
)
|
68
|
+
|
69
|
+
if plainx_packages:
|
70
|
+
result = subprocess.run(["uv", "add", "--editable", "--dev"] + plainx_packages)
|
73
71
|
if result.returncode:
|
74
|
-
click.secho("Failed to link
|
72
|
+
click.secho("Failed to link plainx packages", fg="red")
|
75
73
|
sys.exit(result.returncode)
|
76
|
-
else:
|
77
|
-
click.secho(f"Unknown package {package}", fg="red")
|
78
|
-
sys.exit(2)
|
@@ -3,7 +3,7 @@ plain/dev/__init__.py,sha256=C1JrkNE5XX2DLgBXXLAV_UyhofwVd0ZPL59fPUMbOKo,139
|
|
3
3
|
plain/dev/cli.py,sha256=IzO14253uPogLV2emmZHKhBQgc7mCtr8VmfhR_g2O7g,10082
|
4
4
|
plain/dev/config.py,sha256=h6o5YZtJhg-cFIWoqIDWuMCC5T09cxEsBaa3BP4Nii0,632
|
5
5
|
plain/dev/contribute/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
6
|
-
plain/dev/contribute/cli.py,sha256=
|
6
|
+
plain/dev/contribute/cli.py,sha256=vrHSYM0Y2XtIUbxmNcJqssoPN-ZbkH4T_p65NVkYrV4,2339
|
7
7
|
plain/dev/db/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
8
8
|
plain/dev/db/cli.py,sha256=058HjRKLGz-FxauQEpwsPoh_LCiy-_NEIpRZl9W1ZKM,2855
|
9
9
|
plain/dev/db/container.py,sha256=RlPJU_CCMKA-zN8Kp0sYAu3jabOizxYAj8fSCsjCf60,5147
|
@@ -27,8 +27,8 @@ plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKa
|
|
27
27
|
plain/dev/urls.py,sha256=b4NL2I6Ok-t7nTPjRnKoz_LQRttE3_mp8l2NlmeYQ9I,146
|
28
28
|
plain/dev/utils.py,sha256=4wMzpvj1Is_c0QxhsTu34_P9wAYlzw4glNPfVtZr_0A,123
|
29
29
|
plain/dev/views.py,sha256=r2Ivk7OXytpRhXq4DZpsb7FXNP9vzmEE3D5kLajYG4w,1073
|
30
|
-
plain_dev-0.
|
31
|
-
plain_dev-0.
|
32
|
-
plain_dev-0.
|
33
|
-
plain_dev-0.
|
34
|
-
plain_dev-0.
|
30
|
+
plain_dev-0.14.0.dist-info/LICENSE,sha256=YDg-l_Rj7LVP5uDXy04eQPGb_DYVXAHAHYd9r3pU1Cg,2713
|
31
|
+
plain_dev-0.14.0.dist-info/METADATA,sha256=4g2sbwYs-P6FvdpJfOvXSERFu0vBB7r6j3wsBP74w8A,4722
|
32
|
+
plain_dev-0.14.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
33
|
+
plain_dev-0.14.0.dist-info/entry_points.txt,sha256=1FaE_73k95WYOJrmB0hcHBnEIFQa-Cfl56Z1LGxyvak,164
|
34
|
+
plain_dev-0.14.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|