From b22a6e022aa083daee079333bc6e08887aaee095 Mon Sep 17 00:00:00 2001 From: Jean Mercat Date: Tue, 23 Jul 2024 13:14:58 -0700 Subject: [PATCH] slight changes to MANIFEST pyproject and setup to build wheel --- MANIFEST.in | 5 ++++- pyproject.toml | 13 ++++++++++++- setup.py | 5 ++--- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 97817f7c..d897ca3f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ -include open_lm/model_configs/*.json \ No newline at end of file +include open_lm/model_configs/*.json +include requirements.txt +include README.md +include LICENSE diff --git a/pyproject.toml b/pyproject.toml index 29580a41..01433752 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,14 @@ +[build-system] +requires = ["setuptools>=45", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "open_lm" +dynamic = ["version", "description", "readme", "license", "authors", "classifiers", "dependencies"] + +[tool.setuptools] +py-modules = [] + [tool.black] line-length = 120 @@ -6,4 +17,4 @@ markers = [ "slow: marks tests as slow", "gpu: marks tests as requiring gpus", "s3: marks tests as requiring s3 creds", -] +] \ No newline at end of file diff --git a/setup.py b/setup.py index cb7fcd4a..37addcb4 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ -import setuptools -from setuptools import find_packages +from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) @@ -17,7 +16,7 @@ def _read_reqs(relpath): REQUIREMENTS = _read_reqs("requirements.txt") -setuptools.setup( +setup( name="open_lm", version="0.0.34", author=[