-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·68 lines (56 loc) · 2.07 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
"""
Installer for misspelling-check.
This installs the misspellings command.
"""
import sys
import unittest
from pathlib import Path
from setuptools import Command, setup
from src.misspelling_lib.utils.version import __version__
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
class TestCommand(Command):
description = "Runs all available tests."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
tests = unittest.TestLoader().discover("tests")
runner = unittest.TextTestRunner(verbosity=2)
result = runner.run(tests)
if not result.wasSuccessful():
sys.exit(1)
setup(
cmdclass={"test": TestCommand},
name="misspellings_lib",
version=__version__,
url="https://github.com/mazulo/misspelling",
download_url=f"https://github.com/mazulo/misspelling/tarball/{__version__}",
author="Patrick Mazulo",
author_email="[email protected]",
description="A tool to detect misspellings with opinionated additions",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={"": "src"},
package_data={"misspelling_lib": ["json_sources/wikipedia.json"]},
entry_points={"console_scripts": ["misspellings = misspelling_lib.misspellings:main"]},
install_requires=["typed-argument-parser==1.7.2", "rich==12.6.0"],
keywords="check, code, spelling, spellcheck",
license="MIT License",
platforms=["POSIX"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
],
)