Skip to content

Commit

Permalink
Update setup.py to ensure that py.typed appears in wheel (#703)
Browse files Browse the repository at this point in the history
Many thanks to @jhonatan-lopes for discovering, explaining, and fixing the issue.
  • Loading branch information
jhonatan-lopes authored Aug 5, 2022
1 parent 446abb7 commit 6908487
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [Unreleased]

## Fixed

- `py.typed` file not included in Pypi distribution. Fixed with adding mypy compatibility.

## [0.7.4] - 2022-07-19

### Added
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def _open(subpath):
"test",
]
),
include_package_data=True,
package_data={"pdfplumber": ["py.typed"]},
zip_safe=False,
tests_require=base_reqs + dev_reqs,
python_requires=">=3.7",
install_requires=base_reqs,
Expand Down

0 comments on commit 6908487

Please sign in to comment.