From a4a2e7cf61ca27b6b1d76bbec6ffb77f034e8f8c Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 24 May 2024 15:10:28 +0300 Subject: [PATCH 1/2] fix installation requirements --- pyproject.toml | 37 +++++++++++++++++++++++++++++++++++++ setup.py | 19 ------------------- 2 files changed, 37 insertions(+), 19 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..ae8b122 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools", "torch", "ninja", "packaging"] + +[tool.setuptools.packages.find] +exclude = [ + "build", + "csrc", + "include", + "tests", + "dist", + "docs", + "benchmarks", + "fast_hadamard_transform.egg-info", +] + +[project] +name = "fast_hadamard_transform" +version = 1.0.5 +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: BSD License", + "Operating System :: Unix", +] +authors = [ + { name="Tri Dao", email="tri@tridao.me" }, +] +readme = "README.md" +description = "Fast Hadamard Transform in CUDA, with a PyTorch interface" +requires-python = ">=3.7" +dependencies = [ + "torch", + "scipy" +] + +[project.urls] +Homepage = "https://github.com/Dao-AILab/fast-hadamard-transform" +Issues = "https://github.com/Dao-AILab/fast-hadamard-transform/issues" diff --git a/setup.py b/setup.py index b41fc6b..6d908ef 100644 --- a/setup.py +++ b/setup.py @@ -222,8 +222,6 @@ def run(self): setup( - name=PACKAGE_NAME, - version=get_package_version(), packages=find_packages( exclude=( "build", @@ -236,27 +234,10 @@ def run(self): "fast_hadamard_transform.egg-info", ) ), - author="Tri Dao", - author_email="tri@tridao.me", - description="Fast Hadamard Transform in CUDA, with a PyTorch interface", - long_description=long_description, - long_description_content_type="text/markdown", - url="https://github.com/Dao-AILab/fast-hadamard-transform", - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: BSD License", - "Operating System :: Unix", - ], ext_modules=ext_modules, cmdclass={"bdist_wheel": CachedWheelsCommand, "build_ext": BuildExtension} if ext_modules else { "bdist_wheel": CachedWheelsCommand, }, - python_requires=">=3.7", - install_requires=[ - "torch", - "packaging", - "ninja", - ], ) From 8a652eb07b6477233ecc5e28e49e406dd0985d9e Mon Sep 17 00:00:00 2001 From: osbm Date: Fri, 24 May 2024 15:19:44 +0300 Subject: [PATCH 2/2] fix small errors --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ae8b122..69dcff0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "torch", "ninja", "packaging"] +requires = ["setuptools", "torch", "ninja", "packaging", "wheel"] [tool.setuptools.packages.find] exclude = [ @@ -15,7 +15,7 @@ exclude = [ [project] name = "fast_hadamard_transform" -version = 1.0.5 +version = "1.0.5" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: BSD License",