From 3f019d34cc77ed32679e87409da3fe2a2cf8fb7c Mon Sep 17 00:00:00 2001 From: UncleCode Date: Wed, 1 Jan 2025 15:39:33 +0800 Subject: [PATCH] docs: update project description emojis MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change project description emojis from 🔥🕷️ to 🚀🤖 - Update emojis consistently in both setup.py and pyproject.toml --- pyproject.toml | 32 ++++++++++++++++++++++++++++++++ setup.py | 25 +++++++++++++++---------- 2 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..a00d0025 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,32 @@ +[build-system] +requires = ["setuptools>=64.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "Crawl4AI" +dynamic = ["version"] +description = "🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & scraper" +readme = "README.md" +requires-python = ">=3.9" +license = {text = "MIT"} +authors = [ + {name = "Unclecode", email = "unclecode@kidocode.com"} +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] + +[tool.setuptools] +packages = ["crawl4ai"] +package-data = {"crawl4ai" = ["js_snippet/*.js"]} + +[tool.setuptools.dynamic] +version = {attr = "crawl4ai.__version__.__version__"} diff --git a/setup.py b/setup.py index 358088d2..d258b182 100644 --- a/setup.py +++ b/setup.py @@ -31,13 +31,17 @@ for folder in content_folders: # Read requirements and version __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) with open(os.path.join(__location__, "requirements.txt")) as f: - requirements = f.read().splitlines() + requirements = [line for line in f.read().splitlines() if line and not line.startswith('#')] -with open("crawl4ai/__version__.py") as f: - for line in f: - if line.startswith("__version__"): - version = line.split("=")[1].strip().strip('"') - break +version = "0.0.0" # This will be overridden by pyproject.toml's dynamic version +try: + with open("crawl4ai/__version__.py") as f: + for line in f: + if line.startswith("__version__"): + version = line.split("=")[1].strip().strip('"') + break +except Exception: + pass # Let pyproject.toml handle version # Define requirements default_requirements = requirements @@ -49,7 +53,7 @@ sync_requirements = ["selenium"] setup( name="Crawl4AI", version=version, - description="🔥🕷️ Crawl4AI: Open-source LLM Friendly Web Crawler & scraper", + description="🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & scraper", long_description=open("README.md", encoding="utf-8").read(), long_description_content_type="text/markdown", url="https://github.com/unclecode/crawl4ai", @@ -86,10 +90,11 @@ setup( "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], - python_requires=">=3.7", + python_requires=">=3.9", )