Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius2342 committed Mar 5, 2020
1 parent 8920af3 commit 476a3a0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Module for setting up PyVLX pypi object."""
import io
import os
from os import path

from setuptools import find_packages, setup

Expand All @@ -12,10 +12,14 @@

VERSION = '0.2.13'

from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as f:
long_description = f.read()

def get_long_description():
"""Read long description from README.md."""
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md')) as readme:
long_description = readme.read()
return long_description


setup(
name='pyvlx',
Expand All @@ -25,7 +29,7 @@
url='https://github.com/Julius2342/pyvlx',

description="PyVLX is a wrapper for the Velux KLF 200 API. PyVLX enables you to run scenes and or open and close velux windows.",
long_description=long_description,
long_description=get_long_description(),
long_description_content_type='text/markdown',
author='Julius Mittenzwei',
author_email='julius@mittenzwei.com',
Expand Down

0 comments on commit 476a3a0

Please sign in to comment.