diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1b62d65d..930d69fb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools setuptools_scm wheel twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} diff --git a/pyproject.toml b/pyproject.toml index 97d0da25..48deb483 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,15 @@ [build-system] # Minimum requirements for the build system to execute. requires = [ - "setuptools>=42", - "setuptools_scm[toml]>=6.2", + "setuptools>=64", + "setuptools_scm[toml]>=8", "wheel", ] build-backend = "setuptools.build_meta" # To write version to file [tool.setuptools_scm] -write_to = "geoutils/_version.py" +version_file = "geoutils/_version.py" fallback_version = "0.0.1" [tool.black] diff --git a/requirements.txt b/requirements.txt index ebaaa841..39f6d95f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,5 +10,5 @@ scipy tqdm xarray rioxarray -setuptools>=42 -setuptools_scm[toml]>=6.2 +setuptools>=64 +setuptools_scm[toml]>=8