Skip to content

Commit 540be67

Browse files
authored
fixes: python -m build fails (#14)
1 parent b36b331 commit 540be67

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/main.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
toxenv: pillow8.x
2222
- python-version: '3.11'
2323
toxenv: pillow9.x
24+
- python-version: '3.11'
25+
toxenv: sdist
26+
- python-version: '3.11'
27+
toxenv: wheel
2428
steps:
2529
- uses: actions/checkout@v3
2630
- name: Set up Python ${{ matrix.python-version }}
@@ -34,4 +38,4 @@ jobs:
3438
- name: Run tox
3539
env:
3640
TOXENV: ${{ matrix.toxenv }}
37-
run: tox -- -v
41+
run: tox -- -v

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "docutils"]
3+
build-backend = "setuptools.build_meta"

tox.ini

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py{310,311},pillow{8.x,9.x},flake8
2+
envlist=py{310,311},pillow{8.x,9.x},flake8,sdist,wheel
33

44
[testenv]
55
usedevelop = True
@@ -16,6 +16,16 @@ passenv =
1616
commands =
1717
pytest
1818

19+
[testenv:sdist]
20+
description = Build a source distribution
21+
deps = build
22+
commands = python -m build --sdist
23+
24+
[testenv:wheel]
25+
description = Build a binary distribution
26+
deps = build
27+
commands = python -m build --wheel
28+
1929
[testenv:flake8]
2030
description =
2131
Run style checks.

0 commit comments

Comments
 (0)