From 314ff7939de914e19a341df2d81e97ac056d5950 Mon Sep 17 00:00:00 2001 From: Takayuki SHIMIZUKAWA Date: Sun, 16 Jun 2024 06:37:36 +0000 Subject: [PATCH] Remove using setup.py --- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yml | 14 ++++---------- README.rst | 4 ---- dev-requires.txt | 1 + 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40ee92a..216cc56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,12 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U setuptools twine wheel + python -m pip install -U setuptools_scm build twine - name: Build package run: | - python setup.py --version - python setup.py sdist --format=gztar bdist_wheel + python -m build --version + python -m build twine check dist/* - name: Upload packages to Jazzband diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b294935..f985cd3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,19 +39,13 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Get pip cache dir - id: pip-cache - run: | - echo "::set-output name=dir::$(pip cache dir)" - - - name: Cache - uses: actions/cache@v4 + - uses: actions/cache@v4 with: - path: ${{ steps.pip-cache.outputs.dir }} + path: ~/.cache/pip key: - ${{ matrix.python-version }}-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/tox.ini') }} + ${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }} restore-keys: | - ${{ matrix.python-version }}-v1- + ${{ matrix.python-version }}-pip- - name: Install dependencies run: | diff --git a/README.rst b/README.rst index b50a40a..3810ea8 100644 --- a/README.rst +++ b/README.rst @@ -71,7 +71,3 @@ LICENSE ======= Apache Software License - -.. CHANGES.rst will be concatenated here by setup.py - - diff --git a/dev-requires.txt b/dev-requires.txt index bc8dabe..f11e7f5 100644 --- a/dev-requires.txt +++ b/dev-requires.txt @@ -3,4 +3,5 @@ wheel setuptools_scm tox>=3.5 build +twine -e ./