diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 0099675..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,10 +0,0 @@ -include src/mmh3/*.c -include src/mmh3/*.h -include src/mmh3/*.pyi -include src/mmh3/py.typed -include README.md -include LICENSE -include CHANGELOG.md -include pyproject.toml -include setup.py -include MANIFEST.in \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 89aaa41..52ffe0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools >= 61.0.0", "wheel"] +requires = ["setuptools >= 74.1.0", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -64,6 +64,11 @@ Repository = "https://github.com/hajimes/mmh3" Changelog = "https://github.com/hajimes/mmh3/blob/master/CHANGELOG.md" "Bug Tracker" = "https://github.com/hajimes/mmh3/issues" +[tool.setuptools] +ext-modules = [ + {name = "mmh3", sources=["./src/mmh3/mmh3module.c", "./src/mmh3/murmurhash3.c"]} +] + [tool.isort] profile = "black" src_paths = ["src/mmh3/__init__.pyi", "util", "tests", "benchmark", "docs"] @@ -82,4 +87,7 @@ ignore-paths = [ jobs = 0 # import-error: An error tricky to resolve, especially on super-linter. # wrong-import-order: Respect isort's import order. -disable = ["import-error", "wrong-import-order"] +disable = [ + "import-error", + "wrong-import-order" +] diff --git a/setup.py b/setup.py deleted file mode 100644 index acc60c7..0000000 --- a/setup.py +++ /dev/null @@ -1,12 +0,0 @@ -"""Setup script for the mmh3 package.""" - -from setuptools import Extension, setup - -mmh3module = Extension( - "mmh3", sources=["./src/mmh3/mmh3module.c", "./src/mmh3/murmurhash3.c"] -) - -setup( - ext_modules=[mmh3module], - package_data={"mmh3": ["./src/mmh3/py.typed", "./src/mmh3/**.pyi"]}, -)