Skip to content

Commit b761b54

Browse files
committed
Use "whey" as the build backend.
1 parent c38bcd2 commit b761b54

4 files changed

Lines changed: 52 additions & 8 deletions

File tree

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ tag = True
1414
[bumpversion:file:flake8_dunder_all/__init__.py]
1515

1616
[bumpversion:file:repo_helper.yml]
17+
18+
[bumpversion:file:pyproject.toml]

pyproject.toml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
11
[build-system]
2-
requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",]
3-
build-backend = "setuptools.build_meta"
2+
requires = [ "whey",]
3+
build-backend = "whey"
4+
5+
[project]
6+
name = "flake8-dunder-all"
7+
version = "0.1.5"
8+
description = "A Flake8 plugin and pre-commit hook which checks to ensure modules have defined '__all__'."
9+
readme = "README.rst"
10+
keywords = [ "flake8",]
11+
dynamic = [ "requires-python", "classifiers", "dependencies",]
12+
[[project.authors]]
13+
email = "dominic@davis-foster.co.uk"
14+
name = "Dominic Davis-Foster"
15+
16+
[project.license]
17+
file = "LICENSE"
18+
19+
[project.urls]
20+
Homepage = "https://github.com/domdfcoding/flake8-dunder-all"
21+
"Issue Tracker" = "https://github.com/domdfcoding/flake8-dunder-all/issues"
22+
"Source Code" = "https://github.com/domdfcoding/flake8-dunder-all"
23+
Documentation = "https://flake8-dunder-all.readthedocs.io/en/latest"
24+
25+
[project.scripts]
26+
ensure_dunder_all = "flake8_dunder_all.__main__:main"
27+
ensure-dunder-all = "flake8_dunder_all.__main__:main"
28+
29+
[tool.whey]
30+
base-classifiers = [
31+
"Development Status :: 4 - Beta",
32+
"Framework :: Flake8",
33+
"Intended Audience :: Developers",
34+
"Topic :: Utilities",
35+
"Typing :: Typed",
36+
]
37+
python-versions = [ "3.6", "3.7", "3.8", "3.9",]
38+
python-implementations = [ "CPython", "PyPy",]
39+
platforms = [ "Windows", "macOS", "Linux",]
40+
license-key = "MIT"
41+
package = "flake8_dunder_all"
42+
43+
[project.entry-points."flake8.extension"]
44+
DUNDER_ALL = "flake8_dunder_all:Plugin"

repo_helper.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ conda_channels:
1313
- conda-forge
1414

1515
python_deploy_version: 3.6
16+
use_whey: True
17+
sphinx_html_theme: furo
18+
standalone_contrib_guide: true
1619

1720
# Versions to run tests for
1821
python_versions:
@@ -42,8 +45,5 @@ entry_points:
4245
flake8.extension:
4346
- DUNDER_ALL=flake8_dunder_all:Plugin
4447

45-
sphinx_html_theme: furo
46-
standalone_contrib_guide: true
47-
4848
keywords:
4949
- flake8

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ commands = sphinx-build -M html . ./build {posargs}
4848
skip_install = True
4949
changedir = {toxinidir}
5050
deps =
51-
twine>=3.2.0
52-
pep517>=0.9.1
51+
virtualenv
52+
git+https://github.com/pypa/build
5353
check-wheel-contents>=0.1.0
54+
twine>=3.2.0
5455
commands =
55-
python -m pep517.build --source --binary "{toxinidir}"
56+
python -m build --sdist --wheel "{toxinidir}"
5657
twine check dist/*.tar.gz dist/*.whl
5758
check-wheel-contents dist/
5859

0 commit comments

Comments
 (0)