From 961feb44f5f911d9f90a21a470d2850a5a059604 Mon Sep 17 00:00:00 2001 From: Florian Fervers Date: Fri, 11 Oct 2024 10:05:39 +0200 Subject: [PATCH] Replace setup.py -> pyproject.toml --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ setup.py | 37 ------------------------------------- 2 files changed, 36 insertions(+), 37 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7161e96 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "einx" +version = "0.3.0" +requires-python = ">=3.8" +authors = [ + { name="Florian Fervers", email="florian.fervers@gmail.com" }, +] +description = "Universal Tensor Operations in Einstein-Inspired Notation for Python" +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", +] +license = {file = "LICENSE"} +readme = "README.md" + +dependencies = [ + "numpy", + "sympy", + "frozendict", +] + +[project.optional-dependencies] +torch = ["torch>=2"] +keras = ["keras>=3"] +mlx = ["mlx>=0.16.1"] + +[project.urls] +Homepage = "https://github.com/fferflo/einx" +Source = "https://github.com/fferflo/einx" +Documentation = "https://einx.readthedocs.io/en/stable" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 7cf4146..0000000 --- a/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python3 - -from setuptools import setup, find_packages - -with open("README.md") as f: - long_description = f.read() - -setup( - name="einx", - version="0.3.0", - python_requires=">=3.8", - description="Universal Tensor Operations in Einstein-Inspired Notation for Python", - long_description=long_description, - long_description_content_type="text/markdown", - author="Florian Fervers", - author_email="florian.fervers@gmail.com", - url="https://github.com/fferflo/einx", - packages=find_packages(), - license="MIT", - include_package_data=True, - install_requires=[ - "numpy", - "sympy", - "frozendict", - ], - extras_require={ - "torch": ["torch>=2"], - "keras": ["keras>=3"], - "mlx": ["mlx>=0.16.1"], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3", - ], -)