-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
68 lines (64 loc) · 2.28 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
# python
# -*- coding: utf-8 -*-
import codecs
import os
import re
from setuptools import find_packages, setup
"""
linux:
rm -rf "dist/*";rm -rf "build/*";python3 setup.py bdist_wheel;twine upload "dist/*;rm -rf "dist/*";rm -rf "build/*""
win32:
rm -rf dist;rm -rf build;python3 setup.py bdist_wheel;twine upload "dist/*"
rm -rf dist;rm -rf build;rm -rf torequests.egg-info
"""
install_requires = [
"requests",
"aiohttp>=3.6.2,<4.0.0;python_version>'3.5'",
]
with codecs.open("README.md", encoding="u8") as f:
long_description = f.read()
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'torequests', '__init__.py'),
encoding="u8") as f:
version = re.search(r'''__version__ = ['"](.*?)['"]''', f.read()).group(1)
desc = "Async wrapper for requests / aiohttp, and some python crawler toolkits. Let synchronization code enjoy the performance of asynchronous programming. Read more: https://github.com/ClericPy/torequests."
keywords = "requests async multi-thread aiohttp asyncio asynchronous".split()
setup(
name="torequests",
version=version,
keywords=keywords,
description=desc,
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT License",
install_requires=install_requires,
py_modules=["torequests"],
extras_require={
'security': ['pyOpenSSL >= 0.14', 'cryptography>=1.3.4', 'idna>=2.0.0'],
'socks': ['PySocks>=1.5.6, !=1.5.7'],
'all': [
'pyOpenSSL >= 0.14', 'cryptography>=1.3.4', 'idna>=2.0.0',
'PySocks>=1.5.6, !=1.5.7', 'psutil', 'pyperclip'
],
'speedups': [
'aiodns>=1.1',
'Brotli',
'cchardet',
],
},
python_requires=">=3.7",
classifiers=[
"License :: OSI Approved :: MIT License",
'Programming Language :: Python',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
author="ClericPy",
author_email="clericpy@gmail.com",
url="https://github.com/ClericPy/torequests",
packages=find_packages(),
platforms="any",
)