From 6267bcdbab3b25a6697b97c7b5d96a6a533b6896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torstein=20I=2E=20B=C3=B8?= Date: Thu, 4 Apr 2024 10:36:58 +0000 Subject: [PATCH] feat: add py.typed to packages --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++ RunFEEMSSim/RunFeemsSim/py.typed | 0 RunFEEMSSim/setup.py | 1 + machinery-system-structure/MachSysS/py.typed | 0 machinery-system-structure/setup.py | 1 + 5 files changed, 24 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 RunFEEMSSim/RunFeemsSim/py.typed create mode 100644 machinery-system-structure/MachSysS/py.typed diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..7cc41a0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:1-3.10-buster", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pip3 install --user -r requirements_dev.txt" + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/RunFEEMSSim/RunFeemsSim/py.typed b/RunFEEMSSim/RunFeemsSim/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/RunFEEMSSim/setup.py b/RunFEEMSSim/setup.py index 0ca45f2..dd48930 100644 --- a/RunFEEMSSim/setup.py +++ b/RunFEEMSSim/setup.py @@ -101,6 +101,7 @@ + (["License :: " + lic[1]] if lic[1] else []), url=cfg["git_url"], packages=setuptools.find_packages(), + package_data={cfg["lib_name"]: ["py.typed", "*.pyi", "**/*.pyi"]}, include_package_data=True, install_requires=requirements, extras_require={"dev": dev_requirements}, diff --git a/machinery-system-structure/MachSysS/py.typed b/machinery-system-structure/MachSysS/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/machinery-system-structure/setup.py b/machinery-system-structure/setup.py index 5aa2cd4..de90c2d 100644 --- a/machinery-system-structure/setup.py +++ b/machinery-system-structure/setup.py @@ -100,6 +100,7 @@ + (["License :: " + lic[1]] if lic[1] else []), url=cfg["git_url"], packages=setuptools.find_packages(), + package_data={cfg["lib_name"]: ["py.typed", "*.pyi", "**/*.pyi"]}, include_package_data=True, install_requires=requirements, extras_require={"dev": dev_requirements},