Skip to content

Commit ded7a52

Browse files
Adding unzip, toml, and java to install-deps. (#600)
Note that unzip must be installed first, as it's used to install autogen. Fixes #599. Co-authored-by: stevemessick <stevemessick@users.noreply.github.com>
1 parent aa2ff8c commit ded7a52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ dependencies = [
5353
]
5454

5555
[tool.hatch.envs.default.scripts]
56+
install-unzip = """sudo apt-get install -y unzip || echo 'unzip could not be installed'"""
5657
install-autogen = """curl -fsSL --output /tmp/autogen.zip "https://github.com/mbrukman/autogen/archive/refs/heads/master.zip" &&
5758
rm -rf /tmp/autogen && mkdir -p /tmp/autogen && unzip -qo /tmp/autogen.zip -d /tmp/autogen &&
5859
mv /tmp/autogen/autogen-*/* /tmp/autogen && rm -rf /tmp/autogen/autogen-* &&
5960
sudo chmod a+rx /tmp/autogen/autogen.sh"""
6061
# TODO: install in Mac/Windows
6162
install-yapf = """pip3 install yapf==0.40.2 --break-system-packages || echo 'yapf could not be installed'"""
62-
install-deps = "hatch run install-autogen && hatch run install-yapf"
63+
install-toml = """sudo apt-get install -y python3-toml || echo 'toml could not be installed'"""
64+
install-java = """sudo apt-get install -y default-jre || echo 'java could not be installed'"""
65+
install-deps = "hatch run install-unzip && hatch run install-autogen && hatch run install-yapf && hatch run install-toml && hatch run install-java"
6366

6467
integration-test = "pytest {args:integration_tests}"
6568

0 commit comments

Comments
 (0)