Skip to content

Commit

Permalink
feat: import from init file
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed Feb 4, 2024
1 parent 78f21ec commit 365f8c8
Show file tree
Hide file tree
Showing 26 changed files with 12,447 additions and 21,277 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Neonize Dist
neonize/goneonize/*.h
goneonize/*.h
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 0 additions & 2 deletions docs/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

project_path = Path(__file__).parent.parent

os.environ["SPHINX"] = "1"


def build():
subprocess.call(
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions neonize/goneonize/build.py → goneonize/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
cwd = os.path.dirname(__file__)
shell = [
"protoc --go_out=. Neonize.proto def.proto",
"protoc --python_out=../proto --mypy_out=../proto def.proto Neonize.proto",
"protoc --python_out=../neonize/proto --mypy_out=../neonize/proto def.proto Neonize.proto",
"protoc --go_out=. --go-grpc_out=. -I . Neonize.proto def.proto",
]

Expand Down Expand Up @@ -79,9 +79,9 @@ def build_neonize():
cwd=cwd,
env=os.environ.update({"CGO_ENABLED": "1"}),
)
if (Path(cwd).parent / filename).exists():
os.remove(os.path.dirname(cwd) + "/" + filename)
os.rename(f"{cwd}/{filename}", os.path.dirname(cwd) + "/" + filename)
if (Path(cwd).parent / f"neonize/{filename}").exists():
os.remove(os.path.dirname(cwd) + "/neonize/" + filename)
os.rename(f"{cwd}/{filename}", os.path.dirname(cwd) + "/neonize/" + filename)


def set_version():
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 365f8c8

Please sign in to comment.