From 22070678a0993b5e0401fc8f1c485c6f4cbb6ca4 Mon Sep 17 00:00:00 2001 From: gentlegiantJGC Date: Thu, 9 Nov 2023 13:04:20 +0000 Subject: [PATCH] Added stub files (#3) * Added stub files mypy needs stub files to work. Refactored to be a package and added stub files. * Bumped version --- MANIFEST.in | 2 +- setup.cfg | 7 +++++-- src/{runtime_final.py => runtime_final/__init__.py} | 2 +- src/runtime_final/__init__.pyi | 1 + src/runtime_final/py.typed | 0 5 files changed, 8 insertions(+), 4 deletions(-) rename src/{runtime_final.py => runtime_final/__init__.py} (99%) create mode 100644 src/runtime_final/__init__.pyi create mode 100644 src/runtime_final/py.typed diff --git a/MANIFEST.in b/MANIFEST.in index 150d74b..5a5cef0 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -graft src \ No newline at end of file +recursive-include src/runtime_final *.py *.pyi py.typed diff --git a/setup.cfg b/setup.cfg index 07f3852..2e054d0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,8 +28,11 @@ license = MIT [options] +python_requires = ~=3.6 package_dir= =src -py_modules = runtime_final -python_requires = ~=3.6 +packages = find: +include_package_data = True +[options.packages.find] +where=src diff --git a/src/runtime_final.py b/src/runtime_final/__init__.py similarity index 99% rename from src/runtime_final.py rename to src/runtime_final/__init__.py index a471eb5..455447d 100644 --- a/src/runtime_final.py +++ b/src/runtime_final/__init__.py @@ -31,7 +31,7 @@ import inspect from uuid import uuid4 -__version__ = "1.1.1" +__version__ = "1.1.2" __author__ = "gentlegiantJGC and I. Ahmad (izxxr)" __copyright__ = "Copyright (C) I. Ahmad 2022-2023 - Licensed under MIT." diff --git a/src/runtime_final/__init__.pyi b/src/runtime_final/__init__.pyi new file mode 100644 index 0000000..9faf5c2 --- /dev/null +++ b/src/runtime_final/__init__.pyi @@ -0,0 +1 @@ +from typing import final as final diff --git a/src/runtime_final/py.typed b/src/runtime_final/py.typed new file mode 100644 index 0000000..e69de29