Skip to content

Commit f3f3470

Browse files
Merge pull request #17 from gambitproject/gambit-layout
Integrate Gambit layout functionality
2 parents 5cf49c1 + 2a45456 commit f3f3470

File tree

14 files changed

+12205
-8588
lines changed

14 files changed

+12205
-8588
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ jobs:
2121
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install LaTeX
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y texlive-full
2429
2530
- name: Install dependencies
2631
run: |
2732
python -m pip install --upgrade pip
2833
pip install -e .[dev]
34+
pip install git+https://github.com/gambitproject/gambit.git # TODO: add pygambit to dev dependencies after 16.5 release.
2935
3036
- name: Test with pytest
3137
run: |

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,5 @@ temp*
155155
.temp*
156156

157157
# .ef files generated from .efg files (the test suite)
158-
games/efg/*.ef
158+
games/efg/*.ef
159+
tutorial/*.ef

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ keywords = ["game theory", "tikz", "visualization", "trees", "economics"]
2929
dependencies = ["jupyter-tikz", "ipykernel"]
3030

3131
[project.optional-dependencies]
32-
dev = ["pytest>=7.0.0", "pytest-cov"]
32+
dev = ["pytest>=7.0.0", "pytest-cov", "nbformat", "nbclient", "ipykernel"]
3333

3434
[project.scripts]
3535
draw_tree = "draw_tree.cli:main"

src/draw_tree/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
generate_png,
1616
ef_to_tex,
1717
latex_wrapper,
18-
efg_to_ef
18+
efg_dl_ef
1919
)
2020

21+
from .gambit_layout import gambit_layout_to_ef
22+
2123
__all__ = [
2224
"draw_tree",
2325
"generate_tikz",
@@ -26,5 +28,6 @@
2628
"generate_png",
2729
"ef_to_tex",
2830
"latex_wrapper",
29-
"efg_to_ef"
31+
"efg_dl_ef",
32+
"gambit_layout_to_ef"
3033
]

0 commit comments

Comments
 (0)