diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f91fc3d..b2e5de7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,7 @@ +1.0.3 +===== +* Added py.typed to the distribution so that the library can be used with mypy + 1.0.2 ===== * Moved from bitbucket to github diff --git a/setup.py b/setup.py index 4a0ed42..4128767 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='temppathlib', - version='1.0.2', + version='1.0.3', description='Wraps tempfile to give you pathlib.Path.', long_description=long_description, url='https://github.com/Parquery/temppathlib', @@ -36,4 +36,6 @@ 'dev': ['mypy==0.570', 'pylint==1.8.2', 'yapf==0.20.2', 'tox>=3.0.0'], 'test': ['tox>=3.0.0'] }, - py_modules=['temppathlib']) + py_modules=['temppathlib'], + package_data={"temppathlib": ["py.typed"]}, +) diff --git a/temppathlib/py.typed b/temppathlib/py.typed new file mode 100644 index 0000000..9724ed5 --- /dev/null +++ b/temppathlib/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. The mypy package uses inline types.