Browse Source

fix setuptools_scm: ignore docker image digest tags docker/*

Fabian Peter Hammerle 4 years ago
parent
commit
cb08933a42
1 changed files with 5 additions and 1 deletions
  1. 5 1
      setup.py

+ 5 - 1
setup.py

@@ -24,7 +24,11 @@ _REPO_URL = "https://github.com/fphammerle/switchbot-mqtt"
 
 setuptools.setup(
     name="switchbot-mqtt",
-    use_scm_version=True,
+    use_scm_version={
+        # > AssertionError: cant parse version docker/0.1.0-amd64
+        # https://github.com/pypa/setuptools_scm/blob/master/src/setuptools_scm/git.py#L15
+        "git_describe_command": "git describe --dirty --tags --long --match v*",
+    },
     packages=setuptools.find_packages(),
     description="MQTT client controlling SwitchBot button automators, "
     # https://www.home-assistant.io/integrations/switch.mqtt/