This repository was archived by the owner on Jan 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (45 loc) · 2.09 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
from setuptools import setup
from pathlib import Path
from resoup import __version__, __description__, __url__, __author__, __raw_source_url__, __author_email__, __title__
long_description = f'이 설명은 최신 버전이 아닐 수 있습니다. 만약 최신 버전을 확인하고 싶으시다면 [이 깃허브 링크]({__url__})를 참고하세요.\n'
long_description += Path('README.md').read_text(encoding='utf-8')
# def repl_script(match: re.Match) -> str:
# if match.group('directory_type') == 'images':
# return rf'[{match.group("description")}]({__raw_source_url__}/{match.group("path")})'
# return rf'[{match.group("description")}]({__raw_source_url__}/{match.group("path")})'
# long_description = re.sub(r'[[](?P<description>.*?)[]][(](..\/)*(?P<path>(?P<directory_type>images|docs).*?)[)]',
# repl_script, long_description)
requirements = [line for line in Path('requirements.txt').read_text(encoding='utf-8').splitlines()
if line and line[0] != '#']
if __name__ == '__main__':
setup(
name=__title__,
version=__version__,
description=__description__,
author=__author__,
author_email=__author_email__,
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
url=__url__,
install_requires=requirements,
packages=['resoup'],
keywords=['requests', 'bs4', 'BeautifulSoup', 'async', 'caching', 'cache'],
python_requires='>=3.10',
package_data={
# "": ["*.pyi", 'py.typed'],
"": ["*.pyi"],
},
zip_safe=False,
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
# resoup specific
'Framework :: AsyncIO',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
],
)