Skip to content

Commit

Permalink
Clean up of explicit namespace declaration (#98)
Browse files Browse the repository at this point in the history
* new init clean from main
* fix build and tests's inits
  • Loading branch information
bamsumit authored Nov 23, 2021
1 parent 38e14d5 commit e6ba2d9
Show file tree
Hide file tree
Showing 43 changed files with 2 additions and 116 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@init
def set_properties(project):
project.set_property("dir_source_main_python", "src")
project.set_property("dir_source_unittest_python", "tests")
project.set_property("dir_source_unittest_python", "tests/lava")
project.set_property("dir_source_main_scripts", "scripts")
project.set_property("dir_docs", "docs")

Expand Down Expand Up @@ -63,7 +63,7 @@ def set_properties(project):
@init(environments="unit")
def set_properties_unit(project):
project.set_property("dir_source_main_python", "src")
project.set_property("dir_source_unittest_python", "tests")
project.set_property("dir_source_unittest_python", "tests/lava")
project.set_property("dir_source_main_scripts", "scripts")
project.set_property("dir_docs", "docs")

Expand Down
5 changes: 0 additions & 5 deletions src/lava/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/compiler/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/compiler/c/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/compiler/channels/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/compiler/nc/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/compiler/py/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/core/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/model/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/model/c/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/model/nc/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/model/py/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/model/sub/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/process/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/process/ports/__init__.py

This file was deleted.

15 changes: 0 additions & 15 deletions src/lava/magma/core/sync/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/core/sync/protocols/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/runtime/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/runtime/channels/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/magma/runtime/message_infrastructure/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/magma/runtime/node/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/proc/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/proc/dense/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/proc/io/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/proc/lif/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/proc/sparse/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion src/lava/tutorials/__init__.py

This file was deleted.

Empty file.
5 changes: 0 additions & 5 deletions src/lava/utils/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/lava/utils/dataloader/__init__.py

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion tests/lava/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/compiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/compiler/channels/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/core/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/core/model/py/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/core/process/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion tests/lava/magma/runtime/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
__import__("pkg_resources").declare_namespace(__name__)
5 changes: 0 additions & 5 deletions tests/lava/proc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
# See: https://spdx.org/licenses/

__import__("pkg_resources").declare_namespace(__name__)
5 changes: 0 additions & 5 deletions tests/lava/proc/lif/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
# See: https://spdx.org/licenses/

__import__("pkg_resources").declare_namespace(__name__)

0 comments on commit e6ba2d9

Please sign in to comment.