Skip to content

Commit 0fec7e5

Browse files
cclausscooperlees
andauthored
PEP 621: Migrate to pyproject.toml (#291)
* PEP 621: Migrate to pyproject.toml * Update .github/workflows/ci.yml Correct. It will. I was a bit concerned about how long the 3.11 tests take. Co-authored-by: Cooper Lees <[email protected]> * 3.11.0-rc - 3.11 * Upgrade minimum Python from 3.6 to 3.7 Co-authored-by: Cooper Lees <[email protected]>
1 parent 846ba72 commit 0fec7e5

File tree

5 files changed

+71
-57
lines changed

5 files changed

+71
-57
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", '3.11.0-rc - 3.11']
12+
1213
os: [ubuntu-latest]
1314

1415
steps:

.github/workflows/pypi_upload.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Set up Python
1616
uses: actions/setup-python@v4
17+
with:
18+
python-version: 3.x
1719

1820
- name: Install latest pip, setuptools, twine + wheel
1921
run: |

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We use GitHub. To get started I'd suggest visiting https://guides.github.com/
1010

1111
Please make sure you system has the following:
1212

13-
- Python 3.6.0 or greater
13+
- Python 3.7.0 or greater
1414
- git cli client
1515

1616
Also ensure you can authenticate with GitHub via SSH Keys or HTTPS.

pyproject.toml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,67 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "flake8-bugbear"
7+
authors = [{name = "Łukasz Langa", email = "[email protected]"}]
8+
license = {text = "MIT"}
9+
description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle."
10+
keywords = [
11+
"flake8",
12+
"bugbear",
13+
"bugs",
14+
"pyflakes",
15+
"pylint",
16+
"linter",
17+
"qa",
18+
]
19+
readme = "README.rst"
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Environment :: Console",
23+
"Framework :: Flake8",
24+
"Intended Audience :: Developers",
25+
"License :: OSI Approved :: MIT License",
26+
"Operating System :: OS Independent",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3 :: Only",
34+
"Topic :: Software Development :: Libraries :: Python Modules",
35+
"Topic :: Software Development :: Quality Assurance",
36+
]
37+
requires-python = ">=3.7"
38+
dependencies = ["flake8 >= 3.0.0", "attrs>=19.2.0"]
39+
dynamic = ["version"]
40+
41+
[project.urls]
42+
Homepage = "https://github.com/PyCQA/flake8-bugbear"
43+
"Change Log" = "https://github.com/PyCQA/flake8-bugbear#change-log"
44+
45+
[project.entry-points]
46+
"flake8.extension" = {B = "bugbear:BugBearChecker"}
47+
48+
[project.optional-dependencies]
49+
dev = [
50+
"coverage",
51+
"hypothesis",
52+
"hypothesmith>=0.2",
53+
"pre-commit",
54+
]
55+
56+
[tool.setuptools]
57+
py-modules = ["bugbear"]
58+
zip-safe = false
59+
# test-suite = "tests.test_bugbear" # Deprecated since setuptools v41.5.0
60+
license-files = ["LICENSE"]
61+
include-package-data = false
62+
63+
[tool.setuptools.dynamic]
64+
version = {attr = "bugbear.__version__"}
65+
166
[tool.isort]
2-
profile = "black"
67+
profile = "black"

setup.cfg

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
[metadata]
2-
license_file = LICENSE
3-
name = flake8-bugbear
4-
version = attr: bugbear.__version__
5-
author = Łukasz Langa
6-
author_email = [email protected]
7-
license = MIT
8-
description = A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.
9-
keywords =
10-
flake8
11-
bugbear
12-
bugs
13-
pyflakes
14-
pylint
15-
linter
16-
qa
17-
url = https://github.com/PyCQA/flake8-bugbear
18-
long_description = file: README.rst
19-
classifiers =
20-
Development Status :: 5 - Production/Stable
21-
Environment :: Console
22-
Framework :: Flake8
23-
Intended Audience :: Developers
24-
License :: OSI Approved :: MIT License
25-
Operating System :: OS Independent
26-
Programming Language :: Python
27-
Programming Language :: Python :: 3
28-
Programming Language :: Python :: 3.6
29-
Programming Language :: Python :: 3.7
30-
Programming Language :: Python :: 3.8
31-
Programming Language :: Python :: 3.9
32-
Programming Language :: Python :: 3 :: Only
33-
Topic :: Software Development :: Libraries :: Python Modules
34-
Topic :: Software Development :: Quality Assurance
35-
project_urls =
36-
Change Log = https://github.com/PyCQA/flake8-bugbear#change-log
37-
38-
[options]
39-
py_modules = bugbear
40-
zip_safe = False
41-
install_requires = flake8 >= 3.0.0; attrs>=19.2.0
42-
python_requires = >=3.6
43-
test_suite = tests.test_bugbear
44-
45-
[options.entry_points]
46-
flake8.extension = B = bugbear:BugBearChecker
47-
48-
[options.extras_require]
49-
dev =
50-
coverage
51-
hypothesis
52-
hypothesmith>=0.2
53-
pre-commit
54-
551
[flake8]
562
# Keep in sync with .flake8. This copy here is needed for source packages
573
# to be able to pass tests without failing selfclean check.

0 commit comments

Comments
 (0)