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
Simplifying dependencies #323
Changes from all commits
35cd26e
c00e970
90cea8f
a0ffc0d
04e7a02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,13 @@ MY_CONDA_PREFIX="$CONDA_ENVS_DIR/$MY_CONDA_ENV_NAME" | |
echo "Creating $MY_CONDA_PREFIX" | ||
module load conda | ||
conda remove -y --prefix "$MY_CONDA_PREFIX" --all | ||
conda create -y --prefix "$MY_CONDA_PREFIX" -c conda-forge "pyarrow>=7.0.0" "python=3.9" "numpy>=1.20.0" "pandas>=1.0.0,!=1.0.4" "dask>=2022.10.0" "distributed>=2021.5" ruby | ||
source deactivate | ||
source activate "$MY_CONDA_PREFIX" | ||
mamba create -y --prefix "$MY_CONDA_PREFIX" -c conda-forge "python=3.10" "pyarrow" "numpy" "pandas" "dask>=2022.10.0" "distributed" "ruby" | ||
conda deactivate | ||
conda activate "$MY_CONDA_PREFIX" | ||
Comment on lines
+30
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Swtiching to |
||
which pip | ||
if [ $DEV -eq 1 ] | ||
then | ||
pip install --ignore-installed -e . | ||
pip install --no-cache-dir --ignore-installed -e . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keeps us from filling up a user's home directory with cached pip wheels. IYKYK. |
||
else | ||
pip install --ignore-installed . | ||
pip install --no-cache-dir --ignore-installed . | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,36 +57,31 @@ def run_tests(self): | |
install_requires=[ | ||
'pyyaml', | ||
'requests', | ||
'numpy>=1.20.0', | ||
'pandas>=1.0.0,!=1.0.4', | ||
'numpy', | ||
'pandas', | ||
'joblib', | ||
'pyarrow>=3.0.0', | ||
'pyarrow', | ||
'dask[complete]>=2022.10.0', | ||
'docker', | ||
'boto3>=1.10.44', | ||
's3fs>=0.4.0,<0.5.0', | ||
'fsspec>=0.6.0', | ||
'docutils<0.15,>=0.10', | ||
'yamale>=2.0', | ||
'ruamel.yaml>=0.15.0', | ||
'testfixtures', | ||
's3fs[boto3]', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We had to pin s3fs to a really old version so we could have boto3 and s3fs coexist. Turns out we weren't the only ones with this problem so they made a way to resolve the conflict, which we're using now. This allows us to use a newer version of s3fs among other things. |
||
'fsspec', | ||
'yamale', | ||
'ruamel.yaml', | ||
'awsretry', | ||
'jinja2<3.1.0' | ||
], | ||
extras_require={ | ||
'dev': [ | ||
'pytest>=2.8.0', | ||
'pytest', | ||
'pytest-mock', | ||
'pytest-cov', | ||
'codecov', | ||
'testfixtures', | ||
'Sphinx', | ||
'sphinx_rtd_theme', | ||
'sphinx-autobuild', | ||
'sphinxcontrib-programoutput', | ||
'sphinx_paramlinks', | ||
'changelog', | ||
'flake8', | ||
'coverage', | ||
'rope', | ||
'doc8' | ||
] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out they have mamba now, which makes things a lot faster.