Skip to content

Commit

Permalink
Add long description when publish pypi (microsoft#317)
Browse files Browse the repository at this point in the history
# Description

Add long description when publish pypi.

# All Promptflow Contribution checklist:
- [x] **The pull request does not introduce [breaking changes]**
- [x] **CHANGELOG is updated for new features, bug fixes or other
significant changes.**
- [x] **I have read the [contribution guidelines](../CONTRIBUTING.md).**

## General Guidelines and Best Practices
- [x] Title of the pull request is clear and informative.
- [x] There are a small number of commits, each of which have an
informative message. This means that previously merged commits do not
appear in the history of the PR. For more information on cleaning up the
commits in your PR, [see this
page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md).

Co-authored-by: cs_lucky <[email protected]>
  • Loading branch information
chenslucky and cs_lucky authored Sep 6, 2023
1 parent 6fba739 commit 0cf7826
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/promptflow-tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ def parse_requirements(file_name: str) -> List[str]:
if not version:
raise RuntimeError("Cannot find version information")

with open("README.md", encoding="utf-8") as f:
readme = f.read()

setup(
name=PACKAGE_NAME,
version=version,
description="Prompt flow built-in tools",
long_description_content_type="text/markdown",
long_description=readme,
author="Microsoft Corporation",
classifiers=[
"Programming Language :: Python :: 3",
Expand All @@ -42,4 +47,8 @@ def parse_requirements(file_name: str) -> List[str]:
"package_tools": ["builtins = promptflow.tools.list:list_package_tools"],
},
include_package_data=True,
project_urls={
"Bug Reports": "https://github.com/microsoft/promptflow/issues",
"Source": "https://github.com/microsoft/promptflow",
},
)

0 comments on commit 0cf7826

Please sign in to comment.