diff --git a/ApplicationCode/GrpcInterface/CMakeLists.cmake b/ApplicationCode/GrpcInterface/CMakeLists.cmake index b3337d5973..79d2117361 100644 --- a/ApplicationCode/GrpcInterface/CMakeLists.cmake +++ b/ApplicationCode/GrpcInterface/CMakeLists.cmake @@ -110,16 +110,16 @@ foreach(proto_file ${PROTO_FILES}) ) if (PYTHON_EXECUTABLE AND EXISTS ${PYTHON_EXECUTABLE}) - set(rips_proto_python "generated/${proto_file}_pb2.py") - set(rips_grpc_python "generated/${proto_file}_pb2_grpc.py") + set(rips_proto_python "rips/generated/${proto_file}_pb2.py") + set(rips_grpc_python "rips/generated/${proto_file}_pb2_grpc.py") add_custom_command( OUTPUT "${GRPC_PYTHON_SOURCE_PATH}/${rips_proto_python}" "${GRPC_PYTHON_SOURCE_PATH}/${rips_grpc_python}" COMMAND ${PYTHON_EXECUTABLE} ARGS -m grpc_tools.protoc -I "${rips_proto_path}" - --python_out "${GRPC_PYTHON_SOURCE_PATH}/generated" - --grpc_python_out "${GRPC_PYTHON_SOURCE_PATH}/generated" + --python_out "${GRPC_PYTHON_SOURCE_PATH}/rips/generated" + --grpc_python_out "${GRPC_PYTHON_SOURCE_PATH}/rips/generated" "${rips_proto}" DEPENDS "${rips_proto}" COMMENT "Generating ${rips_proto_python} and ${rips_grpc_python}" @@ -147,7 +147,7 @@ endforeach(proto_file) if (PYTHON_EXECUTABLE AND EXISTS ${PYTHON_EXECUTABLE}) list(APPEND GRPC_PYTHON_SOURCES ${GRPC_PYTHON_GENERATED_SOURCES} - "generated/RiaVersionInfo.py" + "rips/generated/RiaVersionInfo.py" "rips/__init__.py" "rips/App.py" "rips/Case.py" @@ -156,25 +156,25 @@ if (PYTHON_EXECUTABLE AND EXISTS ${PYTHON_EXECUTABLE}) "rips/Project.py" "rips/Properties.py" "rips/Instance.py" - "examples/CommandExample.py" - "examples/CaseInfoStreamingExample.py" - "examples/SoilPorvAsync.py" - "examples/SoilPorvSync.py" - "examples/SelectedCases.py" - "examples/AllCases.py" - "examples/SetGridProperties.py" - "examples/GridInformation.py" - "examples/InputPropTestSync.py" - "examples/InputPropTestAsync.py" - "examples/SoilAverage.py" - "examples/SoilAverageNoComm.py" - "tests/test_cases.py" - "tests/test_commands.py" - "tests/test_grids.py" - "tests/test_properties.py" - "tests/test_project.py" - "tests/conftest.py" - "tests/dataroot.py" + "rips/examples/CommandExample.py" + "rips/examples/CaseInfoStreamingExample.py" + "rips/examples/SoilPorvAsync.py" + "rips/examples/SoilPorvSync.py" + "rips/examples/SelectedCases.py" + "rips/examples/AllCases.py" + "rips/examples/SetGridProperties.py" + "rips/examples/GridInformation.py" + "rips/examples/InputPropTestSync.py" + "rips/examples/InputPropTestAsync.py" + "rips/examples/SoilAverage.py" + "rips/examples/SoilAverageNoComm.py" + "rips/tests/test_cases.py" + "rips/tests/test_commands.py" + "rips/tests/test_grids.py" + "rips/tests/test_properties.py" + "rips/tests/test_project.py" + "rips/tests/conftest.py" + "rips/tests/dataroot.py" "requirements.txt" "setup.py.cmake" "README.md" @@ -194,7 +194,7 @@ list ( APPEND GRPC_HEADER_FILES ${SOURCE_GROUP_HEADER_FILES}) list ( APPEND GRPC_CPP_SOURCES ${SOURCE_GROUP_SOURCE_FILES}) CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/ApplicationCode/Adm/RiaVersionInfo.py.cmake - ${GRPC_PYTHON_SOURCE_PATH}/generated/RiaVersionInfo.py + ${GRPC_PYTHON_SOURCE_PATH}/rips/generated/RiaVersionInfo.py ) CONFIGURE_FILE( ${GRPC_PYTHON_SOURCE_PATH}/setup.py.cmake ${GRPC_PYTHON_SOURCE_PATH}/setup.py diff --git a/ApplicationCode/GrpcInterface/Python/rips/App.py b/ApplicationCode/GrpcInterface/Python/rips/App.py index 05ec7857c5..2eed6c8abb 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/App.py +++ b/ApplicationCode/GrpcInterface/Python/rips/App.py @@ -2,7 +2,7 @@ import grpc import os import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) from Empty_pb2 import Empty diff --git a/ApplicationCode/GrpcInterface/Python/rips/Case.py b/ApplicationCode/GrpcInterface/Python/rips/Case.py index bc31487ed4..000843a563 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Case.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Case.py @@ -4,7 +4,7 @@ import sys from .Grid import Grid from .Properties import Properties -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) import Case_pb2 import Case_pb2_grpc diff --git a/ApplicationCode/GrpcInterface/Python/rips/Commands.py b/ApplicationCode/GrpcInterface/Python/rips/Commands.py index 18ebcff88c..687e3b5c58 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Commands.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Commands.py @@ -2,7 +2,7 @@ import grpc import os import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) from Empty_pb2 import Empty import Commands_pb2 as Cmd diff --git a/ApplicationCode/GrpcInterface/Python/rips/Grid.py b/ApplicationCode/GrpcInterface/Python/rips/Grid.py index 9f83359ee3..3a8ab8d77f 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Grid.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Grid.py @@ -2,7 +2,7 @@ import grpc import os import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) import Grid_pb2 import Grid_pb2_grpc diff --git a/ApplicationCode/GrpcInterface/Python/rips/Instance.py b/ApplicationCode/GrpcInterface/Python/rips/Instance.py index 88966d423a..9ae3db2850 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Instance.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Instance.py @@ -5,7 +5,7 @@ import socket import logging import time -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) import RiaVersionInfo diff --git a/ApplicationCode/GrpcInterface/Python/rips/Project.py b/ApplicationCode/GrpcInterface/Python/rips/Project.py index 60b61f9874..4d3b720fe9 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Project.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Project.py @@ -5,7 +5,7 @@ import sys from .Case import Case from .Commands import Commands -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) from Empty_pb2 import Empty import Project_pb2 diff --git a/ApplicationCode/GrpcInterface/Python/rips/Properties.py b/ApplicationCode/GrpcInterface/Python/rips/Properties.py index 96142d9987..a95b6bdd1f 100644 --- a/ApplicationCode/GrpcInterface/Python/rips/Properties.py +++ b/ApplicationCode/GrpcInterface/Python/rips/Properties.py @@ -2,7 +2,7 @@ import grpc import os import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../generated')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'generated')) import Properties_pb2 import Properties_pb2_grpc diff --git a/ApplicationCode/GrpcInterface/Python/rips/ResInsight.py b/ApplicationCode/GrpcInterface/Python/rips/ResInsight.py deleted file mode 100644 index e9bfd24c3f..0000000000 --- a/ApplicationCode/GrpcInterface/Python/rips/ResInsight.py +++ /dev/null @@ -1,78 +0,0 @@ -import grpc -import os -import sys -import socket -import logging - -sys.path.insert(1, os.path.join(sys.path[0], '../generated')) - -import RiaVersionInfo - -from AppInfo import AppInfo -from Commands import Commands -from Project import Project - -class Instance: - @staticmethod - def is_port_in_use(port): - with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: - s.settimeout(0.2) - return s.connect_ex(('localhost', port)) == 0 - - @staticmethod - def launch(): - port = 50051 - portEnv = os.environ.get('RESINSIGHT_GRPC_PORT') - if portEnv: - port = int(portEnv) - - resInsightExecutable = os.environ.get('RESINSIGHT_EXECUTABLE') - if resInsightExecutable is None: - print('Error: Could not launch any ResInsight instances because RESINSIGHT_EXECUTABLE is not set') - return None - - while Instance.is_port_in_use(port): - port += 1 - - print('Port ' + str(port)) - print('Trying to launch', resInsightExecutable) - pid = os.spawnl(os.P_NOWAIT, resInsightExecutable, " --grpcserver " + str(port)) - print(pid) - return Instance(port) - - @staticmethod - def find(startPort = 50051, endPort = 50071): - portEnv = os.environ.get('RESINSIGHT_GRPC_PORT') - if portEnv: - startPort = int(portEnv) - endPort = startPort + 20 - - for tryPort in range(startPort, endPort): - if Instance.is_port_in_use(tryPort): - return Instance(tryPort) - - print('Error: Could not find any ResInsight instances responding between ports ' + str(startPort) + ' and ' + str(endPort)) - return None - - def __init__(self, port = 50051): - logging.basicConfig() - location = "localhost:" + str(port) - self.channel = grpc.insecure_channel(location) - - # Main version check package - self.appInfo = AppInfo(self.channel) - try: - majorVersionOk = self.appInfo.majorVersion() == int(RiaVersionInfo.RESINSIGHT_MAJOR_VERSION) - minorVersionOk = self.appInfo.minorVersion() == int(RiaVersionInfo.RESINSIGHT_MINOR_VERSION) - if not (majorVersionOk and minorVersionOk): - raise Exception('Version of ResInsight does not match version of Python API') - except grpc.RpcError as e: - if e.code() == grpc.StatusCode.UNAVAILABLE: - print('Info: Could not find any instances at port ' + str(port)) - except Exception as e: - print('Error:', e) - - # Service packages - self.commands = Commands(self.channel) - self.project = Project(self.channel) - \ No newline at end of file diff --git a/ApplicationCode/GrpcInterface/Python/examples/AllCases.py b/ApplicationCode/GrpcInterface/Python/rips/examples/AllCases.py similarity index 80% rename from ApplicationCode/GrpcInterface/Python/examples/AllCases.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/AllCases.py index 5e0acab19a..3c0a742389 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/AllCases.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/AllCases.py @@ -1,7 +1,7 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips resInsight = rips.Instance.find() diff --git a/ApplicationCode/GrpcInterface/Python/examples/CaseInfoStreamingExample.py b/ApplicationCode/GrpcInterface/Python/rips/examples/CaseInfoStreamingExample.py similarity index 91% rename from ApplicationCode/GrpcInterface/Python/examples/CaseInfoStreamingExample.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/CaseInfoStreamingExample.py index 861e1e8789..409a75f9ac 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/CaseInfoStreamingExample.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/CaseInfoStreamingExample.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips resInsight = rips.Instance.find() diff --git a/ApplicationCode/GrpcInterface/Python/examples/CommandExample.py b/ApplicationCode/GrpcInterface/Python/rips/examples/CommandExample.py similarity index 94% rename from ApplicationCode/GrpcInterface/Python/examples/CommandExample.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/CommandExample.py index f9b6376641..3fa9d48890 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/CommandExample.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/CommandExample.py @@ -1,7 +1,7 @@ import sys import os import tempfile -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips # Load instance diff --git a/ApplicationCode/GrpcInterface/Python/examples/GridInformation.py b/ApplicationCode/GrpcInterface/Python/rips/examples/GridInformation.py similarity index 85% rename from ApplicationCode/GrpcInterface/Python/examples/GridInformation.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/GridInformation.py index f0f9156816..66e0bcbcd9 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/GridInformation.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/GridInformation.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips diff --git a/ApplicationCode/GrpcInterface/Python/examples/InputPropTestAsync.py b/ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestAsync.py similarity index 88% rename from ApplicationCode/GrpcInterface/Python/examples/InputPropTestAsync.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestAsync.py index dff8f645f9..237164e78d 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/InputPropTestAsync.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestAsync.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import time diff --git a/ApplicationCode/GrpcInterface/Python/examples/InputPropTestSync.py b/ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestSync.py similarity index 89% rename from ApplicationCode/GrpcInterface/Python/examples/InputPropTestSync.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestSync.py index 5711e4d5b6..4618fa5556 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/InputPropTestSync.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/InputPropTestSync.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import time diff --git a/ApplicationCode/GrpcInterface/Python/examples/SelectedCases.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SelectedCases.py similarity index 85% rename from ApplicationCode/GrpcInterface/Python/examples/SelectedCases.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SelectedCases.py index 89b35fd4a6..de17ac08fb 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/SelectedCases.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/SelectedCases.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips diff --git a/ApplicationCode/GrpcInterface/Python/examples/SetGridProperties.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SetGridProperties.py similarity index 86% rename from ApplicationCode/GrpcInterface/Python/examples/SetGridProperties.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SetGridProperties.py index 7fe0b295e8..23a51f5fa4 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/SetGridProperties.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/SetGridProperties.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips resInsight = rips.Instance.find() diff --git a/ApplicationCode/GrpcInterface/Python/examples/SoilAverage.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilAverage.py similarity index 89% rename from ApplicationCode/GrpcInterface/Python/examples/SoilAverage.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SoilAverage.py index 56270e7ffc..6b89ce95a7 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/SoilAverage.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilAverage.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import itertools import time diff --git a/ApplicationCode/GrpcInterface/Python/examples/SoilAverageNoComm.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilAverageNoComm.py similarity index 100% rename from ApplicationCode/GrpcInterface/Python/examples/SoilAverageNoComm.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SoilAverageNoComm.py diff --git a/ApplicationCode/GrpcInterface/Python/examples/SoilPorvAsync.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvAsync.py similarity index 90% rename from ApplicationCode/GrpcInterface/Python/examples/SoilPorvAsync.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvAsync.py index 0015eb14b9..640468beda 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/SoilPorvAsync.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvAsync.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips def createResult(soilChunks, porvChunks): diff --git a/ApplicationCode/GrpcInterface/Python/examples/SoilPorvSync.py b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvSync.py similarity index 89% rename from ApplicationCode/GrpcInterface/Python/examples/SoilPorvSync.py rename to ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvSync.py index 81bf8cbb7c..4c8b44537c 100644 --- a/ApplicationCode/GrpcInterface/Python/examples/SoilPorvSync.py +++ b/ApplicationCode/GrpcInterface/Python/rips/examples/SoilPorvSync.py @@ -1,6 +1,6 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips resInsight = rips.Instance.find() diff --git a/ApplicationCode/GrpcInterface/Python/tests/conftest.py b/ApplicationCode/GrpcInterface/Python/rips/tests/conftest.py similarity index 91% rename from ApplicationCode/GrpcInterface/Python/tests/conftest.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/conftest.py index a862d65c69..996ea6688e 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/conftest.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/conftest.py @@ -3,7 +3,7 @@ import sys import os import getopt -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips _rips_instance = None diff --git a/ApplicationCode/GrpcInterface/Python/rips/tests/dataroot.py b/ApplicationCode/GrpcInterface/Python/rips/tests/dataroot.py new file mode 100644 index 0000000000..63ac446863 --- /dev/null +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/dataroot.py @@ -0,0 +1 @@ +PATH = "../../../../TestModels" \ No newline at end of file diff --git a/ApplicationCode/GrpcInterface/Python/tests/test_cases.py b/ApplicationCode/GrpcInterface/Python/rips/tests/test_cases.py similarity index 97% rename from ApplicationCode/GrpcInterface/Python/tests/test_cases.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/test_cases.py index e0c61b6a31..ab1579c5e8 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/test_cases.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/test_cases.py @@ -2,7 +2,7 @@ import sys import os import pytest -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import dataroot diff --git a/ApplicationCode/GrpcInterface/Python/tests/test_commands.py b/ApplicationCode/GrpcInterface/Python/rips/tests/test_commands.py similarity index 93% rename from ApplicationCode/GrpcInterface/Python/tests/test_commands.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/test_commands.py index ec99c0aa6a..906a2902e2 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/test_commands.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/test_commands.py @@ -3,7 +3,7 @@ import os import tempfile import pytest -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import dataroot diff --git a/ApplicationCode/GrpcInterface/Python/tests/test_grids.py b/ApplicationCode/GrpcInterface/Python/rips/tests/test_grids.py similarity index 88% rename from ApplicationCode/GrpcInterface/Python/tests/test_grids.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/test_grids.py index cb75df14d4..52556d94da 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/test_grids.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/test_grids.py @@ -1,7 +1,7 @@ import sys import os -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import dataroot diff --git a/ApplicationCode/GrpcInterface/Python/tests/test_project.py b/ApplicationCode/GrpcInterface/Python/rips/tests/test_project.py similarity index 82% rename from ApplicationCode/GrpcInterface/Python/tests/test_project.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/test_project.py index 3786b918ff..9595923d4b 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/test_project.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/test_project.py @@ -2,7 +2,7 @@ import sys import os import pytest -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import dataroot diff --git a/ApplicationCode/GrpcInterface/Python/tests/test_properties.py b/ApplicationCode/GrpcInterface/Python/rips/tests/test_properties.py similarity index 97% rename from ApplicationCode/GrpcInterface/Python/tests/test_properties.py rename to ApplicationCode/GrpcInterface/Python/rips/tests/test_properties.py index 9ef3561a7b..0966df800c 100644 --- a/ApplicationCode/GrpcInterface/Python/tests/test_properties.py +++ b/ApplicationCode/GrpcInterface/Python/rips/tests/test_properties.py @@ -2,7 +2,7 @@ import sys import os import pytest -sys.path.insert(1, os.path.join(sys.path[0], '..')) +sys.path.insert(1, os.path.join(sys.path[0], '../../')) import rips import dataroot diff --git a/ApplicationCode/GrpcInterface/Python/setup.py.cmake b/ApplicationCode/GrpcInterface/Python/setup.py.cmake index 6e447b1644..e067cd1567 100644 --- a/ApplicationCode/GrpcInterface/Python/setup.py.cmake +++ b/ApplicationCode/GrpcInterface/Python/setup.py.cmake @@ -6,7 +6,7 @@ with open('README.md') as f: with open('LICENSE') as f: license = f.read() -RIPS_DIST_VERSION = '2' +RIPS_DIST_VERSION = '3' setup( name='rips', @@ -17,5 +17,5 @@ setup( author_email='info@ceetronsolutions.com', url='http://www.resinsight.org', license=license, - packages=find_packages(exclude=('tests', 'docs', '__pycache', 'examples')) + packages=find_packages(exclude=('docs', '__pycache__')) ) \ No newline at end of file diff --git a/ApplicationCode/GrpcInterface/Python/tests/dataroot.py b/ApplicationCode/GrpcInterface/Python/tests/dataroot.py deleted file mode 100644 index 16c2b32354..0000000000 --- a/ApplicationCode/GrpcInterface/Python/tests/dataroot.py +++ /dev/null @@ -1 +0,0 @@ -PATH = "../../../TestModels" \ No newline at end of file