diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.py index e7f8063..6899915 100644 --- a/apps/python-sdk/firecrawl/__init__.py +++ b/apps/python-sdk/firecrawl/__init__.py @@ -1 +1,3 @@ from .firecrawl import FirecrawlApp + +__version__ = "0.0.11" diff --git a/apps/python-sdk/pyproject.toml b/apps/python-sdk/pyproject.toml new file mode 100644 index 0000000..25fa7c1 --- /dev/null +++ b/apps/python-sdk/pyproject.toml @@ -0,0 +1,48 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +dynamic = ["version"] +name = "firecrawl-py" +description = "Python SDK for Firecrawl API" +readme = {file="README.md", content-type = "text/markdown"} +requires-python = ">=3.8" +dependencies = [ + "requests", +] +authors = [{name = "Mendable.ai",email = "nick@mendable.ai"}] +maintainers = [{name = "Mendable.ai",email = "nick@mendable.ai"}] +license = {text = "GNU General Public License v3 (GPLv3)"} + +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "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", +] + +keywords = ["SDK", "API", "firecrawl"] + +[project.urls] +"Documentation" = "https://docs.firecrawl.dev" +"Source" = "https://github.com/mendableai/firecrawl" +"Tracker" = "https://github.com/mendableai/firecrawl/issues" + +[tool.setuptools.packages.find] +where = ["."] \ No newline at end of file diff --git a/apps/python-sdk/setup.py b/apps/python-sdk/setup.py index 903eab4..4978559 100644 --- a/apps/python-sdk/setup.py +++ b/apps/python-sdk/setup.py @@ -1,3 +1,4 @@ +import re from pathlib import Path from setuptools import find_packages, setup @@ -5,9 +6,19 @@ from setuptools import find_packages, setup this_directory = Path(__file__).parent long_description_content = (this_directory / "README.md").read_text() + +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.") + + setup( name="firecrawl-py", - version="0.0.13", + version=get_version(), url="https://github.com/mendableai/firecrawl", author="Mendable.ai", author_email="nick@mendable.ai", @@ -20,7 +31,7 @@ setup( 'pytest', 'python-dotenv', ], - python_requires='>=3.8', + python_requires=">=3.8", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", @@ -41,7 +52,7 @@ setup( "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing", "Topic :: Text Processing :: Indexing", - ], + ], keywords="SDK API firecrawl", project_urls={ "Documentation": "https://docs.firecrawl.dev",