Skip to content

Commit

Permalink
Comply with PEP 561 -- Distributing and Packaging Type Information
Browse files Browse the repository at this point in the history
  • Loading branch information
Jing Wang committed Jan 4, 2020
1 parent cd7c708 commit ea12008
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions pyhdfs/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.python.org/dev/peps/pep-0561/
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs.py')) as py:
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+?)'", py.read())
assert version_match
version = version_match.group(1)
Expand All @@ -22,7 +22,7 @@
author="Jing Wang",
author_email="[email protected]",
license="MIT License",
py_modules=['pyhdfs'],
packages=['pyhdfs'],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
Expand All @@ -39,5 +39,6 @@
tests_require=tests_require,
package_data={
'': ['*.rst'],
'pyhdfs': ['py.typed']
},
)

0 comments on commit ea12008

Please sign in to comment.