-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathsetup.py
42 lines (36 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
from setuptools import setup, find_packages
def read_requirements(file):
with open(file, encoding="utf-8") as f:
return [
line.strip()
for line in f
if line.strip() and not line.startswith("#") and not line.startswith("git+")
]
def read_git_requirements(file):
with open(file, encoding="utf-8") as f:
return [line.strip() for line in f if line.strip().startswith("git+")]
setup(
name="thepipe_api",
version="1.5.5",
author="Emmett McFarlane",
author_email="[email protected]",
description="Get clean data from tricky documents, powered by VLMs.",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url="https://github.com/emcf/thepipe",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
install_requires=read_requirements("requirements.txt"),
include_package_data=True,
entry_points={
"console_scripts": [
"thepipe=thepipe.__init__:main",
],
},
dependency_links=read_git_requirements("requirements.txt"),
)