Browse Source

use readme as long description

Fabian Peter Hammerle 4 years ago
parent
commit
3a0ebf4864
2 changed files with 7 additions and 0 deletions
  1. 3 0
      CHANGELOG.md
  2. 4 0
      setup.py

+ 3 - 0
CHANGELOG.md

@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### Added
+- package: use readme as long description
+
 ### Fixed
 - added missing timezone identifier to log message
 - removed module import from `setup.py`

+ 4 - 0
setup.py

@@ -1,3 +1,5 @@
+import pathlib
+
 import setuptools
 
 setuptools.setup(
@@ -5,6 +7,8 @@ setuptools.setup(
     use_scm_version=True,
     description="delete file with oldest modification date"
     " until a minimum of --free-bytes are available on disk",
+    long_description=pathlib.Path(__file__).parent.joinpath("README.md").read_text(),
+    long_description_content_type="text/markdown",
     author="Fabian Peter Hammerle",
     author_email="fabian@hammerle.me",
     url="https://github.com/fphammerle/free-disk",