]> git.madduck.net Git - etc/vim.git/blob - setup.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

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.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

d4e940584ed8c60e94b8956ecc2da611f217128a
[etc/vim.git] / setup.py
1 # Copyright (C) 2018 Łukasz Langa
2 from setuptools import setup
3 import sys
4
5 assert sys.version_info >= (3, 6, 0), "black requires Python 3.6+"
6 from pathlib import Path  # noqa E402
7
8 CURRENT_DIR = Path(__file__).parent
9
10
11 def get_long_description() -> str:
12     readme_md = CURRENT_DIR / "README.md"
13     with open(readme_md, encoding="utf8") as ld_file:
14         return ld_file.read()
15
16
17 setup(
18     name="black",
19     use_scm_version={
20         "write_to": "_version.py",
21         "write_to_template": 'version = "{version}"\n',
22     },
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",
30     license="MIT",
31     py_modules=["black", "blackd", "_version"],
32     packages=["blib2to3", "blib2to3.pgen2"],
33     package_data={"blib2to3": ["*.txt"]},
34     python_requires=">=3.6",
35     zip_safe=False,
36     install_requires=[
37         "click>=6.5",
38         "attrs>=18.1.0",
39         "appdirs",
40         "toml>=0.9.4",
41         "typed-ast>=1.3.1",
42     ],
43     extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
44     test_suite="tests.test_black",
45     classifiers=[
46         "Development Status :: 4 - Beta",
47         "Environment :: Console",
48         "Intended Audience :: Developers",
49         "License :: OSI Approved :: MIT License",
50         "Operating System :: OS Independent",
51         "Programming Language :: Python",
52         "Programming Language :: Python :: 3.6",
53         "Programming Language :: Python :: 3.7",
54         "Programming Language :: Python :: 3 :: Only",
55         "Topic :: Software Development :: Libraries :: Python Modules",
56         "Topic :: Software Development :: Quality Assurance",
57     ],
58     entry_points={
59         "console_scripts": [
60             "black=black:patched_main",
61             "blackd=blackd:patched_main [d]",
62         ]
63     },
64 )