-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (41 loc) · 1.51 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (41 loc) · 1.51 KB
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
39
40
41
42
43
44
45
46
#!/usr/bin/env python
import os
import re
from setuptools import find_packages, setup
# Read the version without importing the package (its deps may not be installed)
with open("resend/version.py", encoding="utf8") as f:
version = re.search(r'__version__ = "([^"]+)"', f.read()).group(1)
if os.path.exists("requirements.txt"):
install_requires = open("requirements.txt").readlines()
else:
install_requires = ["requests>=2.31.0", "typing_extensions>=4.4.0"]
setup(
name="resend",
version=version,
description="Resend Python SDK",
long_description=open("README.md", encoding="utf8").read(),
long_description_content_type="text/markdown",
author="Derich Pacheco",
author_email="carlosderich@gmail.com",
url="https://github.com/resendlabs/resend-python",
packages=find_packages(exclude=["tests", "tests.*"]),
package_data={"resend": ["py.typed"]},
install_requires=install_requires,
extras_require={
"async": ["httpx>=0.24.0"],
},
zip_safe=False,
python_requires=">=3.7",
keywords=["email", "email platform"],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"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",
],
)