Skip to content

Commit

Permalink
Merge pull request #162 from openculinary/packaging/pypi-description
Browse files Browse the repository at this point in the history
Bundle README.rst as long-form package description
  • Loading branch information
lopuhin committed Dec 14, 2020
2 parents 46d12db + 2c8f550 commit 8b8b66b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
import os


def get_readme():
path = os.path.join(
os.path.dirname(__file__), 'README.rst')
with open(path) as f:
return f.read().strip()


def get_version():
path = os.path.join(
os.path.dirname(__file__), 'extruct', 'VERSION')
Expand All @@ -16,6 +23,8 @@ def get_version():
name='extruct',
version=get_version(),
description='Extract embedded metadata from HTML markup',
long_description=get_readme(),
long_description_content_type='text/x-rst',
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
Expand Down

0 comments on commit 8b8b66b

Please sign in to comment.