kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #1199 from consideRatio/pr/switch-to-build-package
Create wheels with the build package, stop calling setup.py directlypull/1200/head
commit
4a5b8541e7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
build
|
||||
codecov
|
||||
conda-lock
|
||||
pre-commit
|
||||
|
@ -5,4 +6,3 @@ pytest-cov
|
|||
pytest>=4.6
|
||||
pyyaml
|
||||
requests_mock
|
||||
wheel
|
||||
|
|
Ładowanie…
Reference in New Issue