-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (49 loc) · 1.74 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import os
import re
from setuptools import find_packages, setup
def get_version(package):
"""
Return package version as listed in `__version__` in `__init__.py`.
"""
with open(os.path.join(package, "__init__.py")) as f:
return re.search("__version__ = ['\"]([^'\"]+)['\"]", f.read()).group(1)
def get_long_description():
"""Return the README"""
with open("README.md", encoding="utf8") as f:
return f.read()
setup(
name="aiosmartpost",
python_requires=">=3.8",
version=get_version("smartpost"),
description="Itella SmartPost API wrapper for humans 📦",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/HarrySky/aiosmartpost",
license="Unlicense",
author="Igor Nehoroshev",
author_email="[email protected]",
packages=find_packages(exclude=["tests"]),
# Use MANIFEST.in for data files
include_package_data=True,
zip_safe=False,
install_requires=[
# For HTTP requests to API using HTTP/2
"httpx",
"h2",
# For parsing API responses to dict
# (SmartPost API uses XML instead of JSON for some reason)
"xmltodict",
],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
],
)