code cleanup and reformat (#423)

This commit is contained in:
jnozsc
2020-01-20 02:47:22 -08:00
committed by Inada Naoki
parent 0f1ff4c9c0
commit 18163d7022
25 changed files with 1409 additions and 1067 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python
import os
import io
import setuptools
@ -10,14 +9,14 @@ if os.name == "posix":
else: # assume windows
from setup_windows import get_config
with io.open('README.md', encoding='utf-8') as f:
with open("README.md", encoding="utf-8") as f:
readme = f.read()
metadata, options = get_config()
metadata['ext_modules'] = [
setuptools.Extension("MySQLdb._mysql", sources=['MySQLdb/_mysql.c'], **options)
metadata["ext_modules"] = [
setuptools.Extension("MySQLdb._mysql", sources=["MySQLdb/_mysql.c"], **options)
]
metadata['long_description'] = readme
metadata['long_description_content_type'] = "text/markdown"
metadata['python_requires'] = '>=3.5'
metadata["long_description"] = readme
metadata["long_description_content_type"] = "text/markdown"
metadata["python_requires"] = ">=3.5"
setuptools.setup(**metadata)