Skip to content

Commit ccd301e

Browse files
Migrate setup.py to setup.cfg
1 parent 5ee69ce commit ccd301e

File tree

2 files changed

+51
-48
lines changed

2 files changed

+51
-48
lines changed

setup.cfg

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[metadata]
2+
name = pylint-pytest
3+
version = 1.1.2
4+
author = Reverb Chu
5+
author_email = pylint-pytest@reverbc.tw
6+
maintainer = Reverb Chu
7+
maintainer_email = pylint-pytest@reverbc.tw
8+
license = MIT
9+
url = https://github.com/reverbc/pylint-pytest
10+
description = A Pylint plugin to suppress pytest-related false positives.
11+
long_description = file: README.md
12+
long_description_content_type = text/markdown
13+
classifiers =
14+
Development Status :: 5 - Production/Stable
15+
Intended Audience :: Developers
16+
Topic :: Software Development :: Testing
17+
Topic :: Software Development :: Quality Assurance
18+
Programming Language :: Python
19+
Programming Language :: Python :: 3
20+
Programming Language :: Python :: 3.6
21+
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
23+
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
25+
Programming Language :: Python :: 3.11
26+
Programming Language :: Python :: Implementation :: CPython
27+
Operating System :: OS Independent
28+
License :: OSI Approved :: MIT License
29+
keywords =
30+
pylint
31+
pytest
32+
plugin
33+
34+
[options]
35+
packages = find:
36+
install_requires =
37+
pylint<3
38+
pytest>=4.6
39+
python_requires = >=3.6
40+
tests_require =
41+
pytest
42+
pytest-cov
43+
pylint
44+
45+
[options.packages.find]
46+
exclude =
47+
tests
48+
sandbox
49+
150
[aliases]
251
test = pytest
352

setup.py

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
#!/usr/bin/env python
1+
from setuptools import setup
22

3-
from os import path
4-
5-
from setuptools import find_packages, setup
6-
7-
here = path.abspath(path.dirname(__file__))
8-
with open(path.join(here, "README.md")) as fin:
9-
long_description = fin.read()
10-
11-
12-
setup(
13-
name="pylint-pytest",
14-
version="1.1.2",
15-
author="Reverb Chu",
16-
author_email="pylint-pytest@reverbc.tw",
17-
maintainer="Reverb Chu",
18-
maintainer_email="pylint-pytest@reverbc.tw",
19-
license="MIT",
20-
url="https://github.com/reverbc/pylint-pytest",
21-
description="A Pylint plugin to suppress pytest-related false positives.",
22-
long_description=long_description,
23-
long_description_content_type="text/markdown",
24-
packages=find_packages(exclude=["tests", "sandbox"]),
25-
install_requires=[
26-
"pylint<3",
27-
"pytest>=4.6",
28-
],
29-
python_requires=">=3.6",
30-
classifiers=[
31-
"Development Status :: 5 - Production/Stable",
32-
"Intended Audience :: Developers",
33-
"Topic :: Software Development :: Testing",
34-
"Topic :: Software Development :: Quality Assurance",
35-
"Programming Language :: Python",
36-
"Programming Language :: Python :: 3",
37-
"Programming Language :: Python :: 3.6",
38-
"Programming Language :: Python :: 3.7",
39-
"Programming Language :: Python :: 3.8",
40-
"Programming Language :: Python :: 3.9",
41-
"Programming Language :: Python :: 3.10",
42-
"Programming Language :: Python :: 3.11",
43-
"Programming Language :: Python :: Implementation :: CPython",
44-
"Operating System :: OS Independent",
45-
"License :: OSI Approved :: MIT License",
46-
],
47-
tests_require=["pytest", "pytest-cov", "pylint"],
48-
keywords=["pylint", "pytest", "plugin"],
49-
)
3+
setup()

0 commit comments

Comments
 (0)