Compare commits

..

5 commits

Author SHA1 Message Date
Luc Didry
8652539086
🏷 — Bump version (0.7.1) 2025-01-15 16:18:16 +01:00
Luc Didry
4f3dfd994b
🔀 Merge remote-tracking branch 'origin/develop' 2025-01-15 16:16:14 +01:00
Luc Didry
28ec85fed3
📝 — Improve release documentation 2025-01-15 16:15:16 +01:00
Luc Didry
586660c02a
🩹 — Check before adding/removing ip_version_enum 2025-01-15 09:14:55 +01:00
Luc Didry
64f8241e74
🩹 — Avoid warning from MySQL only alembic instructions 2025-01-14 17:06:59 +01:00
5 changed files with 14 additions and 6 deletions

View file

@ -2,6 +2,15 @@
## [Unreleased] ## [Unreleased]
## 0.7.1
Date: 2025-01-15
- 🩹 — Avoid warning from MySQL only alembic instructions
- 🩹 — Check before adding/removing ip_version_enum
- 📝 — Improve release documentation
## 0.7.0 ## 0.7.0
Date: 2025-01-14 Date: 2025-01-14

View file

@ -1 +1 @@
VERSION = "0.7.0" VERSION = "0.7.1"

View file

@ -21,7 +21,7 @@ depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None: def upgrade() -> None:
enum = ENUM("4", "6", name="ip_version_enum", create_type=False) enum = ENUM("4", "6", name="ip_version_enum", create_type=False)
enum.create(op.get_bind(), checkfirst=False) enum.create(op.get_bind(), checkfirst=True)
with op.batch_alter_table("tasks", schema=None) as batch_op: with op.batch_alter_table("tasks", schema=None) as batch_op:
batch_op.add_column( batch_op.add_column(
sa.Column("ip_version", enum, server_default="4", nullable=False) sa.Column("ip_version", enum, server_default="4", nullable=False)
@ -31,4 +31,4 @@ def upgrade() -> None:
def downgrade() -> None: def downgrade() -> None:
with op.batch_alter_table("tasks", schema=None) as batch_op: with op.batch_alter_table("tasks", schema=None) as batch_op:
batch_op.drop_column("ip_version") batch_op.drop_column("ip_version")
ENUM(name="ip_version_enum").drop(op.get_bind(), checkfirst=False) ENUM(name="ip_version_enum").drop(op.get_bind(), checkfirst=True)

View file

@ -27,7 +27,6 @@ def upgrade() -> None:
existing_type=sa.INTEGER(), existing_type=sa.INTEGER(),
type_=sa.BigInteger(), type_=sa.BigInteger(),
existing_nullable=False, existing_nullable=False,
autoincrement=True,
) )
@ -40,5 +39,4 @@ def downgrade() -> None:
existing_type=sa.BigInteger(), existing_type=sa.BigInteger(),
type_=sa.INTEGER(), type_=sa.INTEGER(),
existing_nullable=False, existing_nullable=False,
autoincrement=True,
) )

View file

@ -41,7 +41,8 @@ git add argos/__init__.py CHANGELOG.md
git commit -m "🏷 — Bump version ($(hatch version))" git commit -m "🏷 — Bump version ($(hatch version))"
# Create a tag on the git repository and push it # Create a tag on the git repository and push it
git tag "$(hatch version)" && git push git tag "$(hatch version)" -m "$(hatch version)" &&
git push --follow-tags
# Build the project # Build the project
hatch build --clean hatch build --clean