Skip to content

Commit

Permalink
Use setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Sep 4, 2023
1 parent 4c8c9fc commit 825a57e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ dmypy.json
# Pyre type checker
.pyre/

# Version file
xdem/__version__.py

# Example data downloaded/produced during tests
examples/data/Longyearbyen/data/
examples/data/Longyearbyen/processed/
Expand Down
1 change: 0 additions & 1 deletion dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ channels:
- conda-forge
dependencies:
- python>=3.8
- proj>=7.2
- geopandas>=0.10.0
- fiona
- shapely
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ channels:
- conda-forge
dependencies:
- python>=3.8
- proj>=7.2
- geopandas>=0.10.0
- fiona
- shapely
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"]
requires = [
"setuptools>=42",
"setuptools_scm[toml]>=6.2",
"wheel",
]
build-backend = "setuptools.build_meta"

# Write version to file
[tool.setuptools_scm]
write_to = "xdem/__version__.py"
fallback_version = "0.0.1"

[tool.black]
target_version = ['py36']
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This file is auto-generated from environment.yml, do not modify.
# See that file for comments about the need/usage of each dependency.

proj>=7.2
geopandas>=0.10.0
fiona
shapely
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
author = The GlacioHack Team
name = xdem
version = attr: xdem.__version__
version = 0.0.13
description = Analysis of digital elevation models (DEMs)
keywords = dem, elevation, geoutils, xarray
long_description = file: README.md
Expand Down
5 changes: 4 additions & 1 deletion xdem/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = "0.0.13"
# file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '0.0.14.dev14+g4c8c9fc.d20230904'
__version_tuple__ = version_tuple = (0, 0, 14, 'dev14', 'g4c8c9fc.d20230904')

0 comments on commit 825a57e

Please sign in to comment.