From 690848732e5de3086b7a840d9a61193d93222ec9 Mon Sep 17 00:00:00 2001 From: Jhonatan Lopes <61277874+jhonatan-lopes@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:08:33 -0300 Subject: [PATCH] Update setup.py to ensure that py.typed appears in wheel (#703) Many thanks to @jhonatan-lopes for discovering, explaining, and fixing the issue. --- CHANGELOG.md | 6 ++++++ setup.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67edb74..6bdbde8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/setup.py b/setup.py index 0fc9c92..6edfcb8 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,9 @@ setup( "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,