Skip to content

Commit d868320

Browse files
committed
Changes needed for the 2023.2.2 release
1 parent 37b8d35 commit d868320

File tree

4 files changed

+38
-15
lines changed

4 files changed

+38
-15
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
run: conda mambabuild -c conda-forge -c openbiosim/label/dev ${{ github.workspace }}/sire/recipes/sire
7171
#
7272
- name: Upload Conda package
73-
# maybe add logic here to tag the packages as 'main'?
74-
run: python ${{ github.workspace }}/sire/actions/upload_package.py
73+
# upload to the 'test' channel
74+
run: python ${{ github.workspace }}/sire/actions/upload_package.py test
7575
env:
7676
SRC_DIR: ${{ github.workspace }}/sire
7777
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

actions/upload_package.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44

55
script = os.path.abspath(sys.argv[0])
66

7+
try:
8+
channel = sys.argv[1]
9+
except:
10+
channel = "dev"
11+
712
# go up one directories to get the source directory
813
# (this script is in Sire/actions/)
914
srcdir = os.path.dirname(os.path.dirname(script))
1015

1116
print(f"sire source is in {srcdir}\n")
17+
print(f"upload channel is {channel}\n")
1218

1319
# Get the anaconda token to authorise uploads
1420
if "ANACONDA_TOKEN" in os.environ:
@@ -50,14 +56,17 @@ def run_cmd(cmd):
5056

5157
tag = run_cmd(f"git --git-dir={gitdir} --work-tree={srcdir} tag --contains")
5258

53-
# If the tag is not empty, then set the label to main (this is a release)
54-
if tag is not None and tag.lstrip().rstrip() != "":
55-
print(f"\nTag {tag} is set. This is a 'main' release.")
56-
label = "--label main --label dev"
57-
else:
58-
# this is a development release
59-
print("\nNo tag is set. This is a 'devel' release.")
60-
label = "--label dev"
59+
# The channel has been specified as an extra argument
60+
# This will either be 'test' for main releases, or
61+
# 'dev' for dev releases (the default)
62+
channel = channel.lstrip().rstrip().replace(" ","_").lower()
63+
64+
if len(channel) == 0:
65+
channel = "dev"
66+
67+
print(f"\nUploading to the '{channel}' channel")
68+
69+
label = f"--label {channel}"
6170

6271
# Upload the packages to the openbiosim channel on Anaconda Cloud.
6372
cmd = f"anaconda --token {conda_token} upload --user openbiosim {label} --force {packages}"

doc/source/changelog.rst

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,31 @@ Development was migrated into the
1212
`OpenBioSim <https://github.com/openbiosim>`__
1313
organisation on `GitHub <https://github.com/openbiosim/sire>`__.
1414

15+
`2023.2.2 <https://github.com/openbiosim/sire/compare/2023.2.1...2023.2.2>`__ - April 2023
16+
------------------------------------------------------------------------------------------
17+
18+
* Fixed random crashes when loading Amber PRMTOP files when parallelisation
19+
was enabled. `PR 45 - fix_44 <https://github.com/OpenBioSim/sire/pull/45>`__
20+
21+
* Fixed failure to read an Amber PRMTOP file when no atom names or residues names
22+
are set. `PR 43 - fix_42 <https://github.com/OpenBioSim/sire/pull/43>`__
23+
24+
* Edited GitHub Actions workflow so that builds of ``devel`` automatically
25+
upload to the ``dev`` channel, while builds of ``main`` automatically
26+
upload to the ``test`` channel (for testing before being re-labelled
27+
to the ``main`` channel)
28+
1529
`2023.2.1 <https://github.com/openbiosim/sire/compare/2023.2.0...2023.2.1>`__ - April 2023
1630
------------------------------------------------------------------------------------------
1731

18-
* Added in ``openmmtools`` as a host requirement. This allows it to be installed in the
32+
* Added in ``openmmtools`` as a host requirement. This allows it to be installed in the
1933
same environment as :mod:`sire`. Note that this changes the dependencies of :mod:`sire`
2034
to use an older version of ``libnetcdf``. `PR 34 <https://github.com/OpenBioSim/sire/pull/34>`__
2135

22-
* Reactivated the parallel processing code in the Amber parameter/topology parser.
36+
* Reactivated the parallel processing code in the Amber parameter/topology parser.
2337
This significantly speeds up reading and writing of Amber parameter/topology files.
2438

25-
* Fixed compile issues with some MacOS compilers using the C++ 2017 standard, when
39+
* Fixed compile issues with some MacOS compilers using the C++ 2017 standard, when
2640
``std::unary_function`` has been removed.
2741

2842
* Fixed the lookup of Gromacs wildcard dihedrals of the form ``A-*-*-D``.
@@ -33,7 +47,7 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
3347
Note that we don't yet have support for these in the molecular mechanic engine
3448
or the openmm converter, so they can only currently be read and written.
3549

36-
* Added a developer check for when the version number has changed, so that
50+
* Added a developer check for when the version number has changed, so that
3751
people compiling manually know when they have to rebuild from scratch.
3852

3953

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2023.2.1
1+
2023.2.2

0 commit comments

Comments
 (0)