diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2020-01-27 22:11:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-27 22:11:57 +0200 |
| commit | 510a531af1415638ef5f0b9f443762dec62ed4fe (patch) | |
| tree | 571aa9a9a27b58c02fe5a4c26b7fcea0a8f7011a /.github | |
| parent | ca444968b544a9685c3c4fbc73715d25b90f4c46 (diff) | |
| download | wheel-git-510a531af1415638ef5f0b9f443762dec62ed4fe.tar.gz | |
Fixed installation from sdist (#334)
Wheel cannot use pep517 yet because the installation process involves installing wheel because the setuptools build backend declares it as a dependency for building wheels. A future update of pip may solve this problem.
Setuptools_scm, on the other hand, requires wheel as a build time dependency so if somebody tries to install wheel using `--no-binary=:all:`, it also creates a circular dependency.
Fixes #332.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/codeqa-test-tag.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/publish.yml | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/codeqa-test-tag.yml b/.github/workflows/codeqa-test-tag.yml index 5741abb..da7e16c 100644 --- a/.github/workflows/codeqa-test-tag.yml +++ b/.github/workflows/codeqa-test-tag.yml @@ -39,7 +39,11 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Upgrade setuptools + run: pip install "setuptools >= 40.9" + - name: Install the project + run: "pip install --no-binary=:all: ." + - name: Install test dependencies run: pip install .[test] - name: Test with pytest run: pytest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 36aa281..4345c91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,9 +13,11 @@ jobs: with: python-version: 3.x - name: Install dependencies - run: pip install pep517 + run: | + pip install "setuptools >= 40.9" + pip install . - name: Create packages - run: python -m pep517.build --binary --source --out-dir dist/ . + run: python setup.py sdist bdist_wheel - name: Upload packages uses: pypa/gh-action-pypi-publish@v1.0.0a0 with: |
