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. 20
      setup.py

20
setup.py

@ -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,19 +66,20 @@ packages = [
'discord.ext.tasks', 'discord.ext.tasks',
] ]
setup(name='discord.py', setup(
name='discord.py',
author='Rapptz', author='Rapptz',
url='https://github.com/Rapptz/discord.py', url='https://github.com/Rapptz/discord.py',
project_urls={ project_urls={
"Documentation": "https://discordpy.readthedocs.io/en/latest/", 'Documentation': 'https://discordpy.readthedocs.io/en/latest/',
"Issue tracker": "https://github.com/Rapptz/discord.py/issues", 'Issue tracker': 'https://github.com/Rapptz/discord.py/issues',
}, },
version=version, version=version,
packages=packages, packages=packages,
license='MIT', license='MIT',
description='A Python wrapper for the Discord API', description='A Python wrapper for the Discord API',
long_description=readme, long_description=readme,
long_description_content_type="text/x-rst", long_description_content_type='text/x-rst',
include_package_data=True, include_package_data=True,
install_requires=requirements, install_requires=requirements,
extras_require=extras_require, extras_require=extras_require,
@ -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