Skip to content

Commit

Permalink
update repo reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
yunss-ML committed Aug 25, 2023
1 parent 31dc36a commit 073f09c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
git+https://github.com/Baijiong-Lin/LoRA-Torch
git+https://github.com/microsoft/LoRA
LoRA-Torch @ git+https://github.com/Baijiong-Lin/LoRA-Torch
loralib
16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import setuptools
import os
import pkg_resources
import sys
import pathlib

current_dir = os.path.dirname(__file__)
target_dir = os.path.abspath(os.path.join(current_dir, "."))
Expand All @@ -15,6 +17,15 @@
ENV:
python -m venv AdapterLoRa && pip install -r requirements.txt
"""
# parse_requirements() returns generator of pip.req.InstallRequirement objects
# install_reqs =parse_requirements('requirements.txt', session='hack')
# reqs = [str(ir.req) for ir in install_reqs]
with pathlib.Path('requirements.txt').open() as requirements_txt:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]

setuptools.setup(
name="AdapterLoRa",
Expand All @@ -27,10 +38,7 @@
url="https://github.com/youness-elbrag/AdapterLoRa/",
packages=setuptools.find_packages(),
keywords = ['Quantization', 'AdapterLLM', 'PEFT'], # Keywords that define your package best
install_requires=[ # I get to this in a second
'LoRA-Torch @ git+https://github.com/Baijiong-Lin/LoRA-Torch',
'LoRA @ git+https://github.com/microsoft/LoRA',
],
install_requires= install_requires,
classifiers=[
'Development Status :: 4 - Beta', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Intended Audience :: Developers', # Define that your audience are developers
Expand Down

0 comments on commit 073f09c

Please sign in to comment.