plain.dev 0.1.0__tar.gz → 0.3.0__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.
Files changed (24) hide show
  1. {plain_dev-0.1.0 → plain_dev-0.3.0}/PKG-INFO +6 -8
  2. {plain_dev-0.1.0 → plain_dev-0.3.0}/README.md +3 -3
  3. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/README.md +3 -3
  4. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/cli.py +1 -3
  5. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/precommit/cli.py +3 -6
  6. {plain_dev-0.1.0 → plain_dev-0.3.0}/pyproject.toml +8 -3
  7. {plain_dev-0.1.0 → plain_dev-0.3.0}/LICENSE +0 -0
  8. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/__init__.py +0 -0
  9. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/config.py +0 -0
  10. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/contribute/__init__.py +0 -0
  11. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/contribute/cli.py +0 -0
  12. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/db/__init__.py +0 -0
  13. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/db/cli.py +0 -0
  14. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/db/container.py +0 -0
  15. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/debug.py +0 -0
  16. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/default_settings.py +0 -0
  17. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/pid.py +0 -0
  18. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/precommit/__init__.py +0 -0
  19. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/requests.py +0 -0
  20. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/services.py +0 -0
  21. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/templates/dev/requests.html +0 -0
  22. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/urls.py +0 -0
  23. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/utils.py +0 -0
  24. {plain_dev-0.1.0 → plain_dev-0.3.0}/plain/dev/views.py +0 -0
@@ -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
 
@@ -60,10 +60,10 @@ Runs:
60
60
 
61
61
  - Custom commands defined in `pyproject.toml` at `tool.plain.pre-commit.run`
62
62
  - `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
63
- - `poetry lock --check`, if using [Poetry](https://python-poetry.org/)
63
+ - `poetry check --lock`, if using [Poetry](https://python-poetry.org/)
64
64
  - `plain preflight --database default`
65
- - `plain legacy migrate --check`
66
- - `plain legacy makemigrations --dry-run --check`
65
+ - `plain migrate --check`
66
+ - `plain makemigrations --dry-run --check`
67
67
  - `plain compile`
68
68
  - `plain test`
69
69
 
@@ -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
 
@@ -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
  ],
@@ -5,7 +5,7 @@ packages = [
5
5
  { include = "plain" },
6
6
  ]
7
7
 
8
- version = "0.1.0"
8
+ version = "0.3.0"
9
9
  description = "Local development tools for Plain."
10
10
  authors = ["Dave Gaeddert <dave.gaeddert@dropseed.dev>"]
11
11
  license = "BSD-3-Clause"
@@ -21,7 +21,10 @@ repository = "https://github.com/dropseed/plain"
21
21
  "contrib" = "plain.dev.contribute:cli"
22
22
 
23
23
  [tool.poetry.dependencies]
24
- python = "^3.8"
24
+ python = "^3.11"
25
+
26
+ plain = "<1.0.0"
27
+
25
28
  click = ">=8.0.0"
26
29
  honcho = "^1.1.0"
27
30
  debugpy = "^1.6.3"
@@ -36,7 +39,9 @@ requests = ">=2.0.0"
36
39
  psycopg2-binary = "^2.9.3"
37
40
 
38
41
 
39
- [tool.poetry.dev-dependencies]
42
+ [tool.poetry.group.dev.dependencies]
43
+ plain = {path = "../plain", develop = true}
44
+
40
45
  pytest = "^7.1.2"
41
46
  ipdb = "^0.13.9"
42
47
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes