Skip to content

Commit

Permalink
Added CHANGELOG to PyPI public description
Browse files Browse the repository at this point in the history
  • Loading branch information
hasboeuf committed Aug 20, 2019
1 parent bbc7b51 commit 84a7470
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@

DEPENDENCIES = ["click", "halo", "packaging", "PyYAML>=5.1", "pyperclip", "requests", "requests-toolbelt", "tabulate"]

with open("README.md", "r") as fh:
long_description = fh.read()

def get_public_description():
with open("README.md", encoding="utf-8") as md_file:
package_description_content = md_file.read()
with open("CHANGELOG.md", encoding="utf-8") as md_file:
changelog_content = md_file.read()
return package_description_content + "\n\n" + changelog_content


setuptools.setup(
name=yogit.__application__,
Expand All @@ -16,7 +22,7 @@
author_email="[email protected]",
license="MIT",
description="Command line utility for GitHub daily work.",
long_description=long_description,
long_description=get_public_description(),
long_description_content_type="text/markdown",
keywords="git github utility branch pull requests",
url="https://github.com/hasboeuf/yogit",
Expand Down

0 comments on commit 84a7470

Please sign in to comment.