Changeset: 66ca3ab61821 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/66ca3ab61821
Added Files:
testing/pyproject.toml.in
Modified Files:
testing/CMakeLists.txt
Branch: Sep2022
Log Message:
Create a proper python package in the build directory
Copy the sources of the MonetDBtesting package and a pyproject.toml file in the
proper directories so that it can be installed using pip install.
This is necessary for the mtest builder of buildbot and will hopefully relieve
the need to prepare separate packages every time the code changes.
diffs (49 lines):
diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt
--- a/testing/CMakeLists.txt
+++ b/testing/CMakeLists.txt
@@ -138,6 +138,30 @@ if(PYTHON3_LIBDIR)
utils.py
DESTINATION ${PYTHON3_LIBDIR}/MonetDBtesting
COMPONENT pytesting)
+
+ if(BUILD_TESTING_PACKAGE)
+ set(pypackagedir "${CMAKE_BINARY_DIR}/pytesting/src/MonetDBtesting")
+ make_directory(${pypackagedir})
+ install(FILES
+ process.py
+ __init__.py
+ ${CMAKE_CURRENT_BINARY_DIR}/listexports.py
+ exportutils.py
+ melcheck.py
+ sqllogictest.py
+ explain.py
+ mapicursor.py
+ malmapi.py
+ helpers.py
+ sqltest.py
+ utils.py
+ DESTINATION ${pypackagedir})
+
+ configure_file(pyproject.toml.in
+ ${pypackagedir}
+ @ONLY)
+
+ endif()
endif()
if(WIN32)
diff --git a/testing/pyproject.toml.in b/testing/pyproject.toml.in
new file mode 100644
--- /dev/null
+++ b/testing/pyproject.toml.in
@@ -0,0 +1,10 @@
+[project]
+name = "MonetDBtesting"
+version = "@VERSION@"
+
+[build-system]
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
+
+[tool.setuptools.packages.find]
+where = ["."]
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]