Skip to content

Commit

Permalink
setup.py: include long_description (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored May 10, 2018
1 parent 6e703b6 commit 669c533
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion covimerage/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.5dev1'
__version__ = '0.0.5.dev1'
33 changes: 12 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,23 @@
# Note: To use the 'upload' functionality of this file, you must:
# $ pip install twine

# import io
import os
from shutil import rmtree
import sys

from setuptools import Command, setup

# Package meta-data.
NAME = 'covimerage'
DESCRIPTION = 'Generate coverage information for Vim scripts.'
URL = 'https://github.com/Vimjas/covimerage'
# EMAIL = '[email protected]'
AUTHOR = 'Daniel Hahler'

here = os.path.abspath(os.path.dirname(__file__))

# Import the README and use it as the long-description.
# Note: this will only work if 'README.rst' is present in your MANIFEST.in
# file!
# with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
# long_description = '\n' + f.read()

def read(fname):
with open(fname) as f:
return f.read()


# Load the package's __version__.py module as a dictionary.
about = {}
with open(os.path.join(here, NAME, '__version__.py')) as f:
with open(os.path.join(here, 'covimerage', '__version__.py')) as f:
exec(f.read(), about)


Expand Down Expand Up @@ -78,15 +70,14 @@ def run(self):
'pytest-mock',
]

# Where the magic happens:
setup(
name=NAME,
name='covimerage',
version=about['__version__'],
description=DESCRIPTION,
# long_description=long_description,
author=AUTHOR,
# author_email=EMAIL,
url=URL,
description='Generate coverage information for Vim scripts.',
long_description=read('README.md'),
author='Daniel Hahler',
author_email='https://daniel.hahler.de/',
url='https://github.com/Vimjas/covimerage',
packages=['covimerage'],
entry_points={
'console_scripts': ['covimerage=covimerage.cli:main'],
Expand Down

0 comments on commit 669c533

Please sign in to comment.