Skip to content

Commit

Permalink
initial commit with code from Peter Norvig
Browse files Browse the repository at this point in the history
  • Loading branch information
barrust committed Feb 24, 2018
1 parent b411507 commit 6f73c84
Show file tree
Hide file tree
Showing 6 changed files with 128,572 additions and 0 deletions.
47 changes: 47 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
''' Module Installation script '''
from setuptools import (setup, find_packages)
import io
from spellchecker import (__version__, __url__, __author__, __email__,
__license__, __bugtrack_url__)

def read_file(filepath):
''' read the file '''
with io.open(filepath, 'r') as filepointer:
res = filepointer.read()
return res

KEYWORDS = ['python', 'spelling', 'typo', 'checker']

setup(
name = 'pyspellchecker',
version = __version__,
author = __author__,
author_email = __email__,
description = 'Pure python spell checker based on work by Peter Norvig',
license = __license__,
keywords = ' '.join(KEYWORDS),
url = __url__,
download_url = '{0}/tarball/v{1}'.format(__url__, __version__),
bugtrack_url = __bugtrack_url__,
install_requires = [],
packages=find_packages(exclude=['tests']),
package_data={'spellchecker': ['resources/*.txt']},
long_description = read_file('README.md'),
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'License :: OSI Approved',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
test_suite = 'tests'
)
6 changes: 6 additions & 0 deletions spellchecker/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from . spellchecker import SpellChecker
from . info import (__author__, __maintainer__, __email__, __license__,
__version__, __credits__, __url__, __bugtrack_url__)


__all__ = ['SpellChecker']
11 changes: 11 additions & 0 deletions spellchecker/info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
''' Information '''


__author__ = 'Tyler Barrus'
__maintainer__ = 'Tyler Barrus'
__email__ = '[email protected]'
__license__ = 'MIT'
__version__ = '0.0.1'
__credits__ = ['Peter Norvig']
__url__ = 'https://github.com/barrust/pyspellchecker'
__bugtrack_url__ = '{0}/issues'.format(__url__)
Loading

0 comments on commit 6f73c84

Please sign in to comment.