From d4ad54915bf9189dc412ffecec812294196a650f Mon Sep 17 00:00:00 2001 From: ZtRXR Date: Sat, 20 Apr 2024 20:36:27 +0800 Subject: [PATCH] update --- .gitignore | 3 ++- pymake/__init__.py | 6 +++--- pymake/__main__.py | 10 +--------- pymake/{lib => }/cmake.py | 1 - pymake/{lib => }/tools.py | 0 pymake/{lib => }/values.py | 0 6 files changed, 6 insertions(+), 14 deletions(-) rename pymake/{lib => }/cmake.py (99%) rename pymake/{lib => }/tools.py (100%) rename pymake/{lib => }/values.py (100%) diff --git a/.gitignore b/.gitignore index 2eb1730..587d2c6 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ __pycache__/ /main.cxx -/build \ No newline at end of file +/build +/poetry.lock \ No newline at end of file diff --git a/pymake/__init__.py b/pymake/__init__.py index c887689..0ece426 100644 --- a/pymake/__init__.py +++ b/pymake/__init__.py @@ -1,3 +1,3 @@ -from .lib.values import * -from .lib.cmake import * -from .lib.tools import * \ No newline at end of file +from .values import * +from .cmake import * +from .tools import * \ No newline at end of file diff --git a/pymake/__main__.py b/pymake/__main__.py index 09708a4..e1ab5bc 100644 --- a/pymake/__main__.py +++ b/pymake/__main__.py @@ -1,9 +1 @@ -from . import * - -( - cmake("3.5") - .project("test") - .file("SRC",glob_recurse,"*.cxx") - .add_executable(var(project_name),var("SRC")) - .write() -) \ No newline at end of file +print("Hello from pymake") \ No newline at end of file diff --git a/pymake/lib/cmake.py b/pymake/cmake.py similarity index 99% rename from pymake/lib/cmake.py rename to pymake/cmake.py index 6644455..30569ea 100644 --- a/pymake/lib/cmake.py +++ b/pymake/cmake.py @@ -1,6 +1,5 @@ from .tools import * from .values import * - class cmake: __write_stack:"list[str]" = [] __file_name = "" diff --git a/pymake/lib/tools.py b/pymake/tools.py similarity index 100% rename from pymake/lib/tools.py rename to pymake/tools.py diff --git a/pymake/lib/values.py b/pymake/values.py similarity index 100% rename from pymake/lib/values.py rename to pymake/values.py