From d3a4a3c91601c8d1aff567ee1642c4bb907143a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 30 Jan 2022 10:42:26 +0100 Subject: [PATCH] TYP: add py.typed marker file to improve downstream type-checking --- CHANGELOG.md | 5 +++++ README.md | 2 +- inifix/__init__.py | 2 +- inifix/py.typed | 0 setup.cfg | 6 +++++- setup.py | 1 - 6 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 inifix/py.typed diff --git a/CHANGELOG.md b/CHANGELOG.md index 89d20910..1c63b803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.2] - 2022-01-30 + +TYP: add py.typed marker file to improve downstream type-checking +[PR #94](https://github.com/neutrinoceros/inifix/pull/94) + ## [1.0.1] - 2022-01-30 TYP: improve type-correctness [PR #93](https://github.com/neutrinoceros/inifix/pull/93) diff --git a/README.md b/README.md index 5032c6ba..46e5379a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # `inifix` [![PyPI](https://img.shields.io/pypi/v/inifix.svg?logo=pypi&logoColor=white&label=PyPI)](https://pypi.org/project/inifix/) -[![PyPI](https://img.shields.io/pypi/pyversions/inifix/1.0.1?logo=python&logoColor=white&label=Python)](https://pypi.org/project/inifix/) +[![PyPI](https://img.shields.io/pypi/pyversions/inifix/1.0.2?logo=python&logoColor=white&label=Python)](https://pypi.org/project/inifix/) [![codecov](https://codecov.io/gh/neutrinoceros/inifix/branch/main/graph/badge.svg)](https://codecov.io/gh/neutrinoceros/inifix) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/neutrinoceros/inifix/main.svg)](https://results.pre-commit.ci/badge/github/neutrinoceros/inifix/main.svg) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) diff --git a/inifix/__init__.py b/inifix/__init__.py index 820b0b07..7e6b3f3c 100644 --- a/inifix/__init__.py +++ b/inifix/__init__.py @@ -2,4 +2,4 @@ from .io import load from .validation import validate_inifile_schema -__version__ = "1.0.1" +__version__ = "1.0.2" diff --git a/inifix/py.typed b/inifix/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/setup.cfg b/setup.cfg index 40ef5fbf..db0f7b50 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = inifix -version = 1.0.1 +version = 1.0.2 description = I/O facility for Idefix/Pluto configuration files long_description = file: README.md long_description_content_type = text/markdown @@ -40,6 +40,10 @@ dev = typecheck = mypy==0.931 +[options.package_data] +inifix = + py.typed + [flake8] exclude = *__init__.py ignore = E203, E501, W503 diff --git a/setup.py b/setup.py index 36f7fe77..60684932 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 from setuptools import setup setup()