Clean up setup.py

- remove obsolete merging of LICENSING.rst in description as the
  include is not there anymore
- put setuptools configuration in pyproject.toml
- the setup_requires setting in setup.py is deprecated and is covered
  by pyproject.toml [build-system] - requires
pull/137/head
Robert de Vries 2026-06-28 21:09:33 +02:00
parent a59a4f8b96
commit 68c30d2dfa
2 changed files with 4 additions and 10 deletions

View File

@ -46,6 +46,9 @@ dev = [
"types-cffi",
]
[tool.setuptools.packages.find]
include = ["wolfcrypt", "wolfcrypt._ffi"]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [

View File

@ -23,7 +23,7 @@
import os
import re
import sys
from setuptools import setup, find_packages
from setuptools import setup
os.chdir(os.path.dirname(sys.argv[0]) or ".")
@ -47,20 +47,11 @@ else:
with open("README.rst") as readme_file:
long_description = readme_file.read()
with open("LICENSING.rst") as licensing_file:
long_description = long_description.replace(".. include:: LICENSING.rst\n",
licensing_file.read())
setup(
name="wolfcrypt",
version=verstr,
long_description=long_description,
long_description_content_type='text/x-rst',
packages=find_packages(),
setup_requires=["cffi>=1.17"],
cffi_modules=["./scripts/build_ffi.py:ffibuilder"],
package_data={"wolfcrypt": ["*.dll", "**/*.pyi", "py.typed"]},
)