forked from fa0311/twitter_openapi_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (33 loc) · 1.1 KB
/
Copy pathsetup.py
File metadata and controls
40 lines (33 loc) · 1.1 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
# coding: utf-8
import re
from setuptools import find_packages, setup
NAME = "twitter_openapi_python"
VERSION = "0.0.26"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"twitter_openapi_python_generated == 0.0.24",
"pydantic >= 2.6",
]
GITHUB_RAW_URL = "https://raw.githubusercontent.com/fa0311/twitter_openapi_python/refs/heads/master/twitter_openapi_python/"
def image_replace(text: str, url: str):
return re.sub(
r"!\[(.*?)\]\((.*?)\)",
r"",
text,
)
setup(
name=NAME,
version=VERSION,
description="Twitter OpenAPI",
author="fa0311",
url="https://github.com/fa0311/twitter_openapi_python",
keywords=["OpenAPI", "OpenAPI-Generator", "Twitter OpenAPI"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
license="proprietary or AGPL-3.0-or-later",
long_description_content_type="text/markdown",
long_description=image_replace(open("README.md").read(), GITHUB_RAW_URL),
package_data={"twitter_openapi_python": ["py.typed"]},
)