-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (65 loc) · 1.92 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os
from setuptools import Extension, find_packages, setup
ext_modules = [
Extension(
name="ssdb.core.parser",
sources=["./ssdb/core/parser.pyx"],
),
Extension(
name="ssdb.core.encode",
sources=["./ssdb/core/encode.pyx"],
),
Extension(
name="ssdb.core.response",
sources=["./ssdb/core/response.pyx"],
),
Extension(
name="ssdb.core.interface",
sources=["./ssdb/core/interface.pyx"],
),
Extension(
name="ssdb.client",
sources=["./ssdb/client.pyx"],
),
Extension(
name="ssdb.connection",
sources=["./ssdb/connection.pyx"],
),
Extension(
name="ssdb.asyncio.client",
sources=["./ssdb/asyncio/client.pyx"],
),
Extension(
name="ssdb.asyncio.connection",
sources=["./ssdb/asyncio/connection.pyx"],
),
]
def read(file_name):
"""Read a text file and return the content as a string."""
file_path = os.path.join(os.path.dirname(__file__), file_name)
with open(file_path, encoding="utf-8") as f:
return f.read()
setup(
name="python-ssdb",
version="1.0.5",
description="SSDB Python Client",
long_description=read("README.md"),
python_requires=">=3.9",
author="recoteam",
author_email="recoteam@kakaocorp.com",
url="https://github.com/kakao/python-ssdb",
license="Apache2",
keywords="SSDB",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Cython",
],
packages=find_packages(include=["ssdb", "ssdb.core", "ssdb.asyncio"]),
ext_modules=ext_modules,
)