forked from Shlol762/google-custom-search
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
51 lines (42 loc) · 1.44 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
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
def _requires_from_file(filename):
return open(filename, encoding="utf8").read().splitlines()
def _get_version(filename):
with open(filename, "r") as f:
lines = f.readlines()
version = None
for line in lines:
if "__version__" in line:
version = line.split()[2]
break
return version.replace('"', '')
extras_require = {
"async": [
"aiohttp>=3.8.1"
]
}
setuptools.setup(
name="google-custom-search",
version=_get_version("google_custom_search/__init__.py"),
author="mc-fdc-dev",
author_email="[email protected]",
description="This is for google custom search api.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/mc-fdc-dev/google-custom-search",
install_requires=_requires_from_file('requirements.txt'),
extras_require=extras_require,
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)