Skip to content

Commit dadffca

Browse files
authored
Merge pull request #2501 from stfc/2447_release_2.5.0
(Closes #2447) Create release 2.5.0
2 parents 4806407 + 5366e37 commit dadffca

File tree

10 files changed

+70
-47
lines changed

10 files changed

+70
-47
lines changed

LICENSE

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2017, Science and Technology Facilities Council
4-
(c) The copyright relating to this work is owned jointly by the Crown,
5-
Met Office and NERC 2016.
6-
However, it has been created with the help of the GungHo Consortium,
7-
whose members are identified at https://puma.nerc.ac.uk/trac/GungHo/wiki
3+
Copyright (c) 2017-2024, Science and Technology Facilities Council.
84
All rights reserved.
95

106
Redistribution and use in source and binary forms, with or without

changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@
162162

163163
59) PR #2490 towards #2447. Update PSyclone to use fparser 0.1.4 release.
164164

165+
60) PR #2501 for #2447. Create PSyclone release 2.5.0.
166+
165167
release 2.4.0 29th of September 2023
166168

167169
1) PR #1758 for #1741. Splits the PSyData read functionality into a

doc/developer_guide/conf.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,26 +88,30 @@
8888
master_doc = 'index'
8989

9090
# General information about the project.
91-
project = u"PSyclone Developer Guide"
92-
copyright = u'2017-2023, STFC Daresbury Laboratory'
91+
project = "PSyclone Developer Guide"
92+
project_copyright = '2017-2024, STFC Daresbury Laboratory'
9393

9494
# The version info for the project you're documenting, acts as replacement for
9595
# |version| and |release|, also used in various other places throughout the
9696
# built documents.
9797
#
9898
# We use the version module in src/psyclone. However, rather than importing
9999
# it (which would require that PSyclone be installed first), we read it
100-
# using execfile().
100+
# using exec().
101101
# 'version' is the short X.Y version and 'release' is the full version,
102102
# including any alpha/beta/rc tags.
103103
# We are in the doc/developer_guide directory but need to read version.py from
104104
# src/psyclone
105105
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
106106
BASE_PATH = os.path.dirname(os.path.dirname(BASE_PATH))
107-
with open(os.path.join(BASE_PATH, "src", "psyclone", "version.py")) as f:
107+
with open(os.path.join(BASE_PATH, "src", "psyclone", "version.py"),
108+
encoding="utf-8") as f:
109+
# pylint: disable-next=exec-used
108110
exec(f.read())
111+
# pylint: disable=undefined-variable
109112
version = __SHORT_VERSION__
110113
release = __VERSION__
114+
# pylint: enable=undefined-variable
111115

112116
# The language for content autogenerated by Sphinx. Refer to documentation
113117
# for a list of supported languages.
@@ -246,8 +250,8 @@
246250
# (source start file, target name, title, author,
247251
# documentclass [howto/manual]).
248252
latex_documents = [
249-
('index', 'psyclone-dev.tex', u"PSyclone Developer Guide",
250-
u'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, \\\\'
253+
('index', 'psyclone-dev.tex', "PSyclone Developer Guide",
254+
'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, \\\\'
251255
'Andrew Porter, Sergi Siso and Lottie Turner', 'manual'),
252256
]
253257

@@ -277,8 +281,8 @@
277281
# One entry per manual page. List of tuples
278282
# (source start file, name, description, authors, manual section).
279283
man_pages = [
280-
('index', 'psyclone-dev', u"PSyclone Developer Guide",
281-
[u'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, '
284+
('index', 'psyclone-dev', "PSyclone Developer Guide",
285+
['Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, '
282286
'Sergi Siso and Lottie Turner'], 1)
283287
]
284288

@@ -292,8 +296,8 @@
292296
# (source start file, target name, title, author,
293297
# dir menu entry, description, category)
294298
texinfo_documents = [
295-
('index', 'psyclone-dev', u"PSyclone Developer Guide",
296-
[u'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, '
299+
('index', 'psyclone-dev', "PSyclone Developer Guide",
300+
['Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, '
297301
'Sergi Siso and Lottie Turner'], 'psyclone',
298302
'A domain-specific compiler for Finite-Element/Volume/Difference models.',
299303
'Miscellaneous'),
@@ -312,12 +316,12 @@
312316
# -- Options for Epub output -------------------------------------------------
313317

314318
# Bibliographic Dublin Core info.
315-
epub_title = u"PSyclone Developer Guide"
316-
epub_author = u'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, ' \
319+
epub_title = "PSyclone Developer Guide"
320+
epub_author = 'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, ' \
317321
'Andrew Porter, Sergi Siso and Lottie Turner'
318-
epub_publisher = u'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, ' \
322+
epub_publisher = 'Oakley Brunt, Rupert Ford, Joerg Henrichs, Iva Kavcic, ' \
319323
'Andrew Porter, Sergi Siso and Lottie Turner'
320-
epub_copyright = copyright
324+
epub_copyright = project_copyright
321325

322326
# The language of the text. It defaults to the language option
323327
# or en if the language is not set.

doc/reference_guide/doxygen.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "Reference Guide"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 2.4.0
41+
PROJECT_NUMBER = 2.5.0
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

doc/reference_guide/source/conf.py

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- coding: utf-8 -*-
22
#
3-
# Configuration file for the Sphinx documentation builder.
3+
'''
4+
Configuration file for the Sphinx documentation builder.
5+
6+
'''
7+
48
#
59
# This file does only contain a selection of the most common options. For a
610
# full list see the documentation:
@@ -13,23 +17,35 @@
1317
# documentation root, use os.path.abspath to make it absolute, like shown here.
1418
#
1519
import subprocess
16-
# import os
20+
import os
1721
# import sys
1822
# sys.path.insert(0, os.path.abspath('.'))
1923

2024

2125
# -- Project information -----------------------------------------------------
2226

2327
project = 'Reference Guide'
24-
copyright = ('2019-2023, R. W. Ford, J. Henrichs, I. Kavcic, A. R. Porter, '
25-
' S. Siso')
28+
project_copyright = ('2019-2024, R. W. Ford, J. Henrichs, I. Kavcic, '
29+
'A. R. Porter, S. Siso')
2630
author = 'R. W. Ford, J. Henrichs, I. Kavcic, A. R. Porter, S. Siso'
2731

28-
# The short X.Y version
29-
version = ''
30-
# The full version, including alpha/beta/rc tags
31-
release = '2.4.0'
32-
32+
# We use the version module in src/psyclone. However, rather than importing
33+
# it (which would require that PSyclone be installed first), we read it
34+
# using execfile().
35+
# We are in the doc/reference_guide/source directory but need to read
36+
# version.py from src/psyclone
37+
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
38+
BASE_PATH = os.path.dirname(os.path.dirname(os.path.dirname(BASE_PATH)))
39+
with open(os.path.join(BASE_PATH, "src", "psyclone", "version.py"),
40+
encoding="utf-8") as f:
41+
# pylint: disable-next=exec-used
42+
exec(f.read())
43+
# pylint: disable=undefined-variable
44+
# The short X.Y version.
45+
version = __SHORT_VERSION__
46+
# The full version, including alpha/beta/rc tags.
47+
release = __VERSION__
48+
# pylint: enable=undefined-variable
3349

3450
# -- General configuration ---------------------------------------------------
3551

doc/user_guide/conf.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
# General information about the project.
8484
project = 'PSyclone'
85-
copyright = '2017-2023, STFC Daresbury Laboratory'
85+
project_copyright = '2017-2024, STFC Daresbury Laboratory'
8686

8787
# The version info for the project you're documenting, acts as replacement for
8888
# |version| and |release|, also used in various other places throughout the
@@ -99,9 +99,12 @@
9999
BASE_PATH = os.path.dirname(os.path.dirname(BASE_PATH))
100100
with open(os.path.join(BASE_PATH, "src", "psyclone", "version.py"),
101101
encoding="utf-8") as f:
102+
# pylint: disable-next=exec-used
102103
exec(f.read())
104+
# pylint: disable=undefined-variable
103105
version = __SHORT_VERSION__
104106
release = __VERSION__
107+
# pylint: enable=undefined-variable
105108

106109
# The language for content autogenerated by Sphinx. Refer to documentation
107110
# for a list of supported languages.
@@ -285,8 +288,8 @@
285288
# One entry per manual page. List of tuples
286289
# (source start file, name, description, authors, manual section).
287290
man_pages = [
288-
('index', 'psyclone', u'PSyclone Documentation',
289-
[u'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, Sergi '
291+
('index', 'psyclone', 'PSyclone Documentation',
292+
['Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, Sergi '
290293
'Siso and Joseph Wallwork'], 1)
291294
]
292295

@@ -300,8 +303,8 @@
300303
# (source start file, target name, title, author,
301304
# dir menu entry, description, category)
302305
texinfo_documents = [
303-
('index', 'psyclone', u'psyclone Documentation',
304-
u'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, Sergi Siso and'
306+
('index', 'psyclone', 'psyclone Documentation',
307+
'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, Sergi Siso and'
305308
'Joseph Wallwork',
306309
'psyclone',
307310
'A domain-specific compiler for Finite-Element/Volume/Difference models.',
@@ -321,10 +324,10 @@
321324
# -- Options for Epub output -------------------------------------------------
322325

323326
# Bibliographic Dublin Core info.
324-
epub_title = u'PSyclone'
325-
epub_author = u'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, ' \
327+
epub_title = 'PSyclone'
328+
epub_author = 'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, ' \
326329
'Sergi Siso and Joseph Wallwork'
327-
epub_publisher = u'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, ' \
330+
epub_publisher = 'Rupert Ford, Joerg Henrichs, Iva Kavcic, Andrew Porter, ' \
328331
'Sergi Siso and Joseph Wallwork'
329332
epub_copyright = copyright
330333

@@ -373,10 +376,10 @@
373376

374377
# MyBinder fails on a very regular basis so we skip those links.
375378
linkcheck_ignore = [r'^https://mybinder.org/v2/gh/stfc/psyclone',
376-
# Shpinx has problems wiht Github anchors, so we skip the links to anchors to
377-
# the main README
379+
# Sphinx has problems with Github anchors, so we skip
380+
# the links to anchors to the main README.
378381
r'^https://github.com/stfc/PSyclone#',
379-
# Requires authentication
382+
# Requires authentication.
380383
r'code.metoffice.gov.uk/trac/lfric/attachment/wiki/'
381384
r'LFRicDocumentationPapers/lfric_documentation.pdf']
382385

examples/gocean/eg3/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
opencl_kernels_0.cl
1+
opencl_kernels_?.cl

psyclone.pdf

65 Bytes
Binary file not shown.

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@
5151
"psyclone.tests.*"])
5252

5353
NAME = 'PSyclone'
54-
AUTHOR = ("Rupert Ford <rupert.ford@stfc.ac.uk>, "
55-
"Andrew Porter <andrew.porter@stfc.ac.uk>")
56-
AUTHOR_EMAIL = 'rupert.ford@stfc.ac.uk'
54+
AUTHOR = ('Rupert Ford <rupert.ford@stfc.ac.uk>, '
55+
'Andrew Porter <andrew.porter@stfc.ac.uk>, '
56+
'Sergi Siso <sergi.siso@stfc.ac.uk>')
57+
AUTHOR_EMAIL = 'andrew.porter@stfc.ac.uk'
5758
URL = 'https://github.com/stfc/psyclone'
5859
DOWNLOAD_URL = 'https://github.com/stfc/psyclone'
5960
DESCRIPTION = ('PSyclone - a compiler for Finite Element/Volume/Difference'
@@ -160,7 +161,7 @@ def get_files(directory, install_path, valid_suffixes):
160161
classifiers=CLASSIFIERS,
161162
packages=PACKAGES,
162163
package_dir={"": "src"},
163-
install_requires=['pyparsing', 'fparser>=0.1.3', 'configparser',
164+
install_requires=['pyparsing', 'fparser>=0.1.4', 'configparser',
164165
'jsonschema', 'sympy'],
165166
extras_require={
166167
'dag': ["graphviz"],

src/psyclone/version.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
# Modified by R. W. Ford and N. Nobre, STFC Daresbury Lab
3636

3737
''' Single location for the current version number of PSyclone. This is
38-
used in setup.py and doc/conf.py '''
38+
used in setup.py and
39+
doc/{user_guide,developer_guide,reference_guide/source}/conf.py '''
3940

4041
__MAJOR__ = 2
41-
__MINOR__ = 4
42+
__MINOR__ = 5
4243
__MICRO__ = 0
4344

4445
__SHORT_VERSION__ = f"{__MAJOR__:d}.{__MINOR__:d}"

0 commit comments

Comments
 (0)