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:
python-version: "3.9"
- name: Install dependencies
- name: install build requirements
run: |
pip install -r dev-requirements.txt
pip install build
pip freeze
- name: Build distribution archives
- name: build release
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
# all previous steps always run in order to exercise them

Wyświetl plik

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

Wyświetl plik

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