Skip to content

Commit

Permalink
Populate more metadata in compiler and runtime Python packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Nov 12, 2024
1 parent b133218 commit 5a2baba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions compiler/bindings/python/iree/compiler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# IREE Python Compiler API

This package provides an API for compiling IREE binaries from common input formats.
23 changes: 22 additions & 1 deletion compiler/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,20 @@ def find_git_submodule_revision(submodule_path):
)
print(f"Found compiler packages: {packages}")

with open(
os.path.join(
IREE_SOURCE_DIR,
"compiler",
"bindings",
"python",
"iree",
"compiler",
"README.md",
),
"rt",
) as f:
README = f.read()

custom_package_suffix = os.getenv("IREE_COMPILER_CUSTOM_PACKAGE_SUFFIX", "")
custom_package_prefix = os.getenv("IREE_COMPILER_CUSTOM_PACKAGE_PREFIX", "")

Expand All @@ -422,7 +436,9 @@ def find_git_submodule_revision(submodule_path):
version=f"{PACKAGE_VERSION}",
author="IREE Authors",
author_email="[email protected]",
description="IREE Compiler API",
description="IREE Python Compiler API",
long_description=README,
long_description_content_type="text/markdown",
long_description="",
license="Apache-2.0",
classifiers=[
Expand All @@ -435,6 +451,11 @@ def find_git_submodule_revision(submodule_path):
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
project_urls={
"homepage": "https://iree.dev/",
"repository": "https://github.com/iree-org/iree",
"documentation": "https://iree.dev/reference/bindings/python/",
},
ext_modules=[
CMakeExtension("iree.compiler._mlir_libs._mlir"),
CMakeExtension("iree.compiler._mlir_libs._ireeDialects"),
Expand Down
6 changes: 5 additions & 1 deletion runtime/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,11 @@ def populate_built_package(abs_dir):
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
url="https://github.com/iree-org/iree",
project_urls={
"homepage": "https://iree.dev/",
"repository": "https://github.com/iree-org/iree",
"documentation": "https://iree.dev/reference/bindings/python/",
},
python_requires=">=3.9",
ext_modules=(
[
Expand Down

0 comments on commit 5a2baba

Please sign in to comment.