Skip to content

Commit

Permalink
Packaging fixed to now ship default style
Browse files Browse the repository at this point in the history
  • Loading branch information
hyakuhei committed Apr 27, 2021
1 parent 913b0df commit dc396d1
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include etc/stlye.json
include conf/*.json
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/attacktree/renderer.py → attacktree/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def render(self, renderUnimplemented: bool=True, style: dict={}, fname: str="Att

if len(style) == 0: #TODO: Make this a better check
with resources.open_text("attacktree", "style.json") as fid:
style = json.loads(fid)
style = json.load(fid)

self._buildDot(self.root, dot, dotformat=style, renderUnimplemented=renderUnimplemented) #recursive call
dot.format = fout
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions rebuild.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
rm -rf attacktree.egg-info
rm -rf build
rm -rf dist
python3 -m build
Expand Down
7 changes: 2 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = attacktree
version = 0.0.16
version = 0.0.162
author = hyakuhei
author_email = hyakuhei@gmail.com
summary = Build, analyize and render attack trees
Expand All @@ -14,16 +14,13 @@ classifiers =
Operating System :: OS Independent

[options]
package_dir =
= src
include_package_date = True
packages = find:
python_requires = >=3.7
install_requires =
graphviz >=0.16
include_package_data = true

[options.packages.find]
where = src
exclude =
build*
dist*
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools import setup

setup()

0 comments on commit dc396d1

Please sign in to comment.