From 396e2f6624fe8344f1c71f8da8bc0f3323752fbc Mon Sep 17 00:00:00 2001 From: Mauro MSL Date: Thu, 7 Nov 2024 07:52:17 +0000 Subject: [PATCH] Bump version v1.7.2 --- README.md | 14 +++------- docs/source/conf.py | 4 +-- src/janeway/__init__.py | 2 +- src/utils/migrations/0038_upgrade_1_7_2.py | 30 ++++++++++++++++++++++ 4 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 src/utils/migrations/0038_upgrade_1_7_2.py diff --git a/README.md b/README.md index f1d12f5ba..5d761676f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Janeway Logo](http://www.openlibhums.org/hosted_files/Janeway-Logo-05.png "Janeway") +![Janeway Logo](https://www.openlibhums.org/media/press/Janeway_RGB_Keyline_Logo_Black.png "Janeway") Janeway is a web-based platform for publishing journals, preprints, conference proceedings, and books. It is developed and maintained by a team of developers at the Open Library of Humanities, part of Birkbeck, University of London. @@ -64,16 +64,8 @@ If you wish to get in touch about Janeway, contact information is provided below Andy Byers, Director of Publishing Technology - a.byers@bbk.ac.uk # Major Releases -Major releases are listed below. Between v1.3 & v1.4 there were a large number of minor releases. You can find more information on the [releases](https://github.com/BirkbeckCTP/janeway/releases) page. - -| Version | Released | Code Name | -|---------|------------|-----------| -| v1.0 | 10/07/2017 | Kathryn | -| v1.1 | 01/09/2017 | Chakotay | -| v1.2 | 06/11/2017 | Tuvok | -| v1.3 | 10/08/2018 | Doctor | -| v1.4 | 25/10/2021 | Kes | -| v1.5 | 07/05/2023 | Torres | +All releases are listed on the [releases](https://github.com/BirkbeckCTP/janeway/releases) page. + # Geolocation Janeway includes GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com) diff --git a/docs/source/conf.py b/docs/source/conf.py index b481aba6a..9012b12f5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -24,9 +24,9 @@ author = 'Andy Byers, Mauro Sanchez & Martin Paul Eve' # The short X.Y version -version = '1.7.1' +version = '1.7.2' # The full version, including alpha/beta/rc tags -release = '1.7.1' +release = '1.7.2' # -- General configuration --------------------------------------------------- diff --git a/src/janeway/__init__.py b/src/janeway/__init__.py index 9f656ac19..cf2b40c75 100644 --- a/src/janeway/__init__.py +++ b/src/janeway/__init__.py @@ -1,2 +1,2 @@ from packaging import version -__version__ = version.parse("1.7.1") +__version__ = version.parse("1.7.2") diff --git a/src/utils/migrations/0038_upgrade_1_7_2.py b/src/utils/migrations/0038_upgrade_1_7_2.py new file mode 100644 index 000000000..d0e259ef8 --- /dev/null +++ b/src/utils/migrations/0038_upgrade_1_7_2.py @@ -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.2" + + +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', '0037_upgrade_1_7_1'), + ] + + operations = [ + migrations.RunPython(upgrade, reverse_code=rollback), + ]