diff --git a/.drone.jsonnet b/.drone.jsonnet index 9a35ae6..623d720 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -3,6 +3,7 @@ local PythonVersion(pyversion='3.5') = { image: 'python:' + pyversion, environment: { PY_COLORS: 1, + SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}', }, commands: [ 'pip install -qq .', @@ -173,6 +174,9 @@ local PipelineBuildPackage = { { name: 'build', image: 'python:3.7', + environment: { + SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}', + }, commands: [ 'python setup.py sdist bdist_wheel', ], @@ -234,6 +238,9 @@ local PipelineBuildContainer(arch='amd64') = { commands: [ 'python setup.py bdist_wheel', ], + environment: { + SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}', + }, }, { name: 'dryrun', diff --git a/.drone.yml b/.drone.yml index 24ddf8f..7c77539 100644 --- a/.drone.yml +++ b/.drone.yml @@ -105,6 +105,7 @@ steps: - docker-tidy --version environment: PY_COLORS: 1 + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} depends_on: - clone @@ -116,6 +117,7 @@ steps: - docker-tidy --version environment: PY_COLORS: 1 + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} depends_on: - clone @@ -127,6 +129,7 @@ steps: - docker-tidy --version environment: PY_COLORS: 1 + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} depends_on: - clone @@ -138,6 +141,7 @@ steps: - docker-tidy --version environment: PY_COLORS: 1 + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} depends_on: - clone @@ -190,6 +194,8 @@ steps: image: python:3.7 commands: - python setup.py sdist bdist_wheel + environment: + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} - name: checksum image: alpine @@ -246,6 +252,8 @@ steps: image: python:3.7 commands: - python setup.py bdist_wheel + environment: + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} - name: dryrun image: plugins/docker:18-linux-amd64 @@ -299,6 +307,8 @@ steps: image: python:3.7 commands: - python setup.py bdist_wheel + environment: + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} - name: dryrun image: plugins/docker:18-linux-arm64 @@ -352,6 +362,8 @@ steps: image: python:3.7 commands: - python setup.py bdist_wheel + environment: + SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v} - name: dryrun image: plugins/docker:18-linux-arm @@ -528,6 +540,6 @@ depends_on: --- kind: signature -hmac: 49adcc2d9a98d979952ca688fa4ea2c013747a7bc8f2b94c507ef83410b27e45 +hmac: db08f11618d3ac957b55287ac41ae743df3d3b9a87a68cda3b25c1add3f0c346 ...