2024-05-28 18:08:41 +08:00
|
|
|
import re
|
2024-05-26 08:01:35 +08:00
|
|
|
from pathlib import Path
|
2024-05-26 09:33:28 +08:00
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
2024-04-16 05:01:47 +08:00
|
|
|
|
2024-05-26 08:01:35 +08:00
|
|
|
this_directory = Path(__file__).parent
|
|
|
|
long_description_content = (this_directory / "README.md").read_text()
|
2024-04-16 05:01:47 +08:00
|
|
|
|
2024-05-28 18:08:41 +08:00
|
|
|
|
|
|
|
def get_version():
|
|
|
|
"""Dynamically set version"""
|
|
|
|
version_file = (this_directory / "firecrawl" / "__init__.py").read_text()
|
|
|
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
|
|
|
if version_match:
|
|
|
|
return version_match.group(1)
|
|
|
|
raise RuntimeError("Unable to find version string.")
|
|
|
|
|
|
|
|
|
2024-04-16 05:01:47 +08:00
|
|
|
setup(
|
2024-05-26 09:33:28 +08:00
|
|
|
name="firecrawl-py",
|
2024-05-28 18:08:41 +08:00
|
|
|
version=get_version(),
|
2024-05-26 09:33:28 +08:00
|
|
|
url="https://github.com/mendableai/firecrawl",
|
|
|
|
author="Mendable.ai",
|
|
|
|
author_email="nick@mendable.ai",
|
|
|
|
description="Python SDK for Firecrawl API",
|
2024-05-26 08:01:35 +08:00
|
|
|
long_description=long_description_content,
|
|
|
|
long_description_content_type="text/markdown",
|
2024-05-09 08:35:16 +08:00
|
|
|
packages=find_packages(),
|
2024-04-16 05:01:47 +08:00
|
|
|
install_requires=[
|
|
|
|
'requests',
|
2024-05-25 04:56:27 +08:00
|
|
|
'pytest',
|
2024-05-28 01:14:00 +08:00
|
|
|
'python-dotenv',
|
2024-08-31 02:29:41 +08:00
|
|
|
'websockets',
|
|
|
|
'asyncio',
|
|
|
|
'nest-asyncio'
|
2024-04-16 05:01:47 +08:00
|
|
|
],
|
2024-05-28 18:08:41 +08:00
|
|
|
python_requires=">=3.8",
|
2024-05-26 09:33:28 +08:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Web Environment",
|
|
|
|
"Intended Audience :: Developers",
|
2024-05-27 09:15:05 +08:00
|
|
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
2024-05-26 09:33:28 +08:00
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Topic :: Internet",
|
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
|
|
|
|
"Topic :: Software Development",
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Topic :: Text Processing",
|
|
|
|
"Topic :: Text Processing :: Indexing",
|
2024-05-28 18:08:41 +08:00
|
|
|
],
|
2024-05-26 09:36:29 +08:00
|
|
|
keywords="SDK API firecrawl",
|
|
|
|
project_urls={
|
2024-05-27 09:11:54 +08:00
|
|
|
"Documentation": "https://docs.firecrawl.dev",
|
2024-05-26 09:36:29 +08:00
|
|
|
"Source": "https://github.com/mendableai/firecrawl",
|
|
|
|
"Tracker": "https://github.com/mendableai/firecrawl/issues",
|
|
|
|
},
|
2024-05-27 09:15:05 +08:00
|
|
|
license="GNU General Public License v3 (GPLv3)",
|
2024-04-16 05:01:47 +08:00
|
|
|
)
|