From 56cbf5ff3bc8561ece8859560a8240aa27a47688 Mon Sep 17 00:00:00 2001 From: Alex Epstein Date: Mon, 28 Aug 2017 15:07:24 -0400 Subject: [PATCH] Fixing typo and making License a variable --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 01410e8..656130f 100644 --- a/setup.py +++ b/setup.py @@ -13,6 +13,7 @@ DESCRIPTION = 'My short description for my project. ' URL = 'https://github.com/me/myproject' EMAIL = 'me@example.com' AUTHOR = 'Awesome Soul' +LICENSE = "ISC" here = os.path.abspath(os.path.dirname(__file__)) @@ -20,7 +21,7 @@ here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = '\n' + f.read() -# Load the package's __version__.py module as a dictionary. +# Load the package's __version__.py module as a dictionary. about = {} with open(os.path.join(here, NAME, "__version__.py")) as f: exec(f.read(), about) @@ -41,7 +42,7 @@ required = [ # Where the magic happens: setup( - name=NAME', + name=NAME, version=about['__version__'], description=DESCRIPTION, long_description=long_description, @@ -54,7 +55,7 @@ setup( # }, install_requires=required, include_package_data=True, - license='ISC', + license=LICENSE, classifiers=[ 'License :: OSI Approved :: ISC License', 'Programming Language :: Python',