From cac839f04a537ff2dcc716ad98a7acfd035404a1 Mon Sep 17 00:00:00 2001 From: Jason Lawrence Date: Tue, 27 Aug 2019 14:45:45 -0500 Subject: [PATCH] Simplify packaging --- plexauth/__init__.py => plexauth.py | 0 setup.py | 18 +++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) rename plexauth/__init__.py => plexauth.py (100%) diff --git a/plexauth/__init__.py b/plexauth.py similarity index 100% rename from plexauth/__init__.py rename to plexauth.py diff --git a/setup.py b/setup.py index 123e846..ee1985e 100644 --- a/setup.py +++ b/setup.py @@ -1,24 +1,28 @@ -import os from setuptools import setup -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() +with open('README.md') as f: + long_description = f.read() + +VERSION="0.0.1" setup( name='plexauth', - version='0.0.1', + version=VERSION, description='Handles the authorization flow to obtain tokens from Plex.tv via external redirection.', - long_description=read('README.md'), + long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/jjlawren/python-plexauth/', license='MIT', author='Jason Lawrence', author_email='jjlawren@users.noreply.github.com', - packages=['plexauth'], + platforms='any', + py_modules=['plexauth'], install_requires=['aiohttp'], classifiers=[ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ] )