Skip to content

Commit

Permalink
Reformat code with black and use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster3558 authored Jan 7, 2023
1 parent d257b0c commit 5600bf1
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

requirements = []
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = f.read().splitlines()

version = ''
with open('discord/__init__.py') as f:
Expand All @@ -16,13 +16,12 @@
# append version identifier based on commit count
try:
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()
if out:
version += out.decode('utf-8').strip()
p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen(['git', 'rev-parse', '--short', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
if out:
version += '+g' + out.decode('utf-8').strip()
Expand Down Expand Up @@ -54,7 +53,7 @@
'pytest-cov',
'pytest-mock',
'typing-extensions>=4.3,<5',
]
],
}

packages = [
Expand All @@ -67,24 +66,25 @@
'discord.ext.tasks',
]

setup(name='discord.py',
author='Rapptz',
url='https://github.com/Rapptz/discord.py',
project_urls={
"Documentation": "https://discordpy.readthedocs.io/en/latest/",
"Issue tracker": "https://github.com/Rapptz/discord.py/issues",
},
version=version,
packages=packages,
license='MIT',
description='A Python wrapper for the Discord API',
long_description=readme,
long_description_content_type="text/x-rst",
include_package_data=True,
install_requires=requirements,
extras_require=extras_require,
python_requires='>=3.8.0',
classifiers=[
setup(
name='discord.py',
author='Rapptz',
url='https://github.com/Rapptz/discord.py',
project_urls={
'Documentation': 'https://discordpy.readthedocs.io/en/latest/',
'Issue tracker': 'https://github.com/Rapptz/discord.py/issues',
},
version=version,
packages=packages,
license='MIT',
description='A Python wrapper for the Discord API',
long_description=readme,
long_description_content_type='text/x-rst',
include_package_data=True,
install_requires=requirements,
extras_require=extras_require,
python_requires='>=3.8.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
Expand All @@ -98,5 +98,5 @@
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Typing :: Typed',
]
],
)

0 comments on commit 5600bf1

Please sign in to comment.