From 734117967156881d1bf4729df7d333997c7737fd Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Tue, 28 May 2024 19:29:45 -0400 Subject: [PATCH] Update package metadata --- pyproject.toml | 15 +++++++++++++++ setup.py | 16 ---------------- {llama => src/llama}/__init__.py | 0 {llama => src/llama}/generation.py | 0 {llama => src/llama}/model.py | 0 {llama => src/llama}/test_tokenizer.py | 0 {llama => src/llama}/tokenizer.py | 0 7 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py rename {llama => src/llama}/__init__.py (100%) rename {llama => src/llama}/generation.py (100%) rename {llama => src/llama}/model.py (100%) rename {llama => src/llama}/test_tokenizer.py (100%) rename {llama => src/llama}/tokenizer.py (100%) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5e67521 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,15 @@ +[build-system] +requires = ["hatchling", "hatch-requirements-txt"] +build-backend = "hatchling.build" + +[project] +name = "llama3" +version = "0.0.1" +readme = "README.md" +dynamic = ["dependencies"] + +[tool.hatch.metadata.hooks.requirements_txt] +files = ["requirements.txt"] + +[tool.hatch.build.targets.wheel] +packages = ["src/llama"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 86ead8a..0000000 --- a/setup.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# This software may be used and distributed in accordance with the terms of the Llama 3 Community License Agreement. - -from setuptools import find_packages, setup - - -def get_requirements(path: str): - return [l.strip() for l in open(path)] - - -setup( - name="llama3", - version="0.0.1", - packages=find_packages(), - install_requires=get_requirements("requirements.txt"), -) diff --git a/llama/__init__.py b/src/llama/__init__.py similarity index 100% rename from llama/__init__.py rename to src/llama/__init__.py diff --git a/llama/generation.py b/src/llama/generation.py similarity index 100% rename from llama/generation.py rename to src/llama/generation.py diff --git a/llama/model.py b/src/llama/model.py similarity index 100% rename from llama/model.py rename to src/llama/model.py diff --git a/llama/test_tokenizer.py b/src/llama/test_tokenizer.py similarity index 100% rename from llama/test_tokenizer.py rename to src/llama/test_tokenizer.py diff --git a/llama/tokenizer.py b/src/llama/tokenizer.py similarity index 100% rename from llama/tokenizer.py rename to src/llama/tokenizer.py