Skip to content

Commit 67ef09e

Browse files
committed
BLD: Build wheels and sdist distributions via the build package
1 parent 69def5d commit 67ef09e

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

.github/workflows/pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
python --version
2222
2323
- name: Install dependencies
24-
run: pip install .[build]
24+
run: pip build
2525

2626
- name: Build the package
27-
run: python setup.py sdist bdist_wheel
27+
run: python -m build --sdist --wheel
2828

2929
- name: Publish the package
3030
uses: pypa/gh-action-pypi-publish@release/v1

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
'sphinx_rtd_theme'
2323
]
2424

25-
# Requirements for building wheels
26-
build_require = [
27-
'twine',
28-
'wheel',
29-
]
30-
3125
tests_require_no_optional = [
3226
'pytest>=5.4.0',
3327
'pytest-cov',
@@ -40,7 +34,6 @@
4034
]
4135
tests_require += tests_require_no_optional
4236
tests_require += docs_require
43-
tests_require += build_require
4437

4538
setup(
4639
name='AssertionLib',
@@ -98,6 +91,5 @@
9891
'doc': docs_require,
9992
'test': tests_require,
10093
'test_no_optional': tests_require_no_optional,
101-
'build': build_require,
10294
}
10395
)

tests/test_build.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)