From 54c050ac0570ea11b128c8c7e1504a57aea76529 Mon Sep 17 00:00:00 2001 From: Steve C Date: Sun, 10 Nov 2024 12:56:14 -0500 Subject: [PATCH] cleanup setup stuff (#42) --- pyproject.toml | 9 +++++++++ setup.py | 49 ------------------------------------------------- 2 files changed, 9 insertions(+), 49 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 4fd7f74..9a51820 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,15 @@ description = "A Python implementation of functionality used in https://neofood. readme = "README.md" requires-python = ">=3.9" dependencies = [] +classifiers=[ + "Programming Language :: Rust", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Typing :: Typed", +] [build-system] requires = ["maturin>=1.0,<2.0"] diff --git a/setup.py b/setup.py deleted file mode 100644 index a57155a..0000000 --- a/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -import re -from pathlib import Path - -from setuptools import setup -from setuptools_rust import Binding, RustExtension - -version = re.search( - r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', - Path("neofoodclub/__init__.py").read_text(), - re.MULTILINE, -) - -if not version: - raise RuntimeError("version is not set") -else: - version = version[1] - -packages = [ - "neofoodclub", -] - -package_data = { - "neofoodclub": ["py.typed", "neofoodclub.pyi"], -} - -setup( - name="neofoodclub.py", - author="diceroll123", - description="A Python implementation of functionality used in https://neofood.club", - license="MIT", - license_file="LICENSE", - url="https://github.com/diceroll123/neofoodclub.py", - version=version, - packages=packages, - package_data=package_data, - rust_extensions=[RustExtension("neofoodclub.neofoodclub", binding=Binding.PyO3)], - python_requires=">=3.9.0", - classifiers=[ - "Programming Language :: Rust", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Typing :: Typed", - ], - zip_safe=False, - include_package_data=True, -)