-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
33 lines (27 loc) · 1.06 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from setuptools import find_packages, setup
def get_version(rel_path):
with open(rel_path, "r") as file:
for line in file.read().splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
long_description = """
The official Python library for the Oxylabs Scraper APIs.
Collect public data at scale with industry-leading web scraping solutions and the world's largest ethical proxy network.
Documentation can be found at https://github.com/oxylabs/oxylabs-sdk-python.
"""
setup(
name="oxylabs",
version=get_version("src/oxylabs/_version.py"),
description="Official Python library for Oxylabs Scraper APIs",
long_description=long_description,
url="https://oxylabs.io/",
author="Oxylabs",
author_email="support@oxylabs.io",
license="MIT",
package_dir={"": "src"},
packages=find_packages(where="src"),
install_requires=["aiohttp", "requests"],
)