Skip to content

Commit 825e904

Browse files
committed
Version bump v1.3.0
1 parent d781d56 commit 825e904

File tree

6 files changed

+72
-6
lines changed

6 files changed

+72
-6
lines changed

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.3.0 (unreleased)
5+
------------------
6+
7+
48
1.2.0 (2025-04-04)
59
------------------
610

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
version = "1.2.0"
5+
version = "1.3.0"
66

77
with open("README.rst", "r") as fh:
88
long_description = fh.read()
@@ -36,8 +36,8 @@
3636
include_package_data=True,
3737
zip_safe=False,
3838
install_requires=[
39-
"senaite.abx>=1.3.0",
40-
"senaite.microorganism>=1.2.0"
39+
"senaite.abx>=1.4.0",
40+
"senaite.microorganism>=1.3.0"
4141
],
4242
extras_require={
4343
"test": [

src/senaite/ast/profiles/default/metadata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
dependencies before installing this add-on own profile.
77
-->
88
<metadata>
9-
<version>1203</version>
9+
<version>1300</version>
1010

1111
<!-- Be sure to install the following dependencies if not yet installed -->
1212
<dependencies>

src/senaite/ast/upgrade/configure.zcml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<configure
22
xmlns="http://namespaces.zope.org/zope"
3-
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
4-
i18n_domain="senaite.ast">
3+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup">
4+
5+
<!-- 1.3.0 -->
6+
<include file="v01_03_000.zcml"/>
57

68
<!-- 1.2.0 -->
79
<include file="v01_02_000.zcml"/>

src/senaite/ast/upgrade/v01_03_000.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# This file is part of SENAITE.AST.
4+
#
5+
# SENAITE.AST is free software: you can redistribute it and/or modify it under
6+
# the terms of the GNU General Public License as published by the Free
7+
# Software Foundation, version 2.
8+
#
9+
# This program is distributed in the hope that it will be useful, but WITHOUT
10+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11+
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12+
# details.
13+
#
14+
# You should have received a copy of the GNU General Public License along with
15+
# this program; if not, write to the Free Software Foundation, Inc., 51
16+
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17+
#
18+
# Copyright 2020-2025 by it's authors.
19+
# Some rights reserved, see README and LICENSE.
20+
21+
from senaite.ast import logger
22+
from senaite.ast import PRODUCT_NAME
23+
from senaite.core.upgrade import upgradestep
24+
from senaite.core.upgrade.utils import UpgradeUtils
25+
26+
version = "1.3.0"
27+
profile = "profile-{0}:default".format(PRODUCT_NAME)
28+
29+
30+
@upgradestep(PRODUCT_NAME, version)
31+
def upgrade(tool):
32+
portal = tool.aq_inner.aq_parent
33+
setup = portal.portal_setup
34+
ut = UpgradeUtils(portal)
35+
ver_from = ut.getInstalledVersion(PRODUCT_NAME)
36+
37+
if ut.isOlderVersion(PRODUCT_NAME, version):
38+
logger.info("Skipping upgrade of {0}: {1} > {2}".format(
39+
PRODUCT_NAME, ver_from, version))
40+
return True
41+
42+
logger.info("Upgrading {0}: {1} -> {2}".format(PRODUCT_NAME, ver_from,
43+
version))
44+
45+
# -------- ADD YOUR STUFF BELOW --------
46+
47+
logger.info("{0} upgraded to version {1}".format(PRODUCT_NAME, version))
48+
return True
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configure
2+
xmlns="http://namespaces.zope.org/zope"
3+
xmlns:genericsetup="http://namespaces.zope.org/genericsetup">
4+
5+
<genericsetup:upgradeStep
6+
title="Upgrade to SENAITE AST 1.3.0"
7+
source="1203"
8+
destination="1300"
9+
handler="senaite.ast.upgrade.v01_03_000.upgrade"
10+
profile="senaite.ast:default"/>
11+
12+
</configure>

0 commit comments

Comments
 (0)