aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-11-11 22:16:29 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2021-11-12 15:58:23 +1100
commit1cc41b1c969f1fa5090b166397e4bab4ab1aa449 (patch)
tree0f1a25946a8143ec813dd987098855cb8a9bfb97 /setup.py
parentdb72398cd4371324901e8ff54980543e0139c1b9 (diff)
downloaddtc-1cc41b1c969f1fa5090b166397e4bab4ab1aa449.zip
dtc-1cc41b1c969f1fa5090b166397e4bab4ab1aa449.tar.gz
dtc-1cc41b1c969f1fa5090b166397e4bab4ab1aa449.tar.bz2
pylibfdt: Add packaging metadata
PyPI expects to have various package metadata including long description, license, and classifiers. Add them. Signed-off-by: Rob Herring <robh@kernel.org> Message-Id: <20211112041633.741598-3-robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 0a0daf1..00444e6 100755
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,9 @@ import sys
srcdir = os.path.dirname(__file__)
+with open("README", "r") as fh:
+ long_description = fh.read()
+
def get_top_builddir():
if '--top-builddir' in sys.argv:
index = sys.argv.index('--top-builddir')
@@ -49,4 +52,18 @@ setup(
ext_modules=[libfdt_module],
package_dir={'': os.path.join(srcdir, 'pylibfdt')},
py_modules=['libfdt'],
+
+ long_description=long_description,
+ long_description_content_type="text/plain",
+ url="https://git.kernel.org/pub/scm/utils/dtc/dtc.git",
+ license="BSD",
+ license_files=["GPL", "BSD-2-Clause"],
+
+ classifiers=[
+ "Programming Language :: Python :: 3",
+ "License :: OSI Approved :: BSD License",
+ "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
+ "Operating System :: OS Independent",
+ ],
+
)