diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-23 23:29:53 +0200 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2021-12-23 23:29:53 +0200 |
| commit | 423050f2fbbe3b64b8f4daf369318a212caf07c8 (patch) | |
| tree | 44afad8d6a381bbe4e281af5a844f709cd52854d | |
| parent | 39a2d5a9d1ab42e077618b65b66e6aeb22541a66 (diff) | |
| download | wheel-git-423050f2fbbe3b64b8f4daf369318a212caf07c8.tar.gz | |
Use build isolation when building wheel itself
| -rw-r--r-- | .github/workflows/publish.yml | 5 | ||||
| -rw-r--r-- | pyproject.toml | 3 | ||||
| -rw-r--r-- | setup.cfg | 2 | ||||
| -rw-r--r-- | tox.ini | 1 |
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" @@ -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] @@ -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} |
