Skip to content

Commit

Permalink
updated plugin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishMahendra committed Oct 9, 2024
1 parent 3653a44 commit 09410c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions jac-splice-orc/plugin/splice_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import Optional, Union

from jaclang.plugin.default import hookimpl
from jaclang.plugin.spec import JacBuiltin, JacCmdSpec, JacFeatureSpec, P, T
from jaclang.runtimelib.importer import ImportPathSpec, JacImporter, PythonImporter
from jaclang.runtimelib.machine import JacMachine, JacProgram
from jaclang.settings import settings
Expand Down Expand Up @@ -76,6 +77,3 @@ def jac_import(
if absorb or not items
else tuple(import_result.ret_items)
)


plugin = SpliceOrcPlugin()
5 changes: 3 additions & 2 deletions jac-splice-orc/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
author_email="jason@jaseci.org",
packages=find_packages(),
install_requires=[
"jaclang~=0.7.17",
"fastapi",
"uvicorn",
"grpcio",
Expand All @@ -16,8 +17,8 @@
"pydantic",
],
entry_points={
"jaclang.plugins": [
"splice_orc = plugin.splice_plugin",
"jac": [
"splice_orc = plugin.splice_plugin:SpliceOrcPlugin",
],
},
python_requires=">=3.11",
Expand Down

0 comments on commit 09410c4

Please sign in to comment.