Skip to content

Commit

Permalink
Fix pip install with setuptools-scm versioning (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Dec 22, 2023
1 parent 647624e commit b3bbb1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ scipy
tqdm
xarray
rioxarray
setuptools>=42
setuptools_scm[toml]>=6.2
setuptools>=64
setuptools_scm[toml]>=8

0 comments on commit b3bbb1f

Please sign in to comment.