-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (60 loc) · 1.96 KB
/
setup.py
File metadata and controls
69 lines (60 loc) · 1.96 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
67
68
69
from setuptools import setup, Command
import subprocess
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call(['py.test'])
raise SystemExit(errno)
name = 'flashtext-i18n'
version = '3.0.0'
cmdclass = {'test': PyTest}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print('WARNING: sphinx not available, not building docs')
setup(
name=name,
version=version,
url='https://github.com/termdock/flashtext-i18n',
author='termdock & Huang Chung Yi',
author_email='cyh@hcytlog.com',
description='Extract/Replace keywords in sentences. Fork with internationalization fixes.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
packages=['flashtext'],
install_requires=[],
license='MIT',
license_files=['LICENSE'],
maintainer='termdock & Huang Chung Yi',
maintainer_email='cyh@hcytlog.com',
platforms='any',
cmdclass=cmdclass,
classifiers=[
'Programming Language :: Python',
'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',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Natural Language :: Japanese',
'Natural Language :: Korean',
],
python_requires='>=3.8',
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', version)
}
}
)