Skip to content

Commit

Permalink
Load the README file verbatim, as utf-8 encoded text
Browse files Browse the repository at this point in the history
  • Loading branch information
florisla committed Aug 2, 2018
1 parent b656905 commit 8586a6f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import re
import io
import os
from setuptools import setup

description = 'Version-bump your software with a single command!'

long_description = re.sub(
"\`(.*)\<#.*\>\`\_",
r"\1",
str(open('README.md', 'rb').read()).replace(description, '')
)
# Import the README and use it as the long-description.
# This requires 'README.md' to be present in MANIFEST.in.
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()

setup(
name='bump2version',
Expand Down

0 comments on commit 8586a6f

Please sign in to comment.