Skip to content

Commit 55a8e03

Browse files
rupertKOLANICH
andauthored
Add setup.cfg (#26)
* Moved the metadata into setup.cfg * Re-add tool config * Add min black version Co-authored-by: KOLANICH <[email protected]>
1 parent 78c182e commit 55a8e03

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

setup.cfg

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
[metadata]
2+
name = pyls-black
3+
version = 0.4.4
4+
author = Rupert Bedford
5+
author_email = [email protected]
6+
description = Black plugin for the Python Language Server
7+
url = https://github.com/rupert/pyls-black
8+
long_description = file: README.md
9+
long_description_content_type = text/markdown
10+
classifiers =
11+
Programming Language :: Python :: 3
12+
Programming Language :: Python :: 3.6
13+
Programming Language :: Python :: 3.7
14+
License :: OSI Approved :: MIT License
15+
Operating System :: OS Independent
16+
17+
[options]
18+
packages = find:
19+
install_requires = python-language-server; black>=19.3b0; toml
20+
21+
[options.entry_points]
22+
pyls = pyls_black = pyls_black.plugin
23+
24+
[options.extras_require]
25+
dev = isort; flake8; pytest; mypy; pytest
26+
127
[flake8]
228
max-line-length = 88
329
ignore = E203

setup.py

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
1-
from setuptools import find_packages, setup
1+
from setuptools import setup
22

3-
with open("README.md", "r") as f:
4-
long_description = f.read()
5-
6-
setup(
7-
name="pyls-black",
8-
version="0.4.4",
9-
description="Black plugin for the Python Language Server",
10-
long_description=long_description,
11-
long_description_content_type="text/markdown",
12-
url="https://github.com/rupert/pyls-black",
13-
author="Rupert Bedford",
14-
author_email="[email protected]",
15-
packages=find_packages(exclude=["tests"]),
16-
install_requires=["python-language-server", "black>=19.3b0", "toml"],
17-
extras_require={"dev": ["isort", "flake8", "pytest", "mypy", "pytest"]},
18-
entry_points={"pyls": ["pyls_black = pyls_black.plugin"]},
19-
classifiers=(
20-
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.6",
22-
"Programming Language :: Python :: 3.7",
23-
"License :: OSI Approved :: MIT License",
24-
"Operating System :: OS Independent",
25-
),
26-
)
3+
if __name__ == "__main__":
4+
setup()

0 commit comments

Comments
 (0)