-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
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+')] | ||
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+')] | ||
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.3.9', | ||
author='Emmett McFarlane', | ||
author_email='emmett@thepi.pe', | ||
description='AI-native extractor, powered by multimodal LLMs.', | ||
long_description=open('README.md', encoding='utf-8').read(), | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/emcf/thepipe', | ||
name="thepipe_api", | ||
version="1.4.0", | ||
author="Emmett McFarlane", | ||
author_email="emmett@thepi.pe", | ||
description="Document extraction, powered by multimodal LLMs.", | ||
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', | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
], | ||
python_requires='>=3.9', | ||
install_requires=read_requirements('requirements.txt'), | ||
python_requires=">=3.9", | ||
install_requires=read_requirements("requirements.txt"), | ||
include_package_data=True, | ||
entry_points={ | ||
'console_scripts': [ | ||
'thepipe=thepipe.__init__:main', | ||
"console_scripts": [ | ||
"thepipe=thepipe.__init__:main", | ||
], | ||
}, | ||
extras_require={ | ||
'local': read_requirements('local.txt'), | ||
"local": read_requirements("local.txt"), | ||
}, | ||
dependency_links=read_git_requirements('local.txt') | ||
dependency_links=read_git_requirements("local.txt"), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters