-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate more metadata in compiler and runtime Python packages.
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", "") | ||
|
||
|
@@ -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=[ | ||
|
@@ -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"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters