Skip to content

Commit

Permalink
Add README back to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwmillr committed Jun 23, 2018
1 parent 9a1927a commit 34466d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -22,4 +22,4 @@
*.egg-info
__pycache__
dist
#README.rst
build
2 changes: 1 addition & 1 deletion lyricsgenius/__init__.py
Expand Up @@ -8,7 +8,7 @@
__url__ = 'https://github.com/johnwmillr/GeniusAPI'
__description__ = 'A Python wrapper around the Genius API'
__license__ = 'MIT'
__version__ = '0.6.1'
__version__ = '0.6.2'

import sys
assert sys.version_info[0] == 3, "LyricsGenius requires Python 3."
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Expand Up @@ -3,7 +3,7 @@
# See LICENSE for details.

import re
import os
from os import path
from setuptools import find_packages, setup

VERSIONFILE = "lyricsgenius/__init__.py"
Expand All @@ -17,9 +17,9 @@
raise RuntimeError(
"Unable to find version string in {}".format(VERSIONFILE))

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

requirements = []
with open('requirements.txt') as f:
Expand All @@ -29,6 +29,8 @@
name='lyricsgenius',
version=version,
description='Download lyrics and metadata from Genius.com',
long_description=long_description,
long_description_content_type='text/markdown/',
license="MIT",
author='John W. Miller',
author_email='john.w.millr@gmail.com',
Expand Down

0 comments on commit 34466d8

Please sign in to comment.