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
9 sys.path.insert(0, str(CURRENT_DIR)) # for setuptools.build_meta
12 def get_long_description() -> str:
13 readme_md = CURRENT_DIR / "README.md"
14 with open(readme_md, encoding="utf8") as ld_file:
21 "write_to": "_black_version.py",
22 "write_to_template": 'version = "{version}"\n',
24 description="The uncompromising code formatter.",
25 long_description=get_long_description(),
26 long_description_content_type="text/markdown",
27 keywords="automation formatter yapf autopep8 pyfmt gofmt rustfmt",
28 author="Łukasz Langa",
29 author_email="lukasz@langa.pl",
30 url="https://github.com/psf/black",
32 py_modules=["black", "blackd", "_black_version"],
33 packages=["blib2to3", "blib2to3.pgen2"],
34 package_data={"blib2to3": ["*.txt"]},
35 python_requires=">=3.6",
45 "dataclasses>=0.6; python_version < '3.7'",
47 extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
48 test_suite="tests.test_black",
50 "Development Status :: 4 - Beta",
51 "Environment :: Console",
52 "Intended Audience :: Developers",
53 "License :: OSI Approved :: MIT License",
54 "Operating System :: OS Independent",
55 "Programming Language :: Python",
56 "Programming Language :: Python :: 3.6",
57 "Programming Language :: Python :: 3.7",
58 "Programming Language :: Python :: 3.8",
59 "Programming Language :: Python :: 3 :: Only",
60 "Topic :: Software Development :: Libraries :: Python Modules",
61 "Topic :: Software Development :: Quality Assurance",
65 "black=black:patched_main",
66 "blackd=blackd:patched_main [d]",