Skip to content

Commit e6bd2de

Browse files
committed
Add py.typed marker for PEP 561
- include in dist package Signed-off-by: mimir-d <[email protected]>
1 parent 4f7f9fd commit e6bd2de

File tree

8 files changed

+11
-0
lines changed

8 files changed

+11
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,7 @@ name = "ocptv"
6464
version = "0.1.6"
6565
description = "OCP Test & Validation project api"
6666
authors = ["OCP Test & Validation <[email protected]>"]
67+
68+
[tool.setuptools.package-data]
69+
"*" = ["py.typed"]
70+

src/ocptv/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
22
The OCP Test & Validation python api for the output of spec compliant JSON.
33
"""
4+
45
__version__ = "0.1.6"
56
__author__ = "OCP Test & Validation"

src/ocptv/output/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains output channel configuration for the OCPTV library.
33
"""
4+
45
import threading
56
import typing as ty
67
from abc import ABC, abstractmethod

src/ocptv/output/emit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module covers the raw output semantics of the OCPTV library.
33
"""
4+
45
import dataclasses as dc
56
import json
67
import threading

src/ocptv/output/objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
says what the serializer should use for field name.
1212
In general, ``metadata.spec_field`` should only be present for primitive types.
1313
"""
14+
1415
import dataclasses as dc
1516
import typing as ty
1617
from enum import Enum

src/ocptv/output/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module describes the high level test run and related objects.
33
"""
4+
45
import sys
56
import threading
67
import typing as ty

src/ocptv/output/step.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module describes the test steps inside the test run.
33
"""
4+
45
import threading
56
import typing as ty
67
from contextlib import contextmanager

src/ocptv/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Marker file for PEP 561. This package uses inline types.

0 commit comments

Comments
 (0)