11
22from setuptools import setup
33import numpy as np
4- from Cython .Build import cythonize
54
6-
7- ext_modules = cythonize (['shorttext/metrics/dynprog/dldist.pyx' ,
8- 'shorttext/metrics/dynprog/lcp.pyx' ])
5+ try :
6+ from Cython .Build import cythonize
7+ ext_modules = cythonize (['shorttext/metrics/dynprog/dldist.pyx' ,
8+ 'shorttext/metrics/dynprog/lcp.pyx' ])
9+ except ImportError :
10+ from setuptools import Extension
11+ ext_modules = [
12+ Extension ('shorttext.metrics.dynprog.dldist' , ['shorttext/metrics/dynprog/dldist.c' ]),
13+ Extension ('shorttext.metrics.dynprog.lcp' , ['shorttext/metrics/dynprog/lcp.c' ])
14+ ]
915
1016
1117def package_description ():
@@ -28,7 +34,7 @@ def test_requirements():
2834
2935
3036setup (name = 'shorttext' ,
31- version = '1.5.9 ' ,
37+ version = '1.6.0 ' ,
3238 description = "Short Text Mining" ,
3339 long_description = package_description (),
3440 long_description_content_type = 'text/markdown' ,
@@ -37,10 +43,10 @@ def test_requirements():
3743 "Topic :: Scientific/Engineering :: Mathematics" ,
3844 "Topic :: Text Processing :: Linguistic" ,
3945 "Topic :: Software Development :: Libraries :: Python Modules" ,
40- "Programming Language :: Python :: 3.7" ,
4146 "Programming Language :: Python :: 3.8" ,
4247 "Programming Language :: Python :: 3.9" ,
4348 "Programming Language :: Python :: 3.10" ,
49+ "Programming Language :: Python :: 3.11" ,
4450 "Programming Language :: Cython" ,
4551 "Programming Language :: C" ,
4652 "Natural Language :: English" ,
@@ -52,7 +58,7 @@ def test_requirements():
5258 ],
5359 keywords = "shorttext natural language processing text mining" ,
5460 url = "https://github.com/stephenhky/PyShortTextCategorization" ,
55- author = "Kwan- Yuet Ho" ,
61+ author = "Kwan Yuet Stephen Ho" ,
56625763 license = 'MIT' ,
5864 ext_modules = ext_modules ,
0 commit comments