coloph-migrations 0.2.12__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.
- coloph_migrations-0.2.12/.github/workflows/publish.yml +51 -0
- coloph_migrations-0.2.12/.gitignore +6 -0
- coloph_migrations-0.2.12/LICENSE +674 -0
- coloph_migrations-0.2.12/PKG-INFO +172 -0
- coloph_migrations-0.2.12/README.md +161 -0
- coloph_migrations-0.2.12/TRADEMARKS.md +7 -0
- coloph_migrations-0.2.12/coloph-migrations.toml.example +17 -0
- coloph_migrations-0.2.12/pyproject.toml +33 -0
- coloph_migrations-0.2.12/scripts/release.py +70 -0
- coloph_migrations-0.2.12/src/coloph_migrations/__init__.py +6 -0
- coloph_migrations-0.2.12/src/coloph_migrations/__main__.py +4 -0
- coloph_migrations-0.2.12/src/coloph_migrations/backwards.py +96 -0
- coloph_migrations-0.2.12/src/coloph_migrations/cli.py +132 -0
- coloph_migrations-0.2.12/src/coloph_migrations/config.py +149 -0
- coloph_migrations-0.2.12/src/coloph_migrations/git_checks.py +67 -0
- coloph_migrations-0.2.12/src/coloph_migrations/migrations.py +478 -0
- coloph_migrations-0.2.12/src/coloph_migrations/repair.py +54 -0
- coloph_migrations-0.2.12/src/coloph_migrations/schema.py +225 -0
- coloph_migrations-0.2.12/src/coloph_migrations/test_database.py +63 -0
- coloph_migrations-0.2.12/tests/conftest.py +35 -0
- coloph_migrations-0.2.12/tests/test_backwards.py +80 -0
- coloph_migrations-0.2.12/tests/test_config.py +38 -0
- coloph_migrations-0.2.12/tests/test_failure_parity.py +245 -0
- coloph_migrations-0.2.12/tests/test_git_checks.py +24 -0
- coloph_migrations-0.2.12/tests/test_migrations.py +31 -0
- coloph_migrations-0.2.12/tests/test_schema.py +115 -0
- coloph_migrations-0.2.12/tests/test_test_database.py +99 -0
- coloph_migrations-0.2.12/uv.lock +417 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions: {}
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
16
|
+
with:
|
|
17
|
+
ref: ${{ github.event.release.tag_name }}
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
|
|
20
|
+
with:
|
|
21
|
+
version: "0.12.10"
|
|
22
|
+
enable-cache: false
|
|
23
|
+
- run: uv python install 3.12
|
|
24
|
+
- run: uv run --no-project --python 3.12 python scripts/release.py build --tag "${{ github.event.release.tag_name }}"
|
|
25
|
+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
26
|
+
with:
|
|
27
|
+
name: distributions
|
|
28
|
+
path: dist/
|
|
29
|
+
|
|
30
|
+
publish:
|
|
31
|
+
needs: build
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
environment: pypi
|
|
34
|
+
permissions:
|
|
35
|
+
contents: read
|
|
36
|
+
id-token: write
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
39
|
+
with:
|
|
40
|
+
ref: ${{ github.event.release.tag_name }}
|
|
41
|
+
persist-credentials: false
|
|
42
|
+
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
|
|
43
|
+
with:
|
|
44
|
+
version: "0.12.10"
|
|
45
|
+
enable-cache: false
|
|
46
|
+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
47
|
+
with:
|
|
48
|
+
name: distributions
|
|
49
|
+
path: dist/
|
|
50
|
+
- run: uv python install 3.12
|
|
51
|
+
- run: uv run --no-project --python 3.12 python scripts/release.py publish --tag "${{ github.event.release.tag_name }}"
|