Skip to content

Commit d124772

Browse files
Refactor sDockerfile and update installation instructions
- Modifies the Dockerfile to install the toolkit in editable mode with visualization dependencies, removing the requirements.txt file. - Updates the tests/README.md to clarify installation steps for running tests, emphasizing the use of editable mode for development dependencies. - Removes tests/requirements.txt as its contents are now integrated into the main installation process.
1 parent ab784dd commit d124772

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ WORKDIR "${HOME}/decomp"
88
COPY --chown=${NB_UID}:${NB_GID} . .
99

1010
# install the package and its dependencies
11-
RUN pip install --no-cache-dir -r requirements.txt && \
12-
pip install --no-cache-dir -e . && \
11+
RUN pip install --no-cache-dir -e ".[viz]" && \
1312
# pre-build the UDS corpus to cache it in the image
1413
python -c "from decomp import UDSCorpus; UDSCorpus()"
1514

requirements.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ tests use the [`pytest` framework](https://docs.pytest.org/).
44

55
# Installation
66

7-
To run the tests in this directory, ensure that both the toolkit and
8-
`pytest` are installed.
7+
To run the tests in this directory, install the toolkit with development dependencies:
98

109
```bash
11-
pip install --user pytest==6.0.* git+git://github.com/decompositional-semantics-initiative/decomp.git
10+
pip install -e ".[dev]"
1211
```
1312

13+
This will install the toolkit in editable mode along with all testing dependencies including pytest.
14+
1415
# Running the test suite
1516

1617
The entire test suite can be run from the root directory of the

tests/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)