diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 06a13cdf0..3bf9d5734 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,11 +24,14 @@ jobs: node-version: "14" - run: npm --version - - name: Install release tools - run: pip install "zest.releaser[recommended]" + - name: Build Admin UI + run: make build-kinto-admin + + - name: Install pypa/build + run: python3 -m pip install build - name: Build a binary wheel and a source tarball - run: release --no-input + run: python3 -m build - name: Store the distribution packages uses: actions/upload-artifact@v3 diff --git a/docs/community.rst b/docs/community.rst index d8e7690a3..d5221a4d9 100644 --- a/docs/community.rst +++ b/docs/community.rst @@ -283,7 +283,7 @@ How to release In order to prepare a new release, we are following the following steps. -The `prerelease` and `postrelease` commands are coming from `zest.releaser +The ``prerelease`` and ``postrelease`` commands are coming from `zest.releaser `_, which should already be installed along with other development requirements. diff --git a/kinto/plugins/admin/release_hook.py b/kinto/plugins/admin/release_hook.py deleted file mode 100644 index c89950799..000000000 --- a/kinto/plugins/admin/release_hook.py +++ /dev/null @@ -1,17 +0,0 @@ -""" -This module is a release hook for `zest.releaser `_ -in order to build the Kinto Admin UI bundle just before it is packaged. - -* See hooks in :file:`setup.cfg` -* `Documentation `_ -""" - -import subprocess - - -def after_checkout(data): - """During the ``release`` process, the current tag is checked out in a - temporary folder. We build the Kinto Admin at this step, just before - the files are gathered for the final Python package.""" - - subprocess.run(["make", "build-kinto-admin"]) diff --git a/setup.cfg b/setup.cfg index d3759ce4f..3a12e4a29 100644 --- a/setup.cfg +++ b/setup.cfg @@ -84,16 +84,11 @@ monitoring = [aliases] test=pytest -[zest.releaser] -create-wheel = yes -releaser.after_checkout = kinto.plugins.admin.release_hook.after_checkout - [bdist_wheel] python_tag=cp3 [coverage:run] branch = True -omit = kinto/plugins/admin/release_hook.py [flake8] max-line-length = 99