From e784d9ac460b885938d89bec83e6053eea4c44a9 Mon Sep 17 00:00:00 2001 From: Atsushi Togo Date: Mon, 8 Jul 2024 17:15:52 +0900 Subject: [PATCH] Update pypi release workflow --- .github/workflows/publish-to-test-pypi.yml | 21 ++++++--------------- requirements.txt | 5 ----- 2 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 requirements.txt diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 64a45448..65606fbe 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -9,30 +9,21 @@ on: jobs: build-linux: runs-on: ubuntu-latest - defaults: - run: - shell: bash -l {0} strategy: matrix: - python-version: ["3.10", ] + python-version: [3.12, ] steps: - uses: actions/checkout@v4 - # Use conda-incubator/setup-miniconda for precise control of conda infrastructure - - uses: conda-incubator/setup-miniconda@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 with: - auto-update-conda: true - channels: conda-forge - channel-priority: strict python-version: ${{ matrix.python-version }} - name: Make sdist run: | - conda activate test - conda install --yes python=${{ matrix.python-version }} - conda install --yes "libblas=*=*openblas" openblas cmake c-compiler numpy - ./get_nanoversion.sh - cat __nanoversion__.txt - python setup.py sdist + git tag v`grep __version__ phono3py/version.py|awk -F'"' '{print($2)}'` + pip install build + python -m build --sdist - name: Publish package to TestPyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/rc') uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 146789f8..00000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -numpy >= 1.17.0 -PyYAML >= 5.3 -matplotlib >= 2.2.2 -h5py >= 3.0 -phonopy >=2.25,<2.26