plain.dev 0.2.0__py3-none-any.whl → 0.4.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/README.md +2 -2
- plain/dev/cli.py +1 -3
- plain/dev/precommit/cli.py +2 -5
- {plain_dev-0.2.0.dist-info → plain_dev-0.4.0.dist-info}/METADATA +4 -4
- {plain_dev-0.2.0.dist-info → plain_dev-0.4.0.dist-info}/RECORD +8 -8
- {plain_dev-0.2.0.dist-info → plain_dev-0.4.0.dist-info}/LICENSE +0 -0
- {plain_dev-0.2.0.dist-info → plain_dev-0.4.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.2.0.dist-info → plain_dev-0.4.0.dist-info}/entry_points.txt +0 -0
plain/dev/README.md
CHANGED
@@ -60,8 +60,8 @@ Runs:
|
|
60
60
|
- `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
|
61
61
|
- `poetry check --lock`, if using [Poetry](https://python-poetry.org/)
|
62
62
|
- `plain preflight --database default`
|
63
|
-
- `plain
|
64
|
-
- `plain
|
63
|
+
- `plain migrate --check`
|
64
|
+
- `plain makemigrations --dry-run --check`
|
65
65
|
- `plain compile`
|
66
66
|
- `plain test`
|
67
67
|
|
plain/dev/cli.py
CHANGED
@@ -117,9 +117,7 @@ class Dev:
|
|
117
117
|
gunicorn = f"gunicorn --bind 127.0.0.1:{self.port} --reload plain.wsgi:app --timeout 60 --access-logfile - --error-logfile - {reload_extra} --access-logformat '\"%(r)s\" status=%(s)s length=%(b)s dur=%(M)sms'"
|
118
118
|
|
119
119
|
if plain_db_installed:
|
120
|
-
runserver_cmd =
|
121
|
-
f"plain models db-wait && plain legacy migrate && {gunicorn}"
|
122
|
-
)
|
120
|
+
runserver_cmd = f"plain models db-wait && plain migrate && {gunicorn}"
|
123
121
|
else:
|
124
122
|
runserver_cmd = gunicorn
|
125
123
|
|
plain/dev/precommit/cli.py
CHANGED
@@ -71,13 +71,10 @@ def cli(install):
|
|
71
71
|
"--database",
|
72
72
|
"default",
|
73
73
|
)
|
74
|
-
check_short(
|
75
|
-
"Checking Plain migrations", "plain", "legacy", "migrate", "--check"
|
76
|
-
)
|
74
|
+
check_short("Checking Plain migrations", "plain", "migrate", "--check")
|
77
75
|
check_short(
|
78
76
|
"Checking for Plain models missing migrations",
|
79
77
|
"plain",
|
80
|
-
"legacy",
|
81
78
|
"makemigrations",
|
82
79
|
"--dry-run",
|
83
80
|
"--check",
|
@@ -102,7 +99,7 @@ def plain_db_connected():
|
|
102
99
|
result = subprocess.run(
|
103
100
|
[
|
104
101
|
"plain",
|
105
|
-
"
|
102
|
+
"models",
|
106
103
|
"showmigrations",
|
107
104
|
"--skip-checks",
|
108
105
|
],
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: plain.dev
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.0
|
4
4
|
Summary: Local development tools for Plain.
|
5
5
|
Home-page: https://plainframework.com
|
6
6
|
License: BSD-3-Clause
|
@@ -16,7 +16,7 @@ Requires-Dist: debugpy (>=1.6.3,<2.0.0)
|
|
16
16
|
Requires-Dist: gunicorn (>20)
|
17
17
|
Requires-Dist: honcho (>=1.1.0,<2.0.0)
|
18
18
|
Requires-Dist: plain (<1.0.0)
|
19
|
-
Requires-Dist:
|
19
|
+
Requires-Dist: psycopg[binary] (>=3.2.2,<4.0.0)
|
20
20
|
Requires-Dist: requests (>=2.0.0)
|
21
21
|
Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
|
22
22
|
Project-URL: Documentation, https://plainframework.com/docs/
|
@@ -87,8 +87,8 @@ Runs:
|
|
87
87
|
- `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
|
88
88
|
- `poetry check --lock`, if using [Poetry](https://python-poetry.org/)
|
89
89
|
- `plain preflight --database default`
|
90
|
-
- `plain
|
91
|
-
- `plain
|
90
|
+
- `plain migrate --check`
|
91
|
+
- `plain makemigrations --dry-run --check`
|
92
92
|
- `plain compile`
|
93
93
|
- `plain test`
|
94
94
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
plain/dev/README.md,sha256=
|
1
|
+
plain/dev/README.md,sha256=BQDaRKfsafIPzx7vtVt-zS-a8l6sxbQThhQTvu7tp3Y,3699
|
2
2
|
plain/dev/__init__.py,sha256=C1JrkNE5XX2DLgBXXLAV_UyhofwVd0ZPL59fPUMbOKo,139
|
3
|
-
plain/dev/cli.py,sha256=
|
3
|
+
plain/dev/cli.py,sha256=4JOdOVvL4jjWad286g4lm4L9sdaFt7UJejaUK-TW3PU,4820
|
4
4
|
plain/dev/config.py,sha256=h6o5YZtJhg-cFIWoqIDWuMCC5T09cxEsBaa3BP4Nii0,632
|
5
5
|
plain/dev/contribute/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
6
6
|
plain/dev/contribute/cli.py,sha256=SKy2UG5cD4M8E2gN48MJxH-PNTcxt53P3N0Xfb5nZWY,3529
|
@@ -11,15 +11,15 @@ plain/dev/debug.py,sha256=fIrecLfAK_lXSDyn3WmYikzZSse3KY47xcVVbZqJGhk,294
|
|
11
11
|
plain/dev/default_settings.py,sha256=uXWYORWP_aRDwXIFXdu5kHyiBFUZzARIJdhPeFaX35c,75
|
12
12
|
plain/dev/pid.py,sha256=gRMBf7aGndrra1TnmKtPghTijnd0i0Xeo63mzfPWp7M,436
|
13
13
|
plain/dev/precommit/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
14
|
-
plain/dev/precommit/cli.py,sha256=
|
14
|
+
plain/dev/precommit/cli.py,sha256=gwpFcH267Kbqc2Ci3MHFxxAXsuDDblGxcicVVNi1NdY,3488
|
15
15
|
plain/dev/requests.py,sha256=0HyCH7iZ32ne94ypMdE96z5iYb_Qbd705WItVik1SyA,6839
|
16
16
|
plain/dev/services.py,sha256=m4XOcY8qcUVA4u8vsFZmU-wChgQvy5uiu5abOR9wZfg,2127
|
17
17
|
plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKaAET-wAm8,7627
|
18
18
|
plain/dev/urls.py,sha256=b4NL2I6Ok-t7nTPjRnKoz_LQRttE3_mp8l2NlmeYQ9I,146
|
19
19
|
plain/dev/utils.py,sha256=mL3C3l3GsKmtI6eF4sRjv7w9n7Y9lLVqJulj81JrqWw,312
|
20
20
|
plain/dev/views.py,sha256=r2Ivk7OXytpRhXq4DZpsb7FXNP9vzmEE3D5kLajYG4w,1073
|
21
|
-
plain_dev-0.
|
22
|
-
plain_dev-0.
|
23
|
-
plain_dev-0.
|
24
|
-
plain_dev-0.
|
25
|
-
plain_dev-0.
|
21
|
+
plain_dev-0.4.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
|
22
|
+
plain_dev-0.4.0.dist-info/METADATA,sha256=D1Q0FfnfLJvxdwNzaGlwK0B1NkUvLb3vkwxLn9UZEk8,4727
|
23
|
+
plain_dev-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
24
|
+
plain_dev-0.4.0.dist-info/entry_points.txt,sha256=rBo-S4THn07f55UwHBuUhIbDhlUq3EzTOD8mIb5fGQg,99
|
25
|
+
plain_dev-0.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|