Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Python API bindings #1075

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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