Skip to content

Commit a7f7d3d

Browse files
pre-release clean up
1 parent 223cd88 commit a7f7d3d

File tree

9 files changed

+14
-15
lines changed

9 files changed

+14
-15
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {project name} Contribution and Governance Policies
1+
# Rune Python Generator Contribution and Governance Policies
22

33
This document describes the contribution process and governance policies of the FINOS {project name} project. The project is also governed by the [Linux Foundation Antitrust Policy](https://www.linuxfoundation.org/antitrust-policy/), and the FINOS [IP Policy]( https://community.finos.org/governance-docs/IP-policy.pdf), [Code of Conduct](https://community.finos.org/docs/governance/code-of-conduct), [Collaborative Principles](https://community.finos.org/docs/governance/collaborative-principles/), and [Meeting Procedures](https://community.finos.org/docs/governance/meeting-procedures/).
44

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2025 CLOUDRISK Limited and FT Advisory LLC
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSE.spdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SPDXVersion: SPDX-2.0
22
DataLicense: CC0-1.0
3-
Creator: {name of copyright owner}
4-
PackageName: {project name}
5-
PackageOriginator: {name of copyright owner}
6-
PackageHomePage: https://github.com/finos/{project slug}
3+
Creator: CLOUDRISK Limited and FT Advisory LLC
4+
PackageName: rune-python-generator
5+
PackageOriginator: CLOUDRISK Limited and FT Advisory LLC
6+
PackageHomePage: https://github.com/finos/rune-python-generator
77
PackageLicenseDeclared: Apache-2.0

NOTICE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{project name} - FINOS
2-
Copyright {yyyy} - {current year} {name of copyright owner} {email of copyright holder}
1+
Rune Python Generator - FINOS
2+
Copyright 2025 - 2025 CLOUDRISK Limited ([email protected]) and FT Advisory LLC ([email protected])
33

44
This product includes software developed at the Fintech Open Source Foundation (https://www.finos.org/).
55

6-
{Other notices, as necessary}
6+

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
<!-- Release -->
153153
<gpg.keyname>configured-by-release-profile</gpg.keyname>
154154
<repoServerHost>s01.oss.sonatype.org</repoServerHost>
155-
<stagingTimeoutInMinutes>10</stagingTimeoutInMinutes>
155+
<stagingTimeoutInMinutes>20</stagingTimeoutInMinutes>
156156

157157
<rosetta.dsl.version>9.50.0</rosetta.dsl.version>
158158
<rosetta.bundle.version>11.60.0</rosetta.bundle.version>
@@ -169,6 +169,7 @@
169169

170170
<!-- plugin -->
171171
<maven-enforcer-plugin.version>3.2.1</maven-enforcer-plugin.version>
172+
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
172173
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
173174
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
174175
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>

src/main/java/com/regnosys/rosetta/generator/python/expressions/PythonExpressionGenerator.xtend

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import com.regnosys.rosetta.rosetta.expression.MinOperation
4545
import com.regnosys.rosetta.rosetta.expression.MaxOperation
4646
import com.regnosys.rosetta.rosetta.expression.SwitchOperation
4747
import com.regnosys.rosetta.rosetta.expression.SwitchCaseGuard
48-
import com.regnosys.rosetta.rosetta.expression.SwitchCaseOrDefault
4948
import com.regnosys.rosetta.rosetta.simple.Attribute
5049
import com.regnosys.rosetta.rosetta.simple.Condition
5150
import com.regnosys.rosetta.rosetta.simple.Data
@@ -193,7 +192,7 @@ class PythonExpressionGenerator {
193192
isSwitchCond=true
194193

195194
for (pair : expr.cases.indexed) {
196-
val currentCase = pair.value as SwitchCaseOrDefault
195+
val currentCase = pair.value
197196
val funcName= (currentCase.isDefault()) ? "_then_default" : "_then_"+ (pair.key+1)
198197
val thenExprDef= (currentCase.isDefault()) ? generateExpression(expr.getDefault(), 0, isLambda) : generateExpression(currentCase.getExpression(), ifLevel + 1, isLambda)
199198

src/main/java/com/regnosys/rosetta/generator/python/object/PythonModelObjectGenerator.xtend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class PythonModelObjectGenerator {
107107
_stubContents.append("._bundle import ")
108108
_stubContents.append(name.replace('.', '_'))
109109
_stubContents.append(" as ")
110-
_stubContents.append(parsedName.last())
110+
_stubContents.append(parsedName.lastOrNull())
111111
_stubContents.newLine()
112112
_stubContents.newLine()
113113
_stubContents.append("# EOF")

src/test/java/com/regnosys/rosetta/generator/python/PythonGeneratorTestUtils.xtend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class PythonGeneratorTestUtils {
177177
.flatMap[contents.filter(RosettaModel)]
178178
.toList as Collection<RosettaModel>
179179
LOGGER.info("generatePythonFromDSLFiles ... created {} rosetta models", rosettaModels.length.toString())
180-
val m = rosettaModels.head() as RosettaModel
180+
val m = rosettaModels.head()
181181
val version = m.version
182182
val generatedFiles = newHashMap
183183

src/test/java/com/regnosys/rosetta/generator/python/func/PythonFunctionsTest.xtend

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import org.junit.jupiter.api.Test
1010
import org.junit.jupiter.api.^extension.ExtendWith
1111
import com.regnosys.rosetta.generator.python.PythonCodeGenerator
1212
import static org.junit.jupiter.api.Assertions.*
13-
import org.junit.jupiter.api.Disabled
1413
import com.regnosys.rosetta.generator.python.PythonGeneratorTestUtils
1514

1615
/*

0 commit comments

Comments
 (0)