This is an automated email from the ASF dual-hosted git repository. bertty pushed a commit to branch python-platform in repository https://gitbox.apache.org/repos/asf/incubator-wayang.git
commit d9974051295126631bcc6ede633d1d1c81016339 Author: Bertty Contreras-Rojas <[email protected]> AuthorDate: Thu Apr 7 16:28:02 2022 +0200 [WAYANG-#8] move old code to folder out of the current pywy Signed-off-by: bertty <[email protected]> --- .../{src/pywy/platforms/python/execution => old_code}/__init__.py | 0 python/{src/pywy => old_code}/config/config_reader.py | 0 python/{src/pywy => old_code}/config/pywayang_config.ini | 0 python/{src/pywy => old_code}/old_graph/__init__.py | 0 python/{src/pywy => old_code}/old_graph/graph.py | 2 +- python/{src/pywy => old_code}/old_graph/node.py | 0 python/{src/pywy => old_code}/old_graph/traversal.py | 2 +- python/{src/pywy => old_code}/old_graph/visitant.py | 0 python/{src/pywy => old_code}/orchestrator/__init__.py | 0 python/{src/pywy => old_code}/orchestrator/dataquanta.py | 8 ++++---- python/{src/pywy => old_code}/orchestrator/execdirectly.py | 4 ++-- python/{src/pywy => old_code}/orchestrator/main.py | 5 ++--- python/{src/pywy => old_code}/orchestrator/operator.py | 6 +++--- python/{src/pywy => old_code}/orchestrator/plan.py | 0 python/{src/pywy/test => old_code/protobuf}/__init__.py | 0 python/{src/pywy/translate => old_code}/protobuf/planwriter.py | 2 +- python/{src/pywy => old_code}/test.py | 0 .../platforms/python/execution => old_code/tests}/__init__.py | 0 python/{src/pywy/test => old_code/tests}/demo_testing.py | 0 python/{src/pywy/test => old_code/tests}/full_java_test.py | 0 python/{src/pywy/test => old_code/tests}/full_spark_test.py | 5 +---- 21 files changed, 15 insertions(+), 19 deletions(-) diff --git a/python/src/pywy/platforms/python/execution/__init__.py b/python/old_code/__init__.py similarity index 100% copy from python/src/pywy/platforms/python/execution/__init__.py copy to python/old_code/__init__.py diff --git a/python/src/pywy/config/config_reader.py b/python/old_code/config/config_reader.py similarity index 100% rename from python/src/pywy/config/config_reader.py rename to python/old_code/config/config_reader.py diff --git a/python/src/pywy/config/pywayang_config.ini b/python/old_code/config/pywayang_config.ini similarity index 100% rename from python/src/pywy/config/pywayang_config.ini rename to python/old_code/config/pywayang_config.ini diff --git a/python/src/pywy/old_graph/__init__.py b/python/old_code/old_graph/__init__.py similarity index 100% rename from python/src/pywy/old_graph/__init__.py rename to python/old_code/old_graph/__init__.py diff --git a/python/src/pywy/old_graph/graph.py b/python/old_code/old_graph/graph.py similarity index 98% rename from python/src/pywy/old_graph/graph.py rename to python/old_code/old_graph/graph.py index 13846c48..5619ea77 100644 --- a/python/src/pywy/old_graph/graph.py +++ b/python/old_code/old_graph/graph.py @@ -15,7 +15,7 @@ # limitations under the License. # -from pywy.old_graph.node import Node +from old_code.old_graph.node import Node import logging diff --git a/python/src/pywy/old_graph/node.py b/python/old_code/old_graph/node.py similarity index 100% rename from python/src/pywy/old_graph/node.py rename to python/old_code/old_graph/node.py diff --git a/python/src/pywy/old_graph/traversal.py b/python/old_code/old_graph/traversal.py similarity index 97% rename from python/src/pywy/old_graph/traversal.py rename to python/old_code/old_graph/traversal.py index a2714145..2a6e7096 100644 --- a/python/src/pywy/old_graph/traversal.py +++ b/python/old_code/old_graph/traversal.py @@ -15,7 +15,7 @@ # limitations under the License. # -from pywy.old_graph.visitant import Visitant +from old_code.old_graph.visitant import Visitant import logging diff --git a/python/src/pywy/old_graph/visitant.py b/python/old_code/old_graph/visitant.py similarity index 100% rename from python/src/pywy/old_graph/visitant.py rename to python/old_code/old_graph/visitant.py diff --git a/python/src/pywy/orchestrator/__init__.py b/python/old_code/orchestrator/__init__.py similarity index 100% rename from python/src/pywy/orchestrator/__init__.py rename to python/old_code/orchestrator/__init__.py diff --git a/python/src/pywy/orchestrator/dataquanta.py b/python/old_code/orchestrator/dataquanta.py similarity index 98% rename from python/src/pywy/orchestrator/dataquanta.py rename to python/old_code/orchestrator/dataquanta.py index 8c4468b2..364bd246 100644 --- a/python/src/pywy/orchestrator/dataquanta.py +++ b/python/old_code/orchestrator/dataquanta.py @@ -15,10 +15,10 @@ # limitations under the License. # -from pywy.orchestrator.operator import Operator -from pywy.old_graph.graph import Graph -from pywy.old_graph.traversal import Traversal -from pywy.translate.protobuf.planwriter import MessageWriter +from old_code.orchestrator.operator import Operator +from old_code.old_graph.graph import Graph +from old_code.old_graph.traversal import Traversal +from old_code.protobuf.planwriter import MessageWriter import itertools import collections import logging diff --git a/python/src/pywy/orchestrator/execdirectly.py b/python/old_code/orchestrator/execdirectly.py similarity index 97% rename from python/src/pywy/orchestrator/execdirectly.py rename to python/old_code/orchestrator/execdirectly.py index f27b0bb7..5495893f 100644 --- a/python/src/pywy/orchestrator/execdirectly.py +++ b/python/old_code/orchestrator/execdirectly.py @@ -15,8 +15,8 @@ # limitations under the License. # -from pywy.orchestrator.plan import Descriptor -from pywy.orchestrator.dataquanta import DataQuantaBuilder +from old_code.orchestrator.plan import Descriptor +from old_code.orchestrator.dataquanta import DataQuantaBuilder import datetime diff --git a/python/src/pywy/orchestrator/main.py b/python/old_code/orchestrator/main.py similarity index 97% rename from python/src/pywy/orchestrator/main.py rename to python/old_code/orchestrator/main.py index 163e570e..8f706aa3 100644 --- a/python/src/pywy/orchestrator/main.py +++ b/python/old_code/orchestrator/main.py @@ -15,9 +15,8 @@ # limitations under the License. # -from pywy.orchestrator.plan import Descriptor -from pywy.orchestrator.dataquanta import DataQuantaBuilder -import datetime +from old_code.orchestrator.plan import Descriptor +from old_code.orchestrator.dataquanta import DataQuantaBuilder # Returns the Sink Executable Dataquanta of a DEMO plan diff --git a/python/src/pywy/orchestrator/operator.py b/python/old_code/orchestrator/operator.py similarity index 95% rename from python/src/pywy/orchestrator/operator.py rename to python/old_code/orchestrator/operator.py index bd996d16..a9f1a49c 100644 --- a/python/src/pywy/orchestrator/operator.py +++ b/python/old_code/orchestrator/operator.py @@ -17,9 +17,9 @@ import pickle import cloudpickle -from pywy.config.config_reader import get_source_types -from pywy.config.config_reader import get_sink_types -from pywy.config.config_reader import get_boundary_types +from old_code.config.config_reader import get_source_types +from old_code.config.config_reader import get_sink_types +from old_code.config.config_reader import get_boundary_types import logging pickle_protocol = pickle.HIGHEST_PROTOCOL diff --git a/python/src/pywy/orchestrator/plan.py b/python/old_code/orchestrator/plan.py similarity index 100% rename from python/src/pywy/orchestrator/plan.py rename to python/old_code/orchestrator/plan.py diff --git a/python/src/pywy/test/__init__.py b/python/old_code/protobuf/__init__.py similarity index 100% rename from python/src/pywy/test/__init__.py rename to python/old_code/protobuf/__init__.py diff --git a/python/src/pywy/translate/protobuf/planwriter.py b/python/old_code/protobuf/planwriter.py similarity index 99% rename from python/src/pywy/translate/protobuf/planwriter.py rename to python/old_code/protobuf/planwriter.py index 7f133128..afdb17df 100644 --- a/python/src/pywy/translate/protobuf/planwriter.py +++ b/python/old_code/protobuf/planwriter.py @@ -15,7 +15,7 @@ # limitations under the License. # -import pywy.translate.protobuf.pywayangplan_pb2 as pwb +import old_code.protobuf.pywayangplan_pb2 as pwb import os import cloudpickle import logging diff --git a/python/src/pywy/test.py b/python/old_code/test.py similarity index 100% rename from python/src/pywy/test.py rename to python/old_code/test.py diff --git a/python/src/pywy/platforms/python/execution/__init__.py b/python/old_code/tests/__init__.py similarity index 100% rename from python/src/pywy/platforms/python/execution/__init__.py rename to python/old_code/tests/__init__.py diff --git a/python/src/pywy/test/demo_testing.py b/python/old_code/tests/demo_testing.py similarity index 100% rename from python/src/pywy/test/demo_testing.py rename to python/old_code/tests/demo_testing.py diff --git a/python/src/pywy/test/full_java_test.py b/python/old_code/tests/full_java_test.py similarity index 100% rename from python/src/pywy/test/full_java_test.py rename to python/old_code/tests/full_java_test.py diff --git a/python/src/pywy/test/full_spark_test.py b/python/old_code/tests/full_spark_test.py similarity index 94% rename from python/src/pywy/test/full_spark_test.py rename to python/old_code/tests/full_spark_test.py index e32a1c2d..98efd9e9 100644 --- a/python/src/pywy/test/full_spark_test.py +++ b/python/old_code/tests/full_spark_test.py @@ -14,10 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import unittest -from pywy.orchestrator.plan import Descriptor -from pywy.orchestrator.dataquanta import DataQuantaBuilder - +# def test_most_basic(self): descriptor = Descriptor()
