-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (34 loc) · 1.02 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
34
35
36
37
38
import re
from setuptools import find_packages, setup
# Read version from pyproject.toml
with open("pyproject.toml", "r", encoding="utf-8") as f:
content = f.read()
version_match = re.search(r'version\s*=\s*"(.*?)"', content)
if not version_match:
raise ValueError("Could not find version string in pyproject.toml")
VERSION = version_match.group(1)
# Read README
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="scarf-sdk",
version=VERSION,
author="Scarf",
author_email="[email protected]",
description="Python bindings for Scarf telemetry",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/scarf-sh/scarf-py",
packages=find_packages(),
python_requires=">=3.7",
install_requires=[
"requests>=2.25.0",
],
extras_require={
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
],
},
)