All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # Copyright (C) 2018 Łukasz Langa
2 from setuptools import setup
5 assert sys.version_info >= (3, 6, 0), "black requires Python 3.6+"
6 from pathlib import Path # noqa E402
8 CURRENT_DIR = Path(__file__).parent
11 def get_long_description() -> str:
12 readme_md = CURRENT_DIR / "README.md"
13 with open(readme_md, encoding="utf8") as ld_file:
20 "write_to": "_version.py",
21 "write_to_template": 'version = "{version}"\n',
23 description="The uncompromising code formatter.",
24 long_description=get_long_description(),
25 long_description_content_type="text/markdown",
26 keywords="automation formatter yapf autopep8 pyfmt gofmt rustfmt",
27 author="Łukasz Langa",
28 author_email="lukasz@langa.pl",
29 url="https://github.com/psf/black",
31 py_modules=["black", "blackd", "_version"],
32 packages=["blib2to3", "blib2to3.pgen2"],
33 package_data={"blib2to3": ["*.txt"]},
34 python_requires=">=3.6",
44 extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
45 test_suite="tests.test_black",
47 "Development Status :: 4 - Beta",
48 "Environment :: Console",
49 "Intended Audience :: Developers",
50 "License :: OSI Approved :: MIT License",
51 "Operating System :: OS Independent",
52 "Programming Language :: Python",
53 "Programming Language :: Python :: 3.6",
54 "Programming Language :: Python :: 3.7",
55 "Programming Language :: Python :: 3.8",
56 "Programming Language :: Python :: 3 :: Only",
57 "Topic :: Software Development :: Libraries :: Python Modules",
58 "Topic :: Software Development :: Quality Assurance",
62 "black=black:patched_main",
63 "blackd=blackd:patched_main [d]",