-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate metadata from setup.py to setup.cfg #288
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,61 @@ | ||
[metadata] | ||
license_file = LICENSE | ||
name = flake8-bugbear | ||
version = attr: bugbear.__version__ | ||
author = Łukasz Langa | ||
author_email = lukasz@langa.pl | ||
license = MIT | ||
description = A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle. | ||
keywords = | ||
flake8 | ||
bugbear | ||
bugs | ||
pyflakes | ||
pylint | ||
linter | ||
qa | ||
url = https://github.com/PyCQA/flake8-bugbear | ||
long_description = file: README.rst | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Framework :: Flake8 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3 :: Only | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Software Development :: Quality Assurance | ||
project_urls = | ||
Change Log = https://github.com/PyCQA/flake8-bugbear#change-log | ||
|
||
[options] | ||
py_modules = bugbear | ||
zip_safe = False | ||
install_requires = flake8 >= 3.0.0; attrs>=19.2.0 | ||
python_requires = >=3.6 | ||
test_suite = tests.test_bugbear | ||
|
||
[options.entry_points] | ||
flake8.extension = B = bugbear:BugBearChecker | ||
|
||
[options.extras_require] | ||
dev = | ||
coverage | ||
hypothesis | ||
hypothesmith>=0.2 | ||
pre-commit | ||
|
||
[flake8] | ||
# Keep in sync with .flake8. This copy here is needed for source packages | ||
# to be able to pass tests without failing selfclean check. | ||
ignore = E203, E302, E501, E999, W503 | ||
max-line-length = 88 | ||
max-complexity = 12 | ||
select = B,C,E,F,W,B9 | ||
|
||
[metadata] | ||
license_file = LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,5 @@ | ||
# Copyright (C) 2016-2021 Łukasz Langa | ||
|
||
import ast | ||
import os | ||
import re | ||
import sys | ||
|
||
from setuptools import setup | ||
|
||
assert sys.version_info >= (3, 6, 0), "bugbear requires Python 3.6+" | ||
|
||
|
||
current_dir = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(current_dir, "README.rst"), encoding="utf8") as ld_file: | ||
long_description = ld_file.read() | ||
|
||
|
||
_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)") | ||
|
||
|
||
with open(os.path.join(current_dir, "bugbear.py"), "r") as f: | ||
version = _version_re.search(f.read()).group("version") | ||
version = str(ast.literal_eval(version)) | ||
|
||
|
||
setup( | ||
name="flake8-bugbear", | ||
version=version, | ||
description=( | ||
"A plugin for flake8 finding likely bugs and design problems " | ||
"in your program. Contains warnings that don't belong in " | ||
"pyflakes and pycodestyle." | ||
), | ||
long_description=long_description, | ||
keywords="flake8 bugbear bugs pyflakes pylint linter qa", | ||
author="Łukasz Langa", | ||
author_email="lukasz@langa.pl", | ||
url="https://github.com/PyCQA/flake8-bugbear", | ||
license="MIT", | ||
py_modules=["bugbear"], | ||
zip_safe=False, | ||
python_requires=">=3.6", | ||
install_requires=["flake8 >= 3.0.0", "attrs>=19.2.0"], | ||
test_suite="tests.test_bugbear", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Framework :: Flake8", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: Quality Assurance", | ||
], | ||
entry_points={"flake8.extension": ["B = bugbear:BugBearChecker"]}, | ||
extras_require={ | ||
"dev": ["coverage", "hypothesis", "hypothesmith>=0.2", "pre-commit"] | ||
}, | ||
project_urls={"Change Log": "https://github.com/PyCQA/flake8-bugbear#change-log"}, | ||
) | ||
setup() |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL - This will help releases. Thanks.