Skip to content

Commit

Permalink
Remove requirements.txt, pyproject.toml handles it
Browse files Browse the repository at this point in the history
fix huggingface_hub since this package exists as well.

make install  use --no-deps

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Oct 11, 2024
1 parent 6226362 commit 3656d75
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ help:

.PHONY:
install-requirements:
pipx install tqdm black flake8 argcomplete wheel omlmd huggingface_hub[cli] codespell
pipx install tqdm black flake8 argcomplete wheel omlmd huggingface_hub codespell

.PHONY:
install-completions:
Expand Down Expand Up @@ -69,7 +69,7 @@ completions:
.PHONY:
install: docs completions
RAMALAMA_VERSION=$(RAMALAMA_VERSION) \
pip install . --root $(DESTDIR) --prefix ${PREFIX}
pip install . --no-deps --root $(DESTDIR) --prefix ${PREFIX}

.PHONY:
build:
Expand Down
2 changes: 1 addition & 1 deletion container-images/cpuonly/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
rm -rf /var/cache/*dnf*

RUN /usr/bin/python3 --version
RUN pip install "huggingface_hub[cli]==${HUGGINGFACE_HUB_VERSION}"
RUN pip install "huggingface_hub==${HUGGINGFACE_HUB_VERSION}"
RUN pip install "omlmd==${OMLMD_VERSION}"
RUN pip install "tqdm==${TQDM_VERSION}"

Expand Down
2 changes: 1 addition & 1 deletion container-images/cuda/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
rm -rf /var/cache/*dnf*

RUN /usr/bin/python3 --version
RUN pip install "huggingface_hub[cli]==${HUGGINGFACE_HUB_VERSION}"
RUN pip install "huggingface_hub==${HUGGINGFACE_HUB_VERSION}"
RUN pip install "omlmd==${OMLMD_VERSION}"

# Build wouldn't complete couldn't find libcuda so made a systemlink
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ check_platform() {
}

install_mac_dependencies() {
pipx install huggingface_hub[cli] omlmd argcomplete
pipx install huggingface_hub omlmd argcomplete
brew install llama.cpp
}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies = [
"argcomplete",
"tqdm",
"omlmd",
"huggingface_hub[cli]",
"huggingface_hub",
]
requires-python = ">= 3.8"
maintainers = [
Expand Down
2 changes: 1 addition & 1 deletion ramalama/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Huggingface models requires the huggingface-cli and tqdm modules.
These modules can be installed via PyPi tools like pip, pip3, pipx or via
distribution package managers like dnf or apt. Example:
pip install huggingface_hub[cli] tqdm
pip install huggingface_hub tqdm
"""


Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

5 changes: 5 additions & 0 deletions rpm/python-ramalama.spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel
BuildRequires: python%{python3_pkgversion}-argcomplete
Requires: python%{python3_pkgversion}-argcomplete
Recommends: podman
Recommends: python%{python3_pkgversion}-huggingface-hub
Recommends: python%{python3_pkgversion}-tqdm


Summary: %{summary}
Provides: %{pypi_name} = %{version}-%{release}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
Expand Down

0 comments on commit 3656d75

Please sign in to comment.