-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
263 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 24.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/adamchainz/blacken-docs | ||
rev: 1.16.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: | ||
- black==24.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
|
||
[tool.black] | ||
target-version = ["py38", "py39", "py310", "py311", "py312"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
ignore = | ||
# Style issues handled by black. | ||
E501, | ||
E203, | ||
W503, | ||
|
||
per-file-ignores = | ||
# F401: Ignore "imported but unused" errors in __init__ files, as those | ||
# imports are there to expose submodule functions so they can be imported | ||
# directly from that module | ||
zyte_api/__init__.py:F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
#!/usr/bin/env python | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
from setuptools import find_packages, setup | ||
|
||
|
||
def get_version(): | ||
about = {} | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(here, 'zyte_api/__version__.py')) as f: | ||
with open(os.path.join(here, "zyte_api/__version__.py")) as f: | ||
exec(f.read(), about) | ||
return about['__version__'] | ||
return about["__version__"] | ||
|
||
|
||
setup( | ||
name='zyte-api', | ||
name="zyte-api", | ||
version=get_version(), | ||
description='Python interface to Zyte API', | ||
long_description=open('README.rst').read() + "\n\n" + open('CHANGES.rst').read(), | ||
long_description_content_type='text/x-rst', | ||
author='Zyte Group Ltd', | ||
author_email='[email protected]', | ||
url='https://github.com/zytedata/python-zyte-api', | ||
packages=find_packages(exclude=['tests', 'examples']), | ||
entry_points = { | ||
'console_scripts': ['zyte-api=zyte_api.__main__:_main'], | ||
description="Python interface to Zyte API", | ||
long_description=open("README.rst").read() + "\n\n" + open("CHANGES.rst").read(), | ||
long_description_content_type="text/x-rst", | ||
author="Zyte Group Ltd", | ||
author_email="[email protected]", | ||
url="https://github.com/zytedata/python-zyte-api", | ||
packages=find_packages(exclude=["tests", "examples"]), | ||
entry_points={ | ||
"console_scripts": ["zyte-api=zyte_api.__main__:_main"], | ||
}, | ||
install_requires=[ | ||
'aiohttp >= 3.8.0', | ||
'attrs', | ||
'brotli', | ||
'runstats', | ||
'tenacity', | ||
'tqdm', | ||
'w3lib >= 2.1.1', | ||
"aiohttp >= 3.8.0", | ||
"attrs", | ||
"brotli", | ||
"runstats", | ||
"tenacity", | ||
"tqdm", | ||
"w3lib >= 2.1.1", | ||
], | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.