Skip to content

Commit 9af9f3f

Browse files
authored
Revert "[Java] Python generator implementation aeron-io#665"
1 parent f44b39f commit 9af9f3f

File tree

12 files changed

+0
-3851
lines changed

12 files changed

+0
-3851
lines changed

README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,18 +118,6 @@ Users of CSharp generated code should see the [user documentation](https://githu
118118
Developers wishing to enhance the CSharp generator should see the [developer documentation](https://github.com/real-logic/simple-binary-encoding/blob/master/csharp/README.md)
119119

120120

121-
Python Build
122-
------------
123-
Python support is experimental and tested against Python >= 3.6. Other python versions and implementations
124-
should also work, given that they have support for the `struct` package and the `buffer protocol`, but they aren't
125-
officially supported.
126-
127-
Use the following the build the java stub generator and execute the python tests:
128-
```bash
129-
$ ./gradlew
130-
$ ./gradlew runPythonTests
131-
```
132-
133121
License (See LICENSE file for full license)
134122
-------------------------------------------
135123
Copyright 2013-2019 Real Logic Limited

build.gradle

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -775,84 +775,6 @@ task uploadToMavenCentral {
775775
'sbe-all:uploadShadow'
776776
}
777777

778-
/**
779-
* Python tests and benchmarks
780-
*/
781-
task generatePythonCarExample(type: JavaExec) {
782-
main = 'uk.co.real_logic.sbe.SbeTool'
783-
classpath = project(':sbe-all').sourceSets.main.runtimeClasspath
784-
systemProperties(
785-
'sbe.output.dir': 'python/tests',
786-
'sbe.target.language': 'uk.co.real_logic.sbe.generation.python.Python',
787-
'sbe.xinclude.aware': 'true',
788-
'sbe.target.namespace': 'gen.car_example')
789-
args = ['sbe-samples/src/main/resources/example-schema.xml']
790-
}
791-
792-
task generatePythonIssue435Codecs(type: JavaExec) {
793-
main = 'uk.co.real_logic.sbe.SbeTool'
794-
classpath = project(':sbe-all').sourceSets.main.runtimeClasspath
795-
systemProperties(
796-
'sbe.output.dir': 'python/tests',
797-
'sbe.target.language': 'uk.co.real_logic.sbe.generation.python.Python',
798-
'sbe.target.namespace': 'gen.issue435')
799-
args = ['sbe-tool/src/test/resources/issue435.xml']
800-
}
801-
802-
task generatePythonIssue483Codecs(type: JavaExec) {
803-
main = 'uk.co.real_logic.sbe.SbeTool'
804-
classpath = project(':sbe-all').sourceSets.main.runtimeClasspath
805-
systemProperties(
806-
'sbe.output.dir': 'python/tests',
807-
'sbe.target.language': 'uk.co.real_logic.sbe.generation.python.Python',
808-
'sbe.target.namespace': 'gen.issue483')
809-
args = ['sbe-tool/src/test/resources/issue483.xml']
810-
}
811-
812-
task generatePythonIssue560Codecs(type: JavaExec) {
813-
main = 'uk.co.real_logic.sbe.SbeTool'
814-
classpath = project(':sbe-all').sourceSets.main.runtimeClasspath
815-
systemProperties(
816-
'sbe.output.dir': 'python/tests',
817-
'sbe.target.language': 'uk.co.real_logic.sbe.generation.python.Python',
818-
'sbe.target.namespace': 'gen.issue560')
819-
args = ['sbe-tool/src/test/resources/issue560.xml']
820-
}
821-
822-
task generatePythonFixBinaryCodecs(type: JavaExec) {
823-
main = 'uk.co.real_logic.sbe.SbeTool'
824-
classpath = project(':sbe-all').sourceSets.main.runtimeClasspath
825-
systemProperties(
826-
'sbe.output.dir': 'python/tests',
827-
'sbe.target.language': 'uk.co.real_logic.sbe.generation.python.Python',
828-
'sbe.target.namespace': 'gen.fix_binary')
829-
args = [
830-
'sbe-tool/src/test/resources/FixBinary.xml',
831-
]
832-
}
833-
834-
task generatePythonExampleDataFile(type: JavaExec) {
835-
mkdir "python/tests/gen/car_example"
836-
main = 'uk.co.real_logic.sbe.examples.ExampleUsingGeneratedStub'
837-
classpath = project(':sbe-samples').sourceSets.main.runtimeClasspath
838-
systemProperties('sbe.encoding.filename': 'python/tests/gen/car_example/car_example_data.sbe')
839-
args = []
840-
}
841-
842-
task generatePythonCodecs {
843-
description = 'Generate python test codecs'
844-
delete 'python/tests/gen'
845-
dependsOn 'generatePythonCarExample', 'generatePythonExampleDataFile', 'generatePythonIssue435Codecs',
846-
'generatePythonIssue483Codecs', 'generatePythonIssue560Codecs', 'generatePythonFixBinaryCodecs'
847-
}
848-
849-
task runPythonTests(type: Exec) {
850-
workingDir = './python/'
851-
executable = 'python'
852-
args = ['-m','unittest','discover']
853-
dependsOn 'generatePythonCodecs'
854-
}
855-
856778
wrapper {
857779
gradleVersion = '5.6.2'
858780
distributionType = 'ALL'

python/tests/__init__.py

Whitespace-only changes.

python/tests/test_car_example.py

Lines changed: 0 additions & 192 deletions
This file was deleted.

python/tests/test_issue435.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

python/tests/test_issue483.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

python/tests/test_issue560.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)