-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_setup.py
69 lines (61 loc) · 2.24 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
import os
import re
from codecs import open as copen
from setuptools import find_packages
from setuptools import setup
# Based on https://github.com/pypa/sampleproject/blob/main/setup.py
# and https://python-packaging-user-guide.readthedocs.org/
here = os.path.abspath(os.path.dirname(__file__))
with copen(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
long_description_content_type = "text/markdown"
with copen(os.path.join(here, "curlreq/version.py")) as f:
match = re.search(r'VERSION = "(.+?)"', f.read())
assert match
VERSION = match.group(1)
setup(
name="curlreq",
version=VERSION,
description="A requests-like http client base on pycurl",
long_description=long_description,
long_description_content_type=long_description_content_type,
url="https://github.com/skiloop/curlreq",
author="Jason Stone",
author_email="skiloop@gmail.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
"Environment :: Console :: Curses",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
],
project_urls={
"Source": "https://github.com/skiloop/curlreq/",
"Tracker": "https://github.com/skiloop/curlreq/issues",
},
packages=find_packages(
include=[
"curlreq",
]
),
include_package_data=True,
python_requires=">=3.7",
# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires
# It is not considered best practice to use install_requires to pin dependencies to specific versions.
install_requires=[
],
extras_require={
},
)