Skip to content

Commit

Permalink
Fix setup for doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdouglas committed Feb 23, 2024
1 parent 7bdc6e5 commit 11142a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies = [

[project.optional-dependencies]
benchmark = ["pandas", "matplotlib"]
docs = ["hf-doc-builder"]
docs = ["hf-doc-builder", "black"]
dev = [
"bitsandbytes[test]",
"build",
Expand All @@ -70,9 +70,11 @@ docs = "https://huggingface.co/docs/bitsandbytes/main"
issues = "https://github.com/TimDettmers/bitsandbytes/issues"

[tool.setuptools]
packages = ["bitsandbytes"]
package-data = { "*" = ["libbitsandbytes*.*"] }

[tool.setuptools.dynamic]
version = {attr = "bitsandbytes.__version__"}

[tool.ruff]
src = [
"bitsandbytes",
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from setuptools import setup
from setuptools import find_packages, setup
from setuptools.dist import Distribution


Expand All @@ -13,5 +13,6 @@ def has_ext_modules(self):

setup(
version="0.43.0.dev0",
distclass=BinaryDistribution,
packages=find_packages(),
distclass=BinaryDistribution
)

0 comments on commit 11142a3

Please sign in to comment.