You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both "Source Distribution" (strongtyping-3.11.1.tar.gz) and "Built Distribution" (strongtyping-3.11.1-py3-none-any.whl) do not include any strongtyping-stubs/**/*.pyi files. Thus, no type hints when installing from PyPI.
This issue appears to be related to setuptools. Adding package_data param to setup() function seems to solve it:
It looks like 3.11.3 still does not have strongtyping-stubs/**/*.pyi 😅
In your last commit strongtyping-stubs/__init__.py has been deleted. Therefore find_packages() no longer recognises it as a package.
Can be fixed with the following setup (notice packages and package_data param changes):
setup(
name="strongtyping",
version="3.11.3",
description="Decorator which checks whether the function is called with the correct type of parameters",
long_description=README,
long_description_content_type="text/markdown",
url="https://strongtyping.readthedocs.io/en/latest/",
author="FelixTheC",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
],
packages=packages+ ["strongtyping-stubs"],
package_data={"strongtyping-stubs": ["**/*.pyi"]},
python_requires=">=3.11",
include_package_data=True,
)
Both "Source Distribution" (strongtyping-3.11.1.tar.gz) and "Built Distribution" (strongtyping-3.11.1-py3-none-any.whl) do not include any
strongtyping-stubs/**/*.pyi
files. Thus, no type hints when installing from PyPI.This issue appears to be related to
setuptools
. Addingpackage_data
param tosetup()
function seems to solve it:The text was updated successfully, but these errors were encountered: