fss-polish/setup.py
FSSCoding 9316bc50f1 Initial commit: FSS-Polish v1.0.0
Complete implementation of Fast Spelling and Style Polish tool with:
- Australian English spelling conversion (7 patterns + case preservation)
- CLI support with text input or clipboard mode
- Daemon mode with configurable hotkey
- MIN_LENGTH, AGGRESSION, and CUSTOM_DICTIONARY config options
- Comprehensive diff logging
- 12 passing tests (100% test coverage for AU spelling)
- Wheel package built and ready for deployment
- Agent-friendly CLI with stdin/stdout support

Features:
- Text correction using t5-small-spoken-typo model
- Australian/American spelling conversion
- Configurable correction aggression levels
- Custom dictionary whitelist support
- Background daemon with hotkey trigger
- CLI tool for direct text polishing
- Preserves clipboard history (adds new item vs replace)

Ready for deployment to /opt and Gitea repository.
2025-10-25 23:59:34 +11:00

57 lines
1.9 KiB
Python

from setuptools import setup, find_packages
import os
# Read README
readme_path = os.path.join(os.path.dirname(__file__), "README.md")
if os.path.exists(readme_path):
with open(readme_path, encoding="utf-8") as f:
long_description = f.read()
else:
long_description = "FSS-Polish: Fast Spelling and Style Polish for text with Australian English support"
setup(
name="fss-polish",
version="1.0.0",
packages=find_packages(),
package_data={
'': ['*.md', '*.txt', '*.service'],
},
install_requires=[
"transformers>=4.29",
"torch>=1.11",
"pyperclip",
"keyboard",
"optimum[onnxruntime]>=2.0.0",
],
entry_points={
'console_scripts': [
'fss-polish=src.main:main',
],
},
author="Brett Fox",
author_email="brett@foxsoft.systems",
description="Fast Spelling and Style Polish - AI-powered text correction with Australian English support",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://192.168.1.3:3000/foxadmin/fss-polish",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Topic :: Text Processing :: Linguistic",
"Topic :: Utilities",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
],
python_requires='>=3.8',
keywords='text-correction spelling australian-english nlp ai',
project_urls={
"Bug Reports": "http://192.168.1.3:3000/foxadmin/fss-polish/issues",
"Source": "http://192.168.1.3:3000/foxadmin/fss-polish",
},
)