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",
46 extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
47 test_suite="tests.test_black",
49 "Development Status :: 4 - Beta",
50 "Environment :: Console",
51 "Intended Audience :: Developers",
52 "License :: OSI Approved :: MIT License",
53 "Operating System :: OS Independent",
54 "Programming Language :: Python",
55 "Programming Language :: Python :: 3.6",
56 "Programming Language :: Python :: 3.7",
57 "Programming Language :: Python :: 3.8",
58 "Programming Language :: Python :: 3 :: Only",
59 "Topic :: Software Development :: Libraries :: Python Modules",
60 "Topic :: Software Development :: Quality Assurance",
64 "black=black:patched_main",
65 "blackd=blackd:patched_main [d]",