Skip to content

Commit 197a31a

Browse files
committed
fix: read pyproject setup from setup.py
1 parent 34b667e commit 197a31a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from pathlib import Path
3333

3434
from pybind11.setup_helpers import Pybind11Extension, build_ext
35-
from setuptools import setup
35+
from setuptools import find_packages, setup
3636

3737
try:
3838
import tomllib
@@ -104,6 +104,15 @@ def find_sources(path):
104104

105105
setup(
106106
name=package_name,
107+
version=pyproject["project"]["version"],
108+
description=pyproject["project"]["description"],
109+
url=pyproject["project"]["urls"]["Homepage"],
110+
author_email=pyproject["project"]["authors"][0]["email"],
111+
packages=find_packages(exclude=("tests",)),
112+
python_requires=pyproject["project"]["requires-python"],
113+
install_requires=pyproject["project"]["dependencies"],
114+
license=pyproject["project"]["license"],
115+
classifiers=pyproject["project"]["classifiers"],
107116
ext_modules=get_extensions(),
108117
cmdclass={"build_ext": build_ext},
109118
)

0 commit comments

Comments
 (0)