Skip to content

Commit

Permalink
Add long description to setup.py (#1094)
Browse files Browse the repository at this point in the history
Summary:
Fixes #1088

### Changes

- Added the README.md as a long description in the `setup.py`
- Added `long_description_content_type` field

Co-Authored by:
Martin Achtner <martin.achtner@tngtech.com>
Jad Saliba <jad.saliba@tngtech.com>

Pull Request resolved: #1094

Reviewed By: NivekT

Differential Revision: D44166989

Pulled By: ejguan

fbshipit-source-id: 24fafc170a825372356aba8c3f086a360902b6c9
  • Loading branch information
MoritzThomasHuebner authored and NivekT committed Apr 19, 2023
1 parent 852aa2d commit 1d550e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def remove_extension(pattern):
name="torchdata",
version=VERSION,
description="Composable data loading modules for PyTorch",
long_description=Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
url="https://github.com/pytorch/data",
author="PyTorch Team",
author_email="packages@pytorch.org",
Expand All @@ -176,6 +178,7 @@ def remove_extension(pattern):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
Expand Down

0 comments on commit 1d550e9

Please sign in to comment.