Skip to content

Commit 95f9092

Browse files
authored
Merge pull request #1075 from callumfare/callum/remove_py_bindings
Remove Python API bindings
2 parents f8fc936 + 642c454 commit 95f9092

File tree

9 files changed

+24
-4677
lines changed

9 files changed

+24
-4677
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Test
112112
working-directory: ${{github.workspace}}/build
113-
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "python|umf|loader|validation|tracing|unit|urtrace"
113+
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace"
114114

115115
fuzztest-build:
116116
name: Build and run quick fuzztest scenarios
@@ -346,7 +346,7 @@ jobs:
346346

347347
- name: Test
348348
working-directory: ${{github.workspace}}/build
349-
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "python|umf|loader|validation|tracing|unit|urtrace"
349+
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace"
350350

351351

352352
macos-build:

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Test
6767
working-directory: ${{github.workspace}}/build
68-
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "python|umf|loader|validation|tracing|unit|urtrace"
68+
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace"
6969

7070
- name: Quick Coverage Info
7171
working-directory: ${{github.workspace}}/build

include/ur.py

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

scripts/generate_code.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,26 +70,6 @@ def _mako_ddi_h(path, namespace, tags, version, revision, specs, meta):
7070
specs=specs,
7171
meta=meta)
7272

73-
"""
74-
generates python files from the specification documents
75-
"""
76-
def _mako_api_py(path, namespace, tags, version, revision, specs, meta):
77-
template = "api.py.mako"
78-
fin = os.path.join("templates", template)
79-
80-
filename = "%s.py"%(namespace)
81-
fout = os.path.join(path, filename)
82-
83-
print("Generating %s..."%fout)
84-
return util.makoWrite(
85-
fin, fout,
86-
ver=version,
87-
rev=revision,
88-
namespace=namespace,
89-
tags=tags,
90-
specs=specs,
91-
meta=meta)
92-
9373
"""
9474
generates c/c++ files from the specification documents
9575
"""
@@ -101,13 +81,6 @@ def _generate_api_cpp(incpath, srcpath, namespace, tags, version, revision, spec
10181

10282
return loc
10383

104-
"""
105-
generates python files from the specification documents
106-
"""
107-
def _generate_api_py(incpath, namespace, tags, version, revision, specs, meta):
108-
loc = _mako_api_py(incpath, namespace, tags, version, revision, specs, meta)
109-
return loc
110-
11184
"""
11285
Entry-point:
11386
generates api code
@@ -118,7 +91,6 @@ def generate_api(incpath, srcpath, namespace, tags, version, revision, specs, me
11891

11992
loc = 0
12093
loc += _generate_api_cpp(incpath, srcpath, namespace, tags, version, revision, specs, meta)
121-
loc += _generate_api_py(incpath, namespace, tags, version, revision, specs, meta)
12294
print("Generated %s lines of code.\n"%loc)
12395

12496
templates_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "templates")

scripts/templates/api.py.mako

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

0 commit comments

Comments
 (0)