1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
[metadata]
name = mymath
description = Example to show how to use cmake-build-extension with CMake, SWIG and NumPy.
long_description = file: README.md
long_description_content_type = text/markdown
author = Diego Ferigo
author_email = dgferigo@gmail.com
license = MIT
platforms = any
url = https://github.com/diegoferigo/cmake-build-extension/tree/master/example
project_urls =
Source = https://github.com/diegoferigo/cmake-build-extension/tree/master/examples/swig
Tracker = https://github.com/diegoferigo/cmake-build-extension/issues
keywords = setuptools extension cpp cmake build package pypi bindings swig pybind11
classifiers =
[options]
zip_safe = False
packages = find:
package_dir =
=src
python_requires = >=3.6
install_requires =
numpy
# This requirement is only necessary if the build_extension_env
# context manager is used in the top-level __init__.py
cmake-build-extension
[options.packages.find]
where = src
[options.extras_require]
test =
pytest
pytest-icdiff
all =
%(test)s
# This also requires using the "expose_binaries" option in setup.py.
# It creates a generic <package>.bin.__main__ file that is exposed
# as <env>/bin/<executable_name> that relays all input arguments to
# the C++ executable.
[options.entry_points]
console_scripts =
print_answer_swig = mymath_swig.bin.__main__:main
print_answer_pybind11 = mymath_pybind11.bin.__main__:main
[tool:pytest]
addopts = -rsxX -v
testpaths = tests
|