Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Centralize all requirements and versions on setup.cfg #819

Merged
merged 1 commit into from Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions Dockerfile
Expand Up @@ -138,18 +138,19 @@ RUN python -c "from matplotlib import font_manager" && \

# Installing dev requirements (packages that are not in pypi)
WORKDIR /src/
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Precaching atlases
RUN python -c "from templateflow import api as tfapi; \
COPY setup.cfg setup.cfg
RUN pip install --no-cache-dir "$( grep templateflow setup.cfg | xargs )" && \
python -c "from templateflow import api as tfapi; \
tfapi.get('MNI152NLin2009cAsym', resolution=[1, 2], suffix='T1w', desc=None); \
tfapi.get('MNI152NLin2009cAsym', resolution=[1, 2], suffix='mask',\
desc=['brain', 'head']); \
tfapi.get('MNI152NLin2009cAsym', resolution=1, suffix='dseg', desc='carpet'); \
tfapi.get('MNI152NLin2009cAsym', resolution=1, suffix='probseg',\
label=['CSF', 'GM', 'WM']);\
tfapi.get('MNI152NLin2009cAsym', resolution=[1, 2], suffix='boldref')"
tfapi.get('MNI152NLin2009cAsym', resolution=[1, 2], suffix='boldref')" && \
rm setup.cfg

# Installing MRIQC
COPY . /src/mriqc
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

3 changes: 2 additions & 1 deletion setup.cfg
Expand Up @@ -20,7 +20,6 @@ classifiers =
[options]
python_requires = >= 3.5
install_requires =
PyYAML
dipy
jinja2
matplotlib
Expand All @@ -32,12 +31,14 @@ install_requires =
numpy
pandas>=0.21.0
pybids ~= 0.9.2
PyYAML
scikit-learn>=0.19.0
scipy
seaborn
statsmodels
svgutils
templateflow ~= 0.4.1
xvfbwrapper
test_requires =
coverage
mock
Expand Down