From d3d6e5444070557ec9bd6b57ed90a1dad0bf4430 Mon Sep 17 00:00:00 2001 From: Jim Kring Date: Thu, 16 Mar 2023 13:59:32 -0700 Subject: [PATCH] python build via hatch --- Source/JKI_Python_Bridge_for_LV.vipb | 10 ++--- py_src/pyproject.toml | 39 +++++++++++++------ py_src/python_bridge_for_labview.pyi | 18 --------- py_src/requirements.txt | 2 - py_src/setup.cfg | 29 -------------- .../__init__.py | 0 .../labview.py | 0 7 files changed, 32 insertions(+), 66 deletions(-) delete mode 100644 py_src/python_bridge_for_labview.pyi delete mode 100644 py_src/requirements.txt delete mode 100644 py_src/setup.cfg rename py_src/src/{python_bridge_for_labview => jki_python_bridge_for_labview}/__init__.py (100%) rename py_src/src/{python_bridge_for_labview => jki_python_bridge_for_labview}/labview.py (100%) diff --git a/Source/JKI_Python_Bridge_for_LV.vipb b/Source/JKI_Python_Bridge_for_LV.vipb index aa0ac23..e9c2831 100644 --- a/Source/JKI_Python_Bridge_for_LV.vipb +++ b/Source/JKI_Python_Bridge_for_LV.vipb @@ -1,7 +1,7 @@ - + jki_lib_python_bridge_for_labview - 5.0.0.18 + 5.0.0.19 false . ..\builds @@ -120,7 +120,7 @@ Public open source release. . - 35de3215-4660-483c-88f5-d814e9e3309d + false @@ -428,7 +428,7 @@ Public open source release. JKI Python Bridge - VI Tree.vi - 87C682423EEA9F93FEB22DA92BB0E599 + 24235AC659357A3A38563ADC0F086B06 0 @@ -491,7 +491,7 @@ Public open source release. JKI Python Bridge - Example 2 PyObjects 1 Event Structure.vi 2 Python Objects 1 Event Structure - 44223D2C07CF12287E8934FF80DB09F9 + 3CBC280DF59425C1D621538CF614C50D \ No newline at end of file diff --git a/py_src/pyproject.toml b/py_src/pyproject.toml index c339208..6ddb4fd 100644 --- a/py_src/pyproject.toml +++ b/py_src/pyproject.toml @@ -1,18 +1,33 @@ -[tool.poetry] -name = "python-bridge-for-labview" -version = "0.0.2" -description = "Create custom APIs for your LabVIEW applications" -authors = ["JKI"] -license = "Proprietary" -#readme = "README.md" +[project] +name = "jki-python-bridge-for-labview" +description = "JKI Python Bridge for LabVIEW. Easily control your LabVIEW applications from python via define custom APIs." +version = "5.0.0" +authors = [ + { name = "JKI", email = "info@jki.net" }, +] +dependencies = [] +license = "BSD-2-Clause-Patent" +readme = "../README.md" + +[project.optional-dependencies] +dev = [] [tool.poetry.dependencies] python = "^3.8" -#[tool.poetry.dev-dependencies] -#Cython = "^0.29.27" - [build-system] -requires = ["poetry-core>=1.0.0", "setuptools>=42", "wheel", "nuitka"] -build-backend = "nuitka.distutils.Build" +build-backend = "hatchling.build" +requires = ["hatchling"] + +[tool.hatch.build.targets.sdist] +exclude = [ + ".github", + ".gitignore", + "docs", + "dist", + ".venv", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/jki_python_bridge_for_labview"] diff --git a/py_src/python_bridge_for_labview.pyi b/py_src/python_bridge_for_labview.pyi deleted file mode 100644 index 508d9bb..0000000 --- a/py_src/python_bridge_for_labview.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# This file was generated by Nuitka and describes the types of the -# created shared library. - -# At this time it lists only the imports made and can be used by the -# tools that bundle libraries, including Nuitka itself. For instance -# standalone mode usage of the created library will need it. - -# In the future, this will also contain type information for values -# in the module, so IDEs will use this. Therefore please include it -# when you make software releases of the extension module that it -# describes. - - - -# This is not Python source even if it looks so. Make it clear for -# now. This was decided by PEP 484 designers. -__name__ = ... - diff --git a/py_src/requirements.txt b/py_src/requirements.txt deleted file mode 100644 index 6c4932c..0000000 --- a/py_src/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -wheel -twine diff --git a/py_src/setup.cfg b/py_src/setup.cfg deleted file mode 100644 index 2d37b42..0000000 --- a/py_src/setup.cfg +++ /dev/null @@ -1,29 +0,0 @@ -[metadata] -name = python-bridge-for-labview -version = 0.0.2 -author = JKI -author_email = info@jki.net -description = Create custom APIs for your LabVIEW applications -;long_description = file: README.md -;long_description_content_type = text/markdown -;url = https://github.com/pypa/sampleproject -project_urls = -; Bug Tracker = https://github.com/pypa/sampleproject/issues -classifiers = - Programming Language :: Python :: 3 - License :: Proprietary - Operating System :: OS Independent -build_with_nuitka = True - -[options] -package_dir= - =src -packages=find: -python_requires = >=3.8 - -[options.packages.find] -where=src - -[build-system] -requires = ["setuptools>=42", "wheel", "nuitka"] -build-backend = "nuitka.distutils.Build" \ No newline at end of file diff --git a/py_src/src/python_bridge_for_labview/__init__.py b/py_src/src/jki_python_bridge_for_labview/__init__.py similarity index 100% rename from py_src/src/python_bridge_for_labview/__init__.py rename to py_src/src/jki_python_bridge_for_labview/__init__.py diff --git a/py_src/src/python_bridge_for_labview/labview.py b/py_src/src/jki_python_bridge_for_labview/labview.py similarity index 100% rename from py_src/src/python_bridge_for_labview/labview.py rename to py_src/src/jki_python_bridge_for_labview/labview.py