changeset 50:edf5c85de5ac

put pyi next to so for mypy to pick it up, directly
author Tassilo Philipp
date Sat, 14 Nov 2020 21:18:09 +0100
parents d6670bd553dd
children 03b6934cdd63
files python/pydc/README.txt python/pydc/pydc-stubs/__init__.py python/pydc/pydc-stubs/pydc.pyi python/pydc/pydc.pyi python/pydc/setup.py
diffstat 4 files changed, 19 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/python/pydc/README.txt	Fri Nov 13 20:44:00 2020 +0100
+++ b/python/pydc/README.txt	Sat Nov 14 21:18:09 2020 +0100
@@ -123,6 +123,9 @@
 ====
 
 - callback support
+- pydoc "man page"
+- stub location: the pydc-stubs folder isn't picked up by mypy, so I question why this is the suggested way
+- get into freebsd ports
 
 
 BUGS
--- a/python/pydc/pydc-stubs/pydc.pyi	Fri Nov 13 20:44:00 2020 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-import sys
-from typing import Optional, Any, TypeVar
-
-# Handle type, depending on python version this is either internal type
-# PyCObject or PyCapsule, neither of one can be used as annotation
-H = TypeVar('H')
-
-def load(libpath: Optional[str]) -> H: ...
-def find(libhandle: H, symbol: str) -> H: ...
-def free(libhandle: H) -> None: ...
-def get_path(libhandle: Optional[H]) -> str: ...
-def call(funcptr: H, signature: str, *arguments: Any) -> Any: ...
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/pydc/pydc.pyi	Sat Nov 14 21:18:09 2020 +0100
@@ -0,0 +1,13 @@
+import sys
+from typing import Optional, Any, TypeVar
+
+# Handle type, depending on python version this is either internal type
+# PyCObject or PyCapsule, neither of one can be used as annotation
+H = TypeVar('H')
+
+def load(libpath: Optional[str]) -> H: ...
+def find(libhandle: H, symbol: str) -> H: ...
+def free(libhandle: H) -> None: ...
+def get_path(libhandle: Optional[H]) -> str: ...
+def call(funcptr: H, signature: str, *arguments: Any) -> Any: ...
+
--- a/python/pydc/setup.py	Fri Nov 13 20:44:00 2020 +0100
+++ b/python/pydc/setup.py	Sat Nov 14 21:18:09 2020 +0100
@@ -7,7 +7,7 @@
 
 setup(
   name             = 'pydc'
-, version          = '1.1.5'
+, version          = '1.1.6'
 , author           = 'Daniel Adler, Tassilo Philipp'
 , author_email     = 'dadler@dyncall.org, tphilip@dyncall.org'
 , maintainer       = 'Daniel Adler, Tassilo Philipp'
@@ -23,7 +23,7 @@
 library allowing to call arbitrary C library functions dynamically,
 based on a single call kernel (so no interface generation used/required)
 '''
-, package_data     = {"pydc-stubs": ['pydc.pyi']}
-, packages         = ["pydc-stubs"]
+, package_data     = {'': ['pydc.pyi']}
+, packages         = ['']
 )