Skip to content

Commit

Permalink
📦 Make graphviz optional
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed May 16, 2024
1 parent 2e5e6d0 commit 2e42754
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USER root
# install C-PAC
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USER root
# install C-PAC & set up runscript
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
2 changes: 1 addition & 1 deletion .github/Dockerfiles/C-PAC.develop-jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ USER root
# install C-PAC
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
2 changes: 1 addition & 1 deletion .github/Dockerfiles/C-PAC.develop-lite-jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ USER root
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
COPY --from=ghcr.io/fcp-indi/c-pac_templates:latest /cpac_templates /cpac_templates
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `pyproject.toml` file with `[build-system]` defined.

### Changed

- Moved `pygraphviz` from requirements to `graphviz` optional dependencies group.

### Fixed

- A bug in which AWS S3 encryption was looked for in Nipype config instead of pipeline config (only affected uploading logs).
Expand Down
1 change: 0 additions & 1 deletion CPAC/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ def get_cpac_gitversion():
"psutil",
"PyBASC",
"pybids",
"pygraphviz",
"PyPEER @ https://github.com/shnizzedy/PyPEER/archive/6965d2b2bea0fef824e885fec33a8e0e6bd50a97.zip",
"python-dateutil",
"pyyaml",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ USER root
# install C-PAC
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def main(**extra_args):
platforms=PLATFORMS,
version=VERSION,
install_requires=REQUIREMENTS,
extras_require={"graphviz": ["pygraphviz"]},
configuration=configuration,
scripts=glob("scripts/*"),
entry_points={"console_scripts": ["cpac = CPAC.__main__:main"]},
Expand Down
2 changes: 1 addition & 1 deletion variant-ABCD-HCP.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USER root
# install C-PAC
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
2 changes: 1 addition & 1 deletion variant-fMRIPrep-LTS.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USER root
# install C-PAC & set up runscript
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down
2 changes: 1 addition & 1 deletion variant-lite.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ USER root
COPY dev/circleci_data/pipe-test_ci.yml /cpac_resources/pipe-test_ci.yml
COPY . /code
COPY --from=ghcr.io/fcp-indi/c-pac_templates:latest /cpac_templates /cpac_templates
RUN pip cache purge && pip install -e /code
RUN pip cache purge && pip install -e "/code[graphviz]"
# set up runscript
COPY dev/docker_data /code/docker_data
RUN rm -Rf /code/docker_data/checksum && \
Expand Down

0 comments on commit 2e42754

Please sign in to comment.