summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2021-12-23 23:29:53 +0200
committerAlex Grönholm <alex.gronholm@nextday.fi>2021-12-23 23:29:53 +0200
commit423050f2fbbe3b64b8f4daf369318a212caf07c8 (patch)
tree44afad8d6a381bbe4e281af5a844f709cd52854d
parent39a2d5a9d1ab42e077618b65b66e6aeb22541a66 (diff)
downloadwheel-git-423050f2fbbe3b64b8f4daf369318a212caf07c8.tar.gz
Use build isolation when building wheel itself
-rw-r--r--.github/workflows/publish.yml5
-rw-r--r--pyproject.toml3
-rw-r--r--setup.cfg2
-rw-r--r--tox.ini1
4 files changed, 8 insertions, 3 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 211f519..a40c6cb 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -15,10 +15,11 @@ jobs:
with:
python-version: 3.x
- name: Install dependencies
- run: pip install .
+ run: pip install build -e .
- name: Create packages
- run: python setup.py sdist bdist_wheel
+ run: python -m build -n -s -w .
- name: Upload packages
uses: pypa/gh-action-pypi-publish@master
with:
+ user: __token__
password: ${{ secrets.pypi_password }}
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..e047bea
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["setuptools >= 45.2.0"]
+build-backend = "setuptools.build_meta"
diff --git a/setup.cfg b/setup.cfg
index 9c82cc6..8f95a5f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -31,7 +31,7 @@ package_dir=
= src
packages = find:
python_requires = >=3.7
-setup_requires = setuptools >= 40.9.0
+setup_requires = setuptools >= 45.2.0
zip_safe = False
[options.packages.find]
diff --git a/tox.ini b/tox.ini
index 21166a9..f16b59d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@
envlist = py37, py38, py39, py310, pypy3.7, flake8
minversion = 3.3.0
skip_missing_interpreters = true
+isolated_build = true
[testenv]
commands = {envpython} -b -m pytest -W always {posargs}