From e248f570093e21cf9862a2149c183586551fa625 Mon Sep 17 00:00:00 2001 From: Neal Beeken Date: Tue, 2 Oct 2018 21:46:28 -0400 Subject: [PATCH] Add license --- LICENSE | 21 +++++++++++++++++++++ setup.py | 29 +++++++++++++++++++++++++---- 2 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f1e9454 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Neal Beeken + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/setup.py b/setup.py index e0d66d5..a8716a7 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,32 @@ """Setup for Dashmips.""" -from setuptools import setup +import sys +from setuptools import setup, find_packages +from os import path +from io import open + +here = path.abspath(path.dirname(__file__)) + +if sys.version_info.major <= 2: + sys.exit('Sorry, Python <= 2.7 is not supported') + +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() setup( name='dashmips', - version='0.0.1', - packages=['dashmips'], - long_description=open('README.md').read(), + version='0.0.2', + author='Neal Beeken', + packages=find_packages(), + description='Mips Interpreter', + long_description=long_description, + long_description_content_type='text/markdown', + classifiers=[ + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Education', + 'Topic :: Software Development :: Assemblers', + 'Programming Language :: Assembly', + 'License :: OSI Approved :: MIT License', + ], entry_points={ 'console_scripts': [ 'dashmips = dashmips.__main__:main',