Skip to content

Commit

Permalink
Merge pull request #1075 from callumfare/callum/remove_py_bindings
Browse files Browse the repository at this point in the history
Remove Python API bindings
  • Loading branch information
callumfare committed Dec 13, 2023
2 parents f8fc936 + 642c454 commit 95f9092
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 4,677 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:

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

fuzztest-build:
name: Build and run quick fuzztest scenarios
Expand Down Expand Up @@ -346,7 +346,7 @@ jobs:

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


macos-build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

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

- name: Quick Coverage Info
working-directory: ${{github.workspace}}/build
Expand Down
4,309 changes: 0 additions & 4,309 deletions include/ur.py

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,6 @@ def _mako_ddi_h(path, namespace, tags, version, revision, specs, meta):
specs=specs,
meta=meta)

"""
generates python files from the specification documents
"""
def _mako_api_py(path, namespace, tags, version, revision, specs, meta):
template = "api.py.mako"
fin = os.path.join("templates", template)

filename = "%s.py"%(namespace)
fout = os.path.join(path, filename)

print("Generating %s..."%fout)
return util.makoWrite(
fin, fout,
ver=version,
rev=revision,
namespace=namespace,
tags=tags,
specs=specs,
meta=meta)

"""
generates c/c++ files from the specification documents
"""
Expand All @@ -101,13 +81,6 @@ def _generate_api_cpp(incpath, srcpath, namespace, tags, version, revision, spec

return loc

"""
generates python files from the specification documents
"""
def _generate_api_py(incpath, namespace, tags, version, revision, specs, meta):
loc = _mako_api_py(incpath, namespace, tags, version, revision, specs, meta)
return loc

"""
Entry-point:
generates api code
Expand All @@ -118,7 +91,6 @@ def generate_api(incpath, srcpath, namespace, tags, version, revision, specs, me

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

templates_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "templates")
Expand Down
196 changes: 0 additions & 196 deletions scripts/templates/api.py.mako

This file was deleted.

Loading

0 comments on commit 95f9092

Please sign in to comment.