black: Reformat without skipping string normalization.
This commit is contained in:
parent
fba21bb00d
commit
6f3f9bf7e4
178 changed files with 5242 additions and 5242 deletions
|
@ -15,7 +15,7 @@ def version() -> str:
|
|||
version_line = next(
|
||||
itertools.dropwhile(lambda x: not x.startswith("__version__"), in_handle)
|
||||
)
|
||||
version = version_line.split('=')[-1].strip().replace('"', '')
|
||||
version = version_line.split("=")[-1].strip().replace('"', "")
|
||||
return version
|
||||
|
||||
|
||||
|
@ -28,50 +28,50 @@ def recur_expand(target_root: Any, dir: Any) -> Generator[Tuple[str, List[str]],
|
|||
|
||||
# We should be installable with either setuptools or distutils.
|
||||
package_info = dict(
|
||||
name='zulip',
|
||||
name="zulip",
|
||||
version=version(),
|
||||
description='Bindings for the Zulip message API',
|
||||
description="Bindings for the Zulip message API",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
author='Zulip Open Source Project',
|
||||
author_email='zulip-devel@googlegroups.com',
|
||||
author="Zulip Open Source Project",
|
||||
author_email="zulip-devel@googlegroups.com",
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Environment :: Web Environment',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
'Topic :: Communications :: Chat',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
"Development Status :: 4 - Beta",
|
||||
"Environment :: Web Environment",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Topic :: Communications :: Chat",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
],
|
||||
python_requires='>=3.6',
|
||||
url='https://www.zulip.org/',
|
||||
python_requires=">=3.6",
|
||||
url="https://www.zulip.org/",
|
||||
project_urls={
|
||||
"Source": "https://github.com/zulip/python-zulip-api/",
|
||||
"Documentation": "https://zulip.com/api",
|
||||
},
|
||||
data_files=list(recur_expand('share/zulip', 'integrations')),
|
||||
data_files=list(recur_expand("share/zulip", "integrations")),
|
||||
include_package_data=True,
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'zulip-send=zulip.send:main',
|
||||
'zulip-api-examples=zulip.api_examples:main',
|
||||
'zulip-matrix-bridge=integrations.bridge_with_matrix.matrix_bridge:main',
|
||||
'zulip-api=zulip.cli:cli',
|
||||
"console_scripts": [
|
||||
"zulip-send=zulip.send:main",
|
||||
"zulip-api-examples=zulip.api_examples:main",
|
||||
"zulip-matrix-bridge=integrations.bridge_with_matrix.matrix_bridge:main",
|
||||
"zulip-api=zulip.cli:cli",
|
||||
],
|
||||
},
|
||||
package_data={'zulip': ["py.typed"]},
|
||||
package_data={"zulip": ["py.typed"]},
|
||||
) # type: Dict[str, Any]
|
||||
|
||||
setuptools_info = dict(
|
||||
install_requires=[
|
||||
'requests[security]>=0.12.1',
|
||||
'matrix_client',
|
||||
'distro',
|
||||
'click',
|
||||
"requests[security]>=0.12.1",
|
||||
"matrix_client",
|
||||
"distro",
|
||||
"click",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -79,7 +79,7 @@ try:
|
|||
from setuptools import find_packages, setup
|
||||
|
||||
package_info.update(setuptools_info)
|
||||
package_info['packages'] = find_packages(exclude=['tests'])
|
||||
package_info["packages"] = find_packages(exclude=["tests"])
|
||||
|
||||
except ImportError:
|
||||
from distutils.core import setup
|
||||
|
@ -89,12 +89,12 @@ except ImportError:
|
|||
try:
|
||||
import requests
|
||||
|
||||
assert LooseVersion(requests.__version__) >= LooseVersion('0.12.1')
|
||||
assert LooseVersion(requests.__version__) >= LooseVersion("0.12.1")
|
||||
except (ImportError, AssertionError):
|
||||
print("requests >=0.12.1 is not installed", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
package_info['packages'] = ['zulip']
|
||||
package_info["packages"] = ["zulip"]
|
||||
|
||||
|
||||
setup(**package_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue