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
PEP 621: Migrate to pyproject.toml #291
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9303d0d
PEP 621: Migrate to pyproject.toml
cclauss ee77612
Update .github/workflows/ci.yml
cclauss a5c25ba
3.11.0-rc - 3.11
cclauss 5ec8482
Upgrade minimum Python from 3.6 to 3.7
cclauss 37909f2
Merge branch 'main' into pyproject.toml
cooperlees File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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
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
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,2 +1,67 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "flake8-bugbear" | ||
authors = [{name = "Łukasz Langa", email = "lukasz@langa.pl"}] | ||
license = {text = "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", | ||
] | ||
readme = "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.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: Quality Assurance", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = ["flake8 >= 3.0.0", "attrs>=19.2.0"] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/PyCQA/flake8-bugbear" | ||
"Change Log" = "https://github.com/PyCQA/flake8-bugbear#change-log" | ||
|
||
[project.entry-points] | ||
"flake8.extension" = {B = "bugbear:BugBearChecker"} | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"coverage", | ||
"hypothesis", | ||
"hypothesmith>=0.2", | ||
"pre-commit", | ||
] | ||
|
||
[tool.setuptools] | ||
py-modules = ["bugbear"] | ||
zip-safe = false | ||
# test-suite = "tests.test_bugbear" # Deprecated since setuptools v41.5.0 | ||
license-files = ["LICENSE"] | ||
include-package-data = false | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "bugbear.__version__"} | ||
|
||
[tool.isort] | ||
profile = "black" | ||
profile = "black" |
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,57 +1,3 @@ | ||
[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] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't wait for flake8 to support config in the toml There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My sense is that will take time... |
||
# Keep in sync with .flake8. This copy here is needed for source packages | ||
# to be able to pass tests without failing selfclean check. | ||
|
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.
Doesn't this default to that or did I break it? Happy to be more explicit here too.
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.
It used to be REQUIRED but perhaps they fixed it after user complaints. If your mods work then it is now optional.
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.
https://github.com/pypa/bandersnatch/blob/main/.github/workflows/pypi_upload.yml#L18 - Ahh seems I did
*
here to get latest available python 3There 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.
That would actually autoupgrade to Python 4!!! You are brave. ;-)
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.
Ya, I roll forward and just fix when things break everywhere ... rather than pin and forget to move things like most people seem to prefer to do which I don't get ...