[build-system] requires = [ "setuptools>=77", # 3.1 is the first release that honours the freethreading_compatible # directive in extinction.pyx; earlier versions silently ignore it and # emit a module that re-enables the GIL on free-threaded interpreters. "Cython>=3.1", "numpy>=2", ] build-backend = "setuptools.build_meta" [project] name = "extinction" description = "Fast interstellar dust extinction laws" readme = "README.md" license = "MIT" license-files = ["LICENSE"] authors = [{ name = "Kyle Barbary", email = "kylebarbary@gmail.com" }] requires-python = ">=3.9" # Wheels are built against numpy 2, which stays ABI compatible back to 1.19.3. dependencies = ["numpy>=1.19.3"] dynamic = ["version"] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "Programming Language :: Python :: 3", "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", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", "Programming Language :: Python :: Free Threading :: 3 - Stable", "Topic :: Scientific/Engineering :: Astronomy", ] [project.urls] Homepage = "https://github.com/sncosmo/extinction" Documentation = "https://extinction.readthedocs.io" Source = "https://github.com/sncosmo/extinction" [tool.setuptools] package-dir = { "" = "src" } [tool.setuptools.packages.find] where = ["src"] # PEP 561 marker and stubs for the compiled module. [tool.setuptools.package-data] extinction = ["py.typed", "*.pyi"] # The Cython source and its generated C belong in the sdist, not in binary # wheels; now that they live inside the package directory, MANIFEST.in would # otherwise pull them in. [tool.setuptools.exclude-package-data] extinction = ["*.pyx", "*.c"] [tool.pytest.ini_options] testpaths = ["tests"] [tool.cibuildwheel] test-requires = "pytest" test-command = "pytest {project}/tests"