diff --git a/HISTORY.md b/HISTORY.md index 4ef18fc..f4c77cf 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,8 @@ #Changes +## 1.5 +Fixed setup.py not reading README.md when published to pypi + ## 1.2.4 Added Decimals variable type diff --git a/setup.py b/setup.py index 9c13371..509f55e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup, find_packages +from pathlib import Path def parse_requirements(filename): @@ -6,10 +7,14 @@ def parse_requirements(filename): lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.startswith("#")] +parent_dir = Path(__file__).parent +long_description = (parent_dir / "README.md").read_text() setup( name='envs', description='Easy access of environment variables from Python with support for strings, booleans, list, tuples, and dicts.', + long_description=long_description, + long_description_content_type="text/markdown", url='https://github.com/bjinwright/envs', author='Brian Jinwright', license='Apache License 2.0',