-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
35 lines (31 loc) · 1.68 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
import setuptools
import re
with open("README.md", "r") as fh:
long_description = fh.read()
VERSIONFILE="topictuner/__init__.py"
getversion = re.search( r"^__version__ = ['\"]([^'\"]*)['\"]", open(VERSIONFILE, "rt").read(), re.M)
if getversion:
new_version = getversion.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setuptools.setup(
python_requires='>=3', # Minimum Python version
name='topicmodeltuner', # Package name
version=new_version, # Version
author="Dan Robinson", # Author name
author_email="drob707@gmail.com", # Author mail
description="HDBSCAN Tuning for BERTopic Models", # Short package description
long_description=long_description, # Long package description
long_description_content_type="text/markdown",
url="https://github.com/drob-xx/TopicTuner", # Url to Git Repo
download_url = 'https://github.com/drob-xx/TopicTuner/archive/refs/tags/'+new_version+'.tar.gz',
packages=setuptools.find_packages(), # Searches throughout all dirs for files to include
include_package_data=True, # Must be true to include files depicted in MANIFEST.in
license_files=["LICENSE"],
install_requires=["loguru", "bertopic>=v0.10.0"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
)