-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (57 loc) · 1.81 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (57 loc) · 1.81 KB
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
from typing import Optional
from setuptools import setup, find_packages
package_name = 'rozental_as_a_service'
def get_version() -> Optional[str]:
with open('rozental_as_a_service/__init__.py', 'r') as f:
lines = f.readlines()
for line in lines:
if line.startswith('__version__'):
return line.split('=')[-1].strip().strip("'")
def get_long_description() -> str:
with open('README.md', encoding='utf8') as f:
return f.read()
setup(
name=package_name,
description='Package to find typos in russian text.',
long_description=get_long_description(),
long_description_content_type='text/markdown',
classifiers=[
'Environment :: Console',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
packages=find_packages(),
package_data={
"": ["data/*.tar.gz"],
},
keywords='typos',
version=get_version(),
author='Ilya Lebedev',
author_email='melevir@gmail.com',
install_requires=[
'setuptools',
'tabulate>=0.8',
'requests>=2.22.0',
'Markdown>=3.1.1',
'beautifulsoup4>=4.8.0',
'esprima==4.0.1',
'mypy-extensions>=0.4.1',
'sentry-sdk>=0.14.3',
'chardet',
'autocorrect',
],
entry_points={
'console_scripts': [
'rozental = rozental_as_a_service.rozental:main',
],
},
url='https://github.com/Melevir/rozental_as_a_service',
license='MIT',
py_modules=[package_name],
zip_safe=False,
)