1- """Setup script for backward compatibility."""
2- from setuptools import setup
1+ """
2+ Setup script for Bright Data SDK
33
4- setup ()
4+ This file provides backward compatibility for tools that don't support pyproject.toml.
5+ The main configuration is in pyproject.toml following modern Python packaging standards.
6+ """
57
8+ from setuptools import setup , find_packages
9+ import os
10+
11+ # Read the README file
12+ def read_readme ():
13+ with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
14+ return fh .read ()
15+
16+ # Read version from __init__.py
17+ def read_version ():
18+ with open (os .path .join ("brightdata" , "__init__.py" ), "r" , encoding = "utf-8" ) as fh :
19+ for line in fh :
20+ if line .startswith ("__version__" ):
21+ return line .split ('"' )[1 ]
22+ return "1.0.0"
23+
24+ setup (
25+ name = "brightdata-sdk" ,
26+ version = read_version (),
27+ author = "Bright Data" ,
28+ 29+ description = "Python SDK for Bright Data Web Scraping and SERP APIs" ,
30+ long_description = read_readme (),
31+ long_description_content_type = "text/markdown" ,
32+ url = "https://github.com/brightdata/brightdata-sdk-python" ,
33+ packages = find_packages (),
34+ classifiers = [
35+ "Development Status :: 4 - Beta" ,
36+ "Intended Audience :: Developers" ,
37+ "License :: OSI Approved :: MIT License" ,
38+ "Operating System :: OS Independent" ,
39+ "Programming Language :: Python :: 3" ,
40+ "Programming Language :: Python :: 3.7" ,
41+ "Programming Language :: Python :: 3.8" ,
42+ "Programming Language :: Python :: 3.9" ,
43+ "Programming Language :: Python :: 3.10" ,
44+ "Programming Language :: Python :: 3.11" ,
45+ "Programming Language :: Python :: 3.12" ,
46+ "Topic :: Internet :: WWW/HTTP" ,
47+ "Topic :: Software Development :: Libraries :: Python Modules" ,
48+ "Topic :: Internet :: WWW/HTTP :: Indexing/Search" ,
49+ ],
50+ python_requires = ">=3.7" ,
51+ install_requires = [
52+ "requests>=2.25.0" ,
53+ "python-dotenv>=0.19.0" ,
54+ ],
55+ extras_require = {
56+ "dev" : [
57+ "pytest>=6.0.0" ,
58+ "pytest-cov>=2.10.0" ,
59+ "black>=21.0.0" ,
60+ "isort>=5.0.0" ,
61+ "flake8>=3.8.0" ,
62+ ],
63+ },
64+ keywords = "brightdata, web scraping, proxy, serp, api, data extraction" ,
65+ project_urls = {
66+ "Bug Reports" : "https://github.com/brightdata/brightdata-sdk-python/issues" ,
67+ "Documentation" : "https://github.com/brightdata/brightdata-sdk-python#readme" ,
68+ "Source" : "https://github.com/brightdata/brightdata-sdk-python" ,
69+ },
70+ )
0 commit comments