-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.py
45 lines (35 loc) · 1.27 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
from codecs import open
from os import path
from setuptools import find_packages, setup
def get_long_description():
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
return long_description
def get_version():
version_filepath = path.join(path.dirname(__file__), "chat2plot", "version.py")
with open(version_filepath) as f:
for line in f:
if line.startswith("__version__"):
return line.strip().split()[-1][1:-1]
def requirements_from_file(filename):
return open(filename).read().splitlines()
setup(
name="chat2plot",
packages=find_packages(),
version=get_version(),
license="MIT",
install_requires=requirements_from_file("requirements.txt"),
author="nyanp",
author_email="Noumi.Taiga@gmail.com",
url="https://github.com/nyanp/chat2plot",
description="chat to visualization with LLM",
long_description=get_long_description(),
long_description_content_type="text/markdown",
keywords="llm visualization chart gpt",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)