Skip to content

Commit

Permalink
Bumped versions for 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Oct 3, 2022
1 parent 191ead7 commit 257a092
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.4.0 (unreleased)
------------------

- no changes yet


2.3.0 (2022-10-03)
------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from setuptools import setup, find_packages

version = "2.3.0"
version = "2.4.0"

with open("docs/About.rst", "r") as fh:
long_description = fh.read()
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/impress/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<metadata>
<version>2300</version>
<version>2400</version>
</metadata>
2 changes: 1 addition & 1 deletion src/senaite/impress/profiles/uninstall/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<metadata>
<version>2300</version>
<version>2400</version>
</metadata>
9 changes: 9 additions & 0 deletions src/senaite/impress/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="senaite.impress">

<genericsetup:upgradeStep
title="Upgrade SENAITE IMPRESS"
description="Upgrade to version 2.4.0"
sortkey="1"
source="2300"
destination="2400"
handler="senaite.impress.upgrades.handlers.to_2400"
profile="senaite.impress:default" />

<genericsetup:upgradeStep
title="Upgrade SENAITE IMPRESS"
description="Upgrade to version 2.3.0"
Expand Down
11 changes: 11 additions & 0 deletions src/senaite/impress/upgrades/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
PROFILE_ID = "profile-senaite.impress:default"


def to_2400(portal_setup):
"""Update to version 2.4.0
:param portal_setup: The portal_setup tool
"""

logger.info("Run all import steps from SENAITE IMPRESS ...")
portal_setup.runAllImportStepsFromProfile(PROFILE_ID)
logger.info("Run all import steps from SENAITE IMPRESS [DONE]")


def to_2300(portal_setup):
"""Update to version 2.3.0
Expand Down

0 comments on commit 257a092

Please sign in to comment.