-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (59 loc) · 1.95 KB
/
setup.py
File metadata and controls
64 lines (59 loc) · 1.95 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
# coding: utf-8
from setuptools import Extension, setup
from setuptools import dist
from distutils.core import setup
from pathlib import Path
from setuptools.command.build_ext import build_ext
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
class NumpyExtension(Extension):
# setuptools calls this function after installing dependencies
def _convert_pyx_sources_to_lang(self):
import numpy
self.include_dirs.append(numpy.get_include())
super()._convert_pyx_sources_to_lang()
extensions = NumpyExtension(
name = "tuotuo.cutils",
sources = ["tuotuo/cutils.pyx"],
)
def cythonise_extensions(extensions):
from Cython.Build import cythonize
return cythonize(
extensions,
)
setup(
name = 'TuoTuo',
packages = ['tuotuo'],
version = '0.2.7',
license='MIT',
description = 'LDA & Neura based topic modelling library',
long_description=long_description,
long_description_content_type='text/markdown',
author = 'tuotuo Superman',
author_email = 'tuotuo@HanwellSquare.BigForce.com',
url = 'https://github.com/RobbenRibery/TuoTuo',
download_url = 'https://github.com/RobbenRibery/TuoTuo/archive/refs/tags/pypi-0.2.7.tar.gz',
keywords = ['Generative Topic Modelling','Latent Dirichlet Allocation'],
install_requires=[
'numpy',
'torch',
'scipy',
'pyro-ppl',
'pandas',
'nltk',
'spacy',
'cython',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
ext_modules=cythonise_extensions(
extensions,
),
)