Skip to content

Commit 2123413

Browse files
committed
Support PEP-561 py.typed
Acoording to the mentioned PEP: "Package maintainers who wish to support type checking of their code MUST add a marker file named py.typed to their package supporting typing." Add package_data to setup.cfg to include this marker in dist and whl file.
1 parent b0f854d commit 2123413

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

setup.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
#
2+
# Metadata for setup.py
3+
#
4+
# See https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
5+
16
[metadata]
27
name = semver
38
version = attr: semver.__about__.__version__
49
description = attr: semver.__about__.__description__
510
long_description = file: README.rst
11+
long_description_content_type = text/x-rst
612
author = attr: semver.__about__.__author__
713
author_email = attr: semver.__about__.__author_email__
814
maintainer = attr: semver.__about__.__maintainer__
@@ -41,6 +47,9 @@ console_scripts =
4147
[options.packages.find]
4248
where = src
4349

50+
[options.package_data]
51+
semver = py.typed
52+
4453
[tool:pytest]
4554
norecursedirs = .git build .env/ env/ .pyenv/ .tmp/ .eggs/ venv/
4655
testpaths = tests docs

src/semver/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)