Merge pull request #1199 from consideRatio/pr/switch-to-build-package

Create wheels with the build package, stop calling setup.py directly
pull/1200/head
Erik Sundell 2022-10-31 13:50:23 +01:00 zatwierdzone przez GitHub
commit 4a5b8541e7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 14 dodań i 6 usunięć

Wyświetl plik

@ -34,14 +34,22 @@ jobs:
with: with:
python-version: "3.9" python-version: "3.9"
- name: Install dependencies - name: install build requirements
run: | run: |
pip install -r dev-requirements.txt pip install build
pip freeze pip freeze
- name: Build distribution archives - name: build release
run: | run: |
python setup.py sdist bdist_wheel python -m build --sdist --wheel .
ls -l dist
# ref: https://github.com/actions/upload-artifact#readme
- uses: actions/upload-artifact@v3
with:
name: repo2docker-${{ github.sha }}
path: "dist/*"
if-no-files-found: error
# This step is only run when a new tag is pushed # This step is only run when a new tag is pushed
# all previous steps always run in order to exercise them # all previous steps always run in order to exercise them

Wyświetl plik

@ -116,7 +116,7 @@ jobs:
- name: Install repo2docker - name: Install repo2docker
run: | run: |
python setup.py bdist_wheel python -m build --wheel .
pip install dist/*.whl pip install dist/*.whl
# add for mercurial tests # add for mercurial tests

Wyświetl plik

@ -1,3 +1,4 @@
build
codecov codecov
conda-lock conda-lock
pre-commit pre-commit
@ -5,4 +6,3 @@ pytest-cov
pytest>=4.6 pytest>=4.6
pyyaml pyyaml
requests_mock requests_mock
wheel