-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (42 loc) · 1.26 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
import sys
from glob import glob
from setuptools import setup, find_packages
from pybind11.setup_helpers import Pybind11Extension, build_ext
from pybind11 import get_cmake_dir
__version__ = "0.0.2"
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
ext_modules = [
Pybind11Extension(
"cyvi", glob("lib/**/*.cpp", recursive=True),
define_macros = [('VERSION_INFO', __version__)]
),
]
setup(
name="cyflashtext",
packages=find_packages(),
version=__version__,
author="nghoangdat",
author_email="18.hoang.dat.12@gmail.com",
url="https://github.com/NgHoangDat/cyflashtext",
description="Python flashtext with c++ backend",
long_description=long_description,
long_description_content_type="text/markdown",
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
zip_safe=False,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Linguistic"
],
include_package_data=True,
# package_data = {
# "": ["lib/flashtext/flashtext.h"]
# },
python_requires='>=3.6',
install_requires=[
'pydantic'
]
)