From 6416d21b6e34708afeb4fe162d58fa0e0f3348ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=B6ger?= Date: Sat, 12 Oct 2024 15:05:25 +0200 Subject: [PATCH] split extra dependencies --- Dockerfile | 2 ++ requirements.extras.txt | 1 + requirements.txt | 1 - setup.py | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 requirements.extras.txt diff --git a/Dockerfile b/Dockerfile index 3bd10d4..ebefd3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ WORKDIR /workspace RUN mkdir /assets COPY requirements.txt /assets/requirements.txt +COPY requirements.extras.txt /assets/requirements.extras.txt RUN pip install -r /assets/requirements.txt --upgrade --no-cache-dir +RUN pip install -r /assets/requirements.extras.txt --upgrade --no-cache-dir COPY . /workspace/ RUN git config --global --add safe.directory '*' diff --git a/requirements.extras.txt b/requirements.extras.txt new file mode 100644 index 0000000..807c803 --- /dev/null +++ b/requirements.extras.txt @@ -0,0 +1 @@ +annoy diff --git a/requirements.txt b/requirements.txt index ec15a91..c2133cc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,4 +22,3 @@ codecov jupyter loguru memory-profiler -annoy diff --git a/setup.py b/setup.py index 8fa77fc..f83d744 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def parse_requirements(filename): name=PACKAGE_NAME, packages=proj_packages, package_dir={PACKAGE_NAME: SOURCE_DIRECTORY}, - version="0.0.29", + version="0.0.30", author="Fabian Groeger", author_email="fabian.groeger@unibas.ch", description="A holistic self-supervised data cleaning strategy to detect irrelevant samples, near duplicates and label errors.", @@ -41,6 +41,7 @@ def parse_requirements(filename): python_requires=">=3.6", install_requires=parse_requirements("requirements.txt"), setup_requires=parse_requirements("requirements.txt"), + extras_require={"approximate_nn": ["annoy"]}, classifiers=[ "Programming Language :: Python :: 3", "Operating System :: OS Independent",