forked from barrust/pyspellchecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit with code from Peter Norvig
- Loading branch information
Showing
6 changed files
with
128,572 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__) |
Oops, something went wrong.