Skip to content

Commit

Permalink
Bumps version to 1.7.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers committed Oct 25, 2024
1 parent c6c74a6 commit 7ca333d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = 'Andy Byers, Mauro Sanchez & Martin Paul Eve'

# The short X.Y version
version = '1.7.0'
version = '1.7.1'
# The full version, including alpha/beta/rc tags
release = '1.7.0'
release = '1.7.1'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/janeway/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from packaging import version
__version__ = version.parse("1.7.0")
__version__ = version.parse("1.7.1")
30 changes: 30 additions & 0 deletions src/utils/migrations/0037_upgrade_1_7_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Generated by Django 4.2.15 on 2024-10-25 14:18

from django.db import migrations, models
from django.utils import timezone

VERSION = "1.7.1"


def rollback(apps, schema_editor):
version_model = apps.get_model("utils", "Version")
latest_version = version_model.objects.get(number=VERSION, rollback=None)
latest_version.rollback = timezone.now()
latest_version.save()


def upgrade(apps, schema_editor):
version_model = apps.get_model("utils", "Version")
new_version = version_model.objects.create(number=VERSION)
new_version.save()


class Migration(migrations.Migration):

dependencies = [
('utils', '0036_typesetting_guide'),
]

operations = [
migrations.RunPython(upgrade, reverse_code=rollback),
]

0 comments on commit 7ca333d

Please sign in to comment.