-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
36 lines (34 loc) · 960 Bytes
/
setup.py
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
from setuptools import setup
from pybind11.setup_helpers import Pybind11Extension
__version__ = "1.3.0"
setup(
name="can_ada",
version=__version__,
author="Tyler Kennedy",
author_email="[email protected]",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
url="https://github.com/tktech/can_ada",
description="Ada is a fast spec-compliant url parser",
license="MIT",
packages=["can_ada-stubs"],
package_data={"can_ada-stubs": ["__init__.pyi"]},
ext_modules=[
Pybind11Extension(
"can_ada",
sorted(["src/binding.cpp", "src/ada.cpp"]),
define_macros=[("VERSION_INFO", __version__)],
language='c++',
cxx_std=17
),
],
extras_require={
"test": [
"pytest",
"pytest-benchmark",
"ada_url",
]
},
zip_safe=False,
python_requires=">=3.7",
)