Browse Source

Reformat code with black and use single quotes

pull/9047/merge
TheMaster3558 2 years ago
committed by GitHub
parent
commit
5600bf1d8b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 50
      setup.py

50
setup.py

@ -3,7 +3,7 @@ import re
requirements = [] requirements = []
with open('requirements.txt') as f: with open('requirements.txt') as f:
requirements = f.read().splitlines() requirements = f.read().splitlines()
version = '' version = ''
with open('discord/__init__.py') as f: with open('discord/__init__.py') as f:
@ -16,13 +16,12 @@ if version.endswith(('a', 'b', 'rc')):
# append version identifier based on commit count # append version identifier based on commit count
try: try:
import subprocess import subprocess
p = subprocess.Popen(['git', 'rev-list', '--count', 'HEAD'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen(['git', 'rev-list', '--count', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate() out, err = p.communicate()
if out: if out:
version += out.decode('utf-8').strip() version += out.decode('utf-8').strip()
p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate() out, err = p.communicate()
if out: if out:
version += '+g' + out.decode('utf-8').strip() version += '+g' + out.decode('utf-8').strip()
@ -54,7 +53,7 @@ extras_require = {
'pytest-cov', 'pytest-cov',
'pytest-mock', 'pytest-mock',
'typing-extensions>=4.3,<5', 'typing-extensions>=4.3,<5',
] ],
} }
packages = [ packages = [
@ -67,24 +66,25 @@ packages = [
'discord.ext.tasks', 'discord.ext.tasks',
] ]
setup(name='discord.py', setup(
author='Rapptz', name='discord.py',
url='https://github.com/Rapptz/discord.py', author='Rapptz',
project_urls={ url='https://github.com/Rapptz/discord.py',
"Documentation": "https://discordpy.readthedocs.io/en/latest/", project_urls={
"Issue tracker": "https://github.com/Rapptz/discord.py/issues", 'Documentation': 'https://discordpy.readthedocs.io/en/latest/',
}, 'Issue tracker': 'https://github.com/Rapptz/discord.py/issues',
version=version, },
packages=packages, version=version,
license='MIT', packages=packages,
description='A Python wrapper for the Discord API', license='MIT',
long_description=readme, description='A Python wrapper for the Discord API',
long_description_content_type="text/x-rst", long_description=readme,
include_package_data=True, long_description_content_type='text/x-rst',
install_requires=requirements, include_package_data=True,
extras_require=extras_require, install_requires=requirements,
python_requires='>=3.8.0', extras_require=extras_require,
classifiers=[ python_requires='>=3.8.0',
classifiers=[
'Development Status :: 5 - Production/Stable', 'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License', 'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
@ -98,5 +98,5 @@ setup(name='discord.py',
'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities', 'Topic :: Utilities',
'Typing :: Typed', 'Typing :: Typed',
] ],
) )

Loading…
Cancel
Save