Adopt pyproject.toml (#89)

* ditching setup.py in favour of pyproject.toml; bump to 0.3.2

* bump to 0.3.3
This commit is contained in:
ian_Cin
2023-11-29 14:58:35 +07:00
committed by GitHub
parent 8e0779a22d
commit 4256030b4f
4 changed files with 75 additions and 79 deletions

View File

@@ -53,8 +53,11 @@ jobs:
- name: Get cache key
id: get-cache-key
# using tomli so that it works on windows. From python 3.11, this can be switched to the
# built-in tomllib
run: |
package_version=$(python setup.py --version)
pip install tomli
package_version=$(python -c "import tomli; print(tomli.load(open('pyproject.toml', 'rb'))['project']['version'])")
cache_key="${{ runner.os }}-py${{ matrix.python-version }}-v${package_version}"
echo "key=$cache_key" | tee -a ${{ matrix.GITHUB_OUTPUT }}