alembic-environment 0.1.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.
- alembic_environment-0.1.0/PKG-INFO +25 -0
- alembic_environment-0.1.0/README.md +13 -0
- alembic_environment-0.1.0/pyproject.toml +48 -0
- alembic_environment-0.1.0/src/alembic_environment/__init__.py +0 -0
- alembic_environment-0.1.0/src/alembic_environment/__main__.py +0 -0
- alembic_environment-0.1.0/src/alembic_environment/main.py +35 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: alembic-environment
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Requires-Dist: copier>=9.15.1
|
|
6
|
+
Requires-Dist: typer>=0.26.6
|
|
7
|
+
Requires-Python: >=3.14
|
|
8
|
+
Project-URL: Homepage, https://github.com/Phazebreak-Coatings-Inc/alembic-environment
|
|
9
|
+
Project-URL: Documentation, https://phazebreak-coatings-inc.github.io/alembic-environment/
|
|
10
|
+
Project-URL: Repository, https://github.com/Phazebreak-Coatings-Inc/alembic-environment
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# alembic-environment
|
|
14
|
+
|
|
15
|
+
Check the documentation [here](https://phazebreak-coatings-inc.github.io/alembic-environment/).
|
|
16
|
+
|
|
17
|
+
# License
|
|
18
|
+
|
|
19
|
+
MIT License available [here](./LICENSE)
|
|
20
|
+
|
|
21
|
+
# Product of Phazebreak Coatings, Inc.
|
|
22
|
+
|
|
23
|
+
This software was officially developed by renewables coatings manufacturer Phazebreak Coatings, Inc.
|
|
24
|
+
|
|
25
|
+
Learn more [here](https://www.phazebreak.com/)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# alembic-environment
|
|
2
|
+
|
|
3
|
+
Check the documentation [here](https://phazebreak-coatings-inc.github.io/alembic-environment/).
|
|
4
|
+
|
|
5
|
+
# License
|
|
6
|
+
|
|
7
|
+
MIT License available [here](./LICENSE)
|
|
8
|
+
|
|
9
|
+
# Product of Phazebreak Coatings, Inc.
|
|
10
|
+
|
|
11
|
+
This software was officially developed by renewables coatings manufacturer Phazebreak Coatings, Inc.
|
|
12
|
+
|
|
13
|
+
Learn more [here](https://www.phazebreak.com/)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "alembic-environment"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.14"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"copier>=9.15.1",
|
|
9
|
+
"typer>=0.26.6",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
[project.urls]
|
|
13
|
+
Homepage = "https://github.com/Phazebreak-Coatings-Inc/alembic-environment"
|
|
14
|
+
Documentation = "https://phazebreak-coatings-inc.github.io/alembic-environment/"
|
|
15
|
+
Repository = "https://github.com/Phazebreak-Coatings-Inc/alembic-environment"
|
|
16
|
+
|
|
17
|
+
[build-system]
|
|
18
|
+
requires = ["uv_build>=0.11.18,<0.12"]
|
|
19
|
+
build-backend = "uv_build"
|
|
20
|
+
|
|
21
|
+
[tool.uv.workspace]
|
|
22
|
+
members = ["models", "migrations"]
|
|
23
|
+
|
|
24
|
+
[tool.uv.sources]
|
|
25
|
+
models = { workspace = true }
|
|
26
|
+
migrations = { workspace = true }
|
|
27
|
+
|
|
28
|
+
[dependency-groups]
|
|
29
|
+
dev = [
|
|
30
|
+
"debugpy>=1.8.21",
|
|
31
|
+
"alembic>=1.18.4",
|
|
32
|
+
"sqlalchemy>=2.0.50",
|
|
33
|
+
"sqlmodel>=0.0.38",
|
|
34
|
+
"models",
|
|
35
|
+
"migrations",
|
|
36
|
+
"pytest-alembic>=0.12.1",
|
|
37
|
+
"pytest>=9.0.3",
|
|
38
|
+
"pydantic-settings>=2.14.1",
|
|
39
|
+
"psycopg[binary]>=3.3.4",
|
|
40
|
+
"ruff>=0.15.15",
|
|
41
|
+
"tomlkit>=0.15.0",
|
|
42
|
+
"sqlacodegen>=4.0.3",
|
|
43
|
+
"inflection>=0.5.1",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
docs = [
|
|
47
|
+
"zensical>=0.0.43"
|
|
48
|
+
]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from typer import Typer
|
|
2
|
+
import copier
|
|
3
|
+
import typer
|
|
4
|
+
import subprocess
|
|
5
|
+
|
|
6
|
+
app = Typer(pretty_exceptions_show_locals=False)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@app.command()
|
|
10
|
+
def init(dest="."):
|
|
11
|
+
copier.run_copy("gh:Phazebreak-Coatings-Inc/alembic-environment", dest)
|
|
12
|
+
repair()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@app.command()
|
|
16
|
+
def update(abort: bool = False):
|
|
17
|
+
match abort:
|
|
18
|
+
case False:
|
|
19
|
+
typer.confirm(
|
|
20
|
+
"Are you sure you want to update? If you need to abort mid-update, it will trigger a 'git reset.' Make sure to save all uncommitted changes.",
|
|
21
|
+
abort=True,
|
|
22
|
+
)
|
|
23
|
+
subprocess.run("copier update --conflict inline", shell=True, check=True)
|
|
24
|
+
case True:
|
|
25
|
+
typer.confirm(
|
|
26
|
+
"Are you sure you want to abort? This will trigger a 'git reset.'"
|
|
27
|
+
)
|
|
28
|
+
subprocess.run("git reset", shell=True, check=True)
|
|
29
|
+
subprocess.run("git checkout .", shell=True, check=True)
|
|
30
|
+
subprocess.run("git clean -d -i", shell=True, check=True)
|
|
31
|
+
repair()
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@app.command()
|
|
35
|
+
def repair(): ...
|