Skip to content

Commit 954f266

Browse files
added py.typed to make it mypy compliant
1 parent 07ecc7c commit 954f266

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.0.3
2+
=====
3+
* Added py.typed to the distribution so that the library can be used with mypy
4+
15
1.0.2
26
=====
37
* Moved from bitbucket to github

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='temppathlib',
20-
version='1.0.2',
20+
version='1.0.3',
2121
description='Wraps tempfile to give you pathlib.Path.',
2222
long_description=long_description,
2323
url='https://github.com/Parquery/temppathlib',
@@ -36,4 +36,6 @@
3636
'dev': ['mypy==0.570', 'pylint==1.8.2', 'yapf==0.20.2', 'tox>=3.0.0'],
3737
'test': ['tox>=3.0.0']
3838
},
39-
py_modules=['temppathlib'])
39+
py_modules=['temppathlib'],
40+
package_data={"temppathlib": ["py.typed"]},
41+
)

temppathlib/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Marker file for PEP 561. The mypy package uses inline types.

0 commit comments

Comments
 (0)