diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5d5ba16..e298f9bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,14 +34,15 @@ 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 # This step is only run when a new tag is pushed # all previous steps always run in order to exercise them diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4dfca1ce..40ddffb8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/dev-requirements.txt b/dev-requirements.txt index 57592762..245b425e 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,4 @@ +build codecov conda-lock pre-commit @@ -5,4 +6,3 @@ pytest-cov pytest>=4.6 pyyaml requests_mock -wheel