Skip to content

Commit

Permalink
Updated setup.py to include long_description
Browse files Browse the repository at this point in the history
pypi upload will fail if long description is missing. Also, the
content_type should also be mentioned.
  • Loading branch information
idling-mind committed Dec 3, 2023
1 parent d4742d0 commit f7a55f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions {{cookiecutter.project_shortname}}/setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import json
import os
from setuptools import setup
from pathlib import Path


here = Path(__file__).parent
with open('package.json') as f:
package = json.load(f)
long_description = (here / 'README.md').read_text()

package_name = package["name"].replace(" ", "_").replace("-", "_")

Expand All @@ -16,6 +17,8 @@
include_package_data=True,
license=package['license'],
description=package.get('description', package_name),
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[],
classifiers = [
'Framework :: Dash',
Expand Down

0 comments on commit f7a55f0

Please sign in to comment.