sighingnow / libclang

(Unofficial) Release libclang (clang.cindex) on pypi.
https://pypi.org/project/libclang
Other
81 stars 21 forks source link

Stop packaging tests directory #18

Closed flying-sheep closed 2 years ago

flying-sheep commented 2 years ago

Your package installs a top level module called “tests” in addition to the clang module.

The problem is that tests contains an __init__.py and is therefore identified as package by this line:

https://github.com/sighingnow/libclang/blob/fb8656ea54f02f7676091b906402ebd49f9ea823/setup.py#L96

Please take steps to exclude it, thanks.

https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#using-find-or-find-packages

sighingnow commented 2 years ago

Thanks! I haven't noticed that yet. Will repack now.

flying-sheep commented 2 years ago

thank you!

sighingnow commented 2 years ago

thank you!

I have uploaded a new version to pypi, can be upgraded via

pip3 install -U libclang -i https://pypi.org/simple