Skip to content

Commit 9a1201f

Browse files
committed
Add a stub-only package with typing to work around packaging issues.
1 parent 2cfe40b commit 9a1201f

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed
File renamed without changes.

py.typed

Whitespace-only changes.

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
url="https://github.com/tktech/can_ada",
1414
description="Ada is a fast spec-compliant url parser",
1515
license="MIT",
16+
packages=["can_ada-stubs"],
17+
package_data={"can_ada-stubs": ["__init__.pyi"]},
1618
ext_modules=[
1719
Pybind11Extension(
1820
"can_ada",
@@ -22,12 +24,6 @@
2224
cxx_std=17
2325
),
2426
],
25-
package_data={
26-
"can_ada": [
27-
"py.typed",
28-
"can_ada.pyi"
29-
]
30-
},
3127
extras_require={
3228
"test": [
3329
"pytest",

0 commit comments

Comments
 (0)