Skip to content

Commit

Permalink
Fixes #237
Browse files Browse the repository at this point in the history
  • Loading branch information
rustydb committed Nov 17, 2022
1 parent f7df1cf commit 1dd6028
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 88 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ docs/_build
pylintrc
pylintrc.test

test_data/*
test_data/*

# Shasta Cabling Diagrams
*.xlsx
11 changes: 9 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
include README.md
include LICENSE
global-include *.yaml
include README.md
global-include *.yaml
global-include *.j2
include canu/generate/switch/config/ttp_templates/*.txt
include canu/utils/sls_utils/schemas/*.json
include canu/validate/switch/config/*.yaml
include network_modeling/mac_vendors
include network_modeling/models/*
include network_modeling/schema/paddle-schema.json
84 changes: 1 addition & 83 deletions pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,93 +23,11 @@

block_cipher = None

added_files = [
("canu/canu.yaml", "canu"),
("canu/validate/switch/config/*.yaml", "canu/validate/switch/config"),
("network_modeling/models/*", "network_modeling/models"),
("network_modeling/mac_vendors", "network_modeling"),
("network_modeling/schema/*", "network_modeling/schema"),
(
"network_modeling/configs/templates/1.0/aruba/common/*.j2",
"network_modeling/configs/templates/1.0/aruba/common",
),
(
"network_modeling/configs/templates/1.0/aruba/full/*.j2",
"network_modeling/configs/templates/1.0/aruba/full",
),
(
"network_modeling/configs/templates/1.0/aruba/tds/*.j2",
"network_modeling/configs/templates/1.0/aruba/tds",
),
(
"network_modeling/configs/templates/1.0/dellmellanox/common/*.j2",
"network_modeling/configs/templates/1.0/dellmellanox/common",
),
(
"network_modeling/configs/templates/1.0/dellmellanox/full/*.j2",
"network_modeling/configs/templates/1.0/dellmellanox/full",
),
(
"network_modeling/configs/templates/1.2/arista/*.j2",
"network_modeling/configs/templates/1.2/arista",
),
(
"network_modeling/configs/templates/1.2/aruba/common/*.j2",
"network_modeling/configs/templates/1.2/aruba/common",
),
(
"network_modeling/configs/templates/1.2/aruba/full/*.j2",
"network_modeling/configs/templates/1.2/aruba/full",
),
(
"network_modeling/configs/templates/1.2/aruba/tds/*.j2",
"network_modeling/configs/templates/1.2/aruba/tds",
),
(
"network_modeling/configs/templates/1.2/dellmellanox/common/*.j2",
"network_modeling/configs/templates/1.2/dellmellanox/common",
),
(
"network_modeling/configs/templates/1.2/dellmellanox/full/*.j2",
"network_modeling/configs/templates/1.2/dellmellanox/full",
),
(
"network_modeling/configs/templates/1.3/arista/*.j2",
"network_modeling/configs/templates/1.3/arista",
),
(
"network_modeling/configs/templates/1.3/aruba/common/*.j2",
"network_modeling/configs/templates/1.3/aruba/common",
),
(
"network_modeling/configs/templates/1.3/aruba/full/*.j2",
"network_modeling/configs/templates/1.3/aruba/full",
),
(
"network_modeling/configs/templates/1.3/aruba/tds/*.j2",
"network_modeling/configs/templates/1.3/aruba/tds",
),
(
"network_modeling/configs/templates/1.3/dellmellanox/common/*.j2",
"network_modeling/configs/templates/1.3/dellmellanox/common",
),
(
"network_modeling/configs/templates/1.3/dellmellanox/full/*.j2",
"network_modeling/configs/templates/1.3/dellmellanox/full",
),
("canu/test/aruba/test_suite.yaml", "canu/test/aruba"),
("canu/test/dellanox/test_suite.yaml", "canu/test/dellanox"),
(
"canu/generate/switch/config/ttp_templates/*.txt",
"canu/generate/switch/config/ttp_templates",
),
("canu/utils/sls_utils/schemas/*.json", "canu/utils/sls_utils/schemas"),
]
a = Analysis(
["canu/cli.py"],
pathex=["canu"],
binaries=[],
datas=added_files,
datas=[],
hiddenimports=["network_modeling"],
hookspath=["./pyinstaller_hooks"],
runtime_hooks=[],
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import pkg_resources

from setuptools import find_packages
from setuptools import find_namespace_packages
from setuptools import setup

version_re = re.compile("^Version: (.+)$", re.M)
Expand Down Expand Up @@ -100,7 +100,7 @@ def get_version():
long_description=readme(),
version=get_version(),
license=LICENSE,
packages=find_packages(),
packages=find_namespace_packages(),
include_package_data=True,
zip_safe=False,
exclude_package_data={"canu": ["canu_cache.yaml"]},
Expand Down

0 comments on commit 1dd6028

Please sign in to comment.