forked from apify/apify-client-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
70 lines (61 loc) · 2.2 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
70
import pathlib
from setuptools import find_packages, setup
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / 'README.md').read_text(encoding='utf-8')
version_file = (here / 'src/apify_client/_version.py').read_text(encoding='utf-8')
version = None
for line in version_file.splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
version = line.split(delim)[1]
break
else:
raise RuntimeError("Unable to find version string.")
setup(
name='apify_client',
version=version,
author="Apify Technologies s.r.o.",
author_email="[email protected]",
url="https://github.com/apify/apify-client-python",
project_urls={
'Documentation': 'https://docs.apify.com/apify-client-python',
'Source': 'https://github.com/apify/apify-client-python',
'Issue tracker': 'https://github.com/apify/apify-client-python/issues',
'Apify Homepage': 'https://apify.com',
},
license='Apache Software License',
license_files=['LICENSE'],
description='Apify API client for Python',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
],
keywords='apify, api, client, scraping, automation',
package_dir={'': 'src'},
packages=find_packages(where='src'),
python_requires='>=3.7',
install_requires=['requests ~= 2.26.0'],
extras_require={
'dev': [
'autopep8 ~= 1.5.7',
'flake8 ~= 3.9.2',
'flake8-commas ~= 2.0.0',
'flake8-docstrings ~= 1.6.0',
'flake8-isort ~= 4.0.0',
'flake8-quotes ~= 3.3.0',
'isort ~= 5.9.3',
'mypy ~= 0.910',
'pep8-naming ~= 0.12.1',
'pytest ~= 6.2.2',
'sphinx ~= 4.2.0',
'sphinx-autodoc-typehints ~= 1.12.0',
'sphinx-markdown-builder ~= 0.5.4',
'types-requests ~= 2.25.6',
],
},
)