Skip to content

Commit

Permalink
Add metadata to shortfin Python package (#492)
Browse files Browse the repository at this point in the history
Similar to #489, this adds mertadata to the shortfin Python package but
does so by extending the `pyproject.toml` file instead of adding
metadata to the `setup.py` file.
  • Loading branch information
marbre authored Nov 13, 2024
1 parent 7bd3253 commit 9c5c8cc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shortfin/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# shortfin - SHARK C++ inference library
# shortfin - SHARK inference library and serving engine

## Simple User Installation

Expand Down
26 changes: 26 additions & 0 deletions shortfin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@ requires = [
]
build-backend = "setuptools.build_meta"

[project]
name = "shortfin"
authors = [
{name = "SHARK Authors"},
]
description = "SHARK inference library and serving engine"
readme = "README.md"
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.10"

# Version is set via the `setup.py`.
dynamic = ["version"]

[project.urls]
Repository = "https://github.com/nod-ai/SHARK-Platform"
Documentation = "https://shortfin.readthedocs.io/en/latest/"

[tool.pytest.ini_options]
addopts = [
"-ra",
Expand Down
3 changes: 0 additions & 3 deletions shortfin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,7 @@ def populate_built_package(abs_dir):
print(f"Found shortfin packages: {packages}")

setup(
name="shortfin",
version=f"{PACKAGE_VERSION}",
description="Shortfin native library implementation",
author="SHARK Authors",
packages=packages,
zip_safe=False,
package_dir=combine_dicts(
Expand Down

0 comments on commit 9c5c8cc

Please sign in to comment.