From 754c05b8fb83b9032502fa00c11dd1c3d87baaf9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 16 May 2023 15:54:17 -0700 Subject: [PATCH] Convert to setuptools pacakge. The normal python package structure and setuptools package are required for py.typed to be seen by importers, which is needed for callers to type check use of gdbrunner. Bug: None Test: ndk-gdb --help && gdbclient --help Change-Id: I9a6d65595f9572275e31f08b3678c300a78275d5 --- .../gdbrunner/{ => gdbrunner}/__init__.py | 0 python-packages/gdbrunner/setup.py | 30 +++++++++++++++++++ 2 files changed, 30 insertions(+) rename python-packages/gdbrunner/{ => gdbrunner}/__init__.py (100%) create mode 100644 python-packages/gdbrunner/setup.py diff --git a/python-packages/gdbrunner/__init__.py b/python-packages/gdbrunner/gdbrunner/__init__.py similarity index 100% rename from python-packages/gdbrunner/__init__.py rename to python-packages/gdbrunner/gdbrunner/__init__.py diff --git a/python-packages/gdbrunner/setup.py b/python-packages/gdbrunner/setup.py new file mode 100644 index 000000000..6521cc5c9 --- /dev/null +++ b/python-packages/gdbrunner/setup.py @@ -0,0 +1,30 @@ +# +# Copyright (C) 2023 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from setuptools import setup + + +setup( + name='gdbrunner', + version='0.0.1', + description='Common helpers of ndk-gdb and gdbclient.', + license='Apache 2.0', + packages=['gdbrunner'], + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + ] +)