plain.dev 0.1.0__py3-none-any.whl → 0.3.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 CHANGED
@@ -58,10 +58,10 @@ Runs:
58
58
 
59
59
  - Custom commands defined in `pyproject.toml` at `tool.plain.pre-commit.run`
60
60
  - `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
61
- - `poetry lock --check`, if using [Poetry](https://python-poetry.org/)
61
+ - `poetry check --lock`, if using [Poetry](https://python-poetry.org/)
62
62
  - `plain preflight --database default`
63
- - `plain legacy migrate --check`
64
- - `plain legacy makemigrations --dry-run --check`
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
 
@@ -61,7 +61,7 @@ def cli(install):
61
61
  check_short("Running plain code checks", "plain", "code", "check")
62
62
 
63
63
  if Path("poetry.lock").exists():
64
- check_short("Checking poetry.lock", "poetry", "lock", "--check")
64
+ check_short("Checking poetry.lock", "poetry", "check", "--lock")
65
65
 
66
66
  if plain_db_connected():
67
67
  check_short(
@@ -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
- "legacy",
102
+ "models",
106
103
  "showmigrations",
107
104
  "--skip-checks",
108
105
  ],
@@ -1,23 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.dev
3
- Version: 0.1.0
3
+ Version: 0.3.0
4
4
  Summary: Local development tools for Plain.
5
5
  Home-page: https://plainframework.com
6
6
  License: BSD-3-Clause
7
7
  Author: Dave Gaeddert
8
8
  Author-email: dave.gaeddert@dropseed.dev
9
- Requires-Python: >=3.8,<4.0
9
+ Requires-Python: >=3.11,<4.0
10
10
  Classifier: License :: OSI Approved :: BSD License
11
11
  Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.8
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
12
  Classifier: Programming Language :: Python :: 3.11
16
13
  Classifier: Programming Language :: Python :: 3.12
17
14
  Requires-Dist: click (>=8.0.0)
18
15
  Requires-Dist: debugpy (>=1.6.3,<2.0.0)
19
16
  Requires-Dist: gunicorn (>20)
20
17
  Requires-Dist: honcho (>=1.1.0,<2.0.0)
18
+ Requires-Dist: plain (<1.0.0)
21
19
  Requires-Dist: psycopg2-binary (>=2.9.3,<3.0.0)
22
20
  Requires-Dist: requests (>=2.0.0)
23
21
  Requires-Dist: tomli (>=2.0.1,<3.0.0) ; python_version < "3.11"
@@ -87,10 +85,10 @@ Runs:
87
85
 
88
86
  - Custom commands defined in `pyproject.toml` at `tool.plain.pre-commit.run`
89
87
  - `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
90
- - `poetry lock --check`, if using [Poetry](https://python-poetry.org/)
88
+ - `poetry check --lock`, if using [Poetry](https://python-poetry.org/)
91
89
  - `plain preflight --database default`
92
- - `plain legacy migrate --check`
93
- - `plain legacy makemigrations --dry-run --check`
90
+ - `plain migrate --check`
91
+ - `plain makemigrations --dry-run --check`
94
92
  - `plain compile`
95
93
  - `plain test`
96
94
 
@@ -1,6 +1,6 @@
1
- plain/dev/README.md,sha256=_RelqNybacbYF3wOP5Jkyx33CYAoVnax14cr6KqJDJw,3713
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=hOQuAAGsMZ2tkFlDNfYl393Kn-QLhN4ruF1N5BZBzDQ,4859
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=mvP5pxuVZdmOKXgDpJkoShx-28Py3XdS8jKKzsWLmrc,3554
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.1.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
22
- plain_dev-0.1.0.dist-info/METADATA,sha256=hU18p4Zg7D0Jp805TCNZMkCQA23KTVDNTmRrKgeyqSY,4861
23
- plain_dev-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
- plain_dev-0.1.0.dist-info/entry_points.txt,sha256=rBo-S4THn07f55UwHBuUhIbDhlUq3EzTOD8mIb5fGQg,99
25
- plain_dev-0.1.0.dist-info/RECORD,,
21
+ plain_dev-0.3.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
22
+ plain_dev-0.3.0.dist-info/METADATA,sha256=0QH3g_Idl7I7jOCgj-gtEBamHbO6NNOZm09S_QK_iV8,4727
23
+ plain_dev-0.3.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
24
+ plain_dev-0.3.0.dist-info/entry_points.txt,sha256=rBo-S4THn07f55UwHBuUhIbDhlUq3EzTOD8mIb5fGQg,99
25
+ plain_dev-0.3.0.dist-info/RECORD,,