-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (52 loc) · 2.26 KB
/
setup.py
File metadata and controls
63 lines (52 loc) · 2.26 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
"""
WHMCS API
Python client for the WHMCS API. WHMCS (Web Host Manager Complete Solution) provides a single API endpoint that handles multiple operations through different 'action' parameters. This specification presents each action as an independent path while routing all requests to the /api.php endpoint.
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from pathlib import Path
from setuptools import setup, find_packages # noqa: H301
from setuptools.command.build_py import build_py as _build_py
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "whmcs-api-client"
VERSION = "1.0.30"
PYTHON_REQUIRES = ">= 3.10"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
"python-dateutil >= 2.8.2",
"pydantic >= 2.11",
"typing-extensions >= 4.7.1",
]
class build_py(_build_py):
def run(self):
super().run()
source_path = Path(__file__).with_name("_customizations.py")
if not source_path.exists():
return
target_path = Path(self.build_lib) / "whmcs_client" / "_customizations.py"
target_path.parent.mkdir(parents=True, exist_ok=True)
target_path.write_text(source_path.read_text(encoding="utf-8"), encoding="utf-8")
setup(
name=NAME,
version=VERSION,
description="WHMCS API",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
url="https://github.com/truehostcloud/whmcs-python-client",
keywords=["OpenAPI", "OpenAPI-Generator", "WHMCS API"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
cmdclass={"build_py": build_py},
long_description_content_type='text/markdown',
long_description="""\
Python client for the WHMCS API. WHMCS (Web Host Manager Complete Solution) provides a single API endpoint that handles multiple operations through different 'action' parameters. This specification presents each action as an independent path while routing all requests to the /api.php endpoint.
""", # noqa: E501
package_data={"whmcs_client": ["py.typed"]},
)