pass drone tag to setuptools_scm

This commit is contained in:
Robert Kaussow 2020-03-16 20:58:57 +01:00
parent 9eaf70ef88
commit 9afd8478b3
2 changed files with 20 additions and 1 deletions

View File

@ -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',

View File

@ -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
...