alembic-status 1.0.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_status-1.0.0/.github/workflows/ci.yml +55 -0
- alembic_status-1.0.0/.github/workflows/publish.yml +29 -0
- alembic_status-1.0.0/.gitignore +5 -0
- alembic_status-1.0.0/LICENSE +674 -0
- alembic_status-1.0.0/NOTICE +12 -0
- alembic_status-1.0.0/PKG-INFO +279 -0
- alembic_status-1.0.0/README.md +246 -0
- alembic_status-1.0.0/alembic_status/__init__.py +6 -0
- alembic_status-1.0.0/alembic_status/cli.py +103 -0
- alembic_status-1.0.0/alembic_status/core.py +327 -0
- alembic_status-1.0.0/alembic_status/flask_cli.py +74 -0
- alembic_status-1.0.0/pyproject.toml +55 -0
- alembic_status-1.0.0/tests/__init__.py +0 -0
- alembic_status-1.0.0/tests/conftest.py +14 -0
- alembic_status-1.0.0/tests/project.py +84 -0
- alembic_status-1.0.0/tests/scenarios/.gitignore +2 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/expected.toml +32 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/versions/f1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/versions/f2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/versions/m1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_from_middle/versions/m2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/versions/x1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/versions/x2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/versions/y1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/branch_loop/versions/y2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/expected.toml +32 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/versions/d1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/versions/d2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/versions/e1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/cross_branch_depends/versions/e2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/empty/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/empty/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/empty/versions/.gitkeep +0 -0
- alembic_status-1.0.0/tests/scenarios/fork/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/fork/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/fork/expected.toml +29 -0
- alembic_status-1.0.0/tests/scenarios/fork/versions/c1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork/versions/c2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork/versions/c3a.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork/versions/c3b.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/expected.toml +32 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/versions/c1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/versions/c2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/versions/c3a.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/versions/c3b.py +16 -0
- alembic_status-1.0.0/tests/scenarios/fork_and_merge/versions/c4.py +16 -0
- alembic_status-1.0.0/tests/scenarios/linear/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/linear/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/linear/expected.toml +26 -0
- alembic_status-1.0.0/tests/scenarios/linear/versions/l1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/linear/versions/l2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/linear/versions/l3.py +16 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/versions/a1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/versions/a2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/versions/ab.py +16 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/versions/b1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/merged_branches/versions/b2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/expected.toml +41 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/p1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/p2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/q1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/q2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/r1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/three_branches/versions/r2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/expected.toml +32 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/versions/a1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/versions/a2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/versions/b1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/two_branches/versions/b2.py +16 -0
- alembic_status-1.0.0/tests/scenarios/unlabeled_base/alembic.ini +3 -0
- alembic_status-1.0.0/tests/scenarios/unlabeled_base/env.py +15 -0
- alembic_status-1.0.0/tests/scenarios/unlabeled_base/versions/u1.py +16 -0
- alembic_status-1.0.0/tests/scenarios/unlabeled_base/versions/u2.py +16 -0
- alembic_status-1.0.0/tests/test_cli.py +69 -0
- alembic_status-1.0.0/tests/test_core.py +199 -0
- alembic_status-1.0.0/tests/test_flask_cli.py +59 -0
- alembic_status-1.0.0/tests/test_status_output.py +26 -0
- alembic_status-1.0.0/uv.lock +473 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
workflow_call:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
lint:
|
|
15
|
+
name: Ruff
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: astral-sh/setup-uv@v6
|
|
20
|
+
with:
|
|
21
|
+
enable-cache: true
|
|
22
|
+
- run: uv sync --locked --all-groups
|
|
23
|
+
- run: uv run ruff check .
|
|
24
|
+
- run: uv run ruff format --check .
|
|
25
|
+
|
|
26
|
+
test:
|
|
27
|
+
name: Pytest (Python ${{ matrix.python-version }}, Flask ${{ matrix.flask }})
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
strategy:
|
|
30
|
+
fail-fast: false
|
|
31
|
+
matrix:
|
|
32
|
+
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
|
|
33
|
+
flask: [true, false]
|
|
34
|
+
exclude:
|
|
35
|
+
# Without Flask, only the latest Python is tested.
|
|
36
|
+
- python-version: "3.11"
|
|
37
|
+
flask: false
|
|
38
|
+
- python-version: "3.12"
|
|
39
|
+
flask: false
|
|
40
|
+
- python-version: "3.13"
|
|
41
|
+
flask: false
|
|
42
|
+
- python-version: "3.14"
|
|
43
|
+
flask: false
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
- uses: astral-sh/setup-uv@v6
|
|
47
|
+
with:
|
|
48
|
+
enable-cache: true
|
|
49
|
+
- name: Install with Flask
|
|
50
|
+
if: matrix.flask
|
|
51
|
+
run: uv sync --locked --group flask --python ${{ matrix.python-version }}
|
|
52
|
+
- name: Install without Flask
|
|
53
|
+
if: ${{ !matrix.flask }}
|
|
54
|
+
run: uv sync --locked --python ${{ matrix.python-version }}
|
|
55
|
+
- run: uv run pytest -rs
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
ci:
|
|
12
|
+
name: CI
|
|
13
|
+
uses: ./.github/workflows/ci.yml
|
|
14
|
+
|
|
15
|
+
publish:
|
|
16
|
+
name: Build and publish
|
|
17
|
+
needs: ci
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: astral-sh/setup-uv@v6
|
|
22
|
+
- name: Check that the tag matches the project version
|
|
23
|
+
run: test "v$(uv version --short)" = "${GITHUB_REF_NAME}"
|
|
24
|
+
- run: uv build
|
|
25
|
+
- name: Publish
|
|
26
|
+
env:
|
|
27
|
+
UV_PUBLISH_URL: ${{ vars.PUBLISH_URL || 'https://test.pypi.org/legacy/' }}
|
|
28
|
+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
29
|
+
run: uv publish --trusted-publishing never
|