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, image: 'python:' + pyversion,
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}',
}, },
commands: [ commands: [
'pip install -qq .', 'pip install -qq .',
@ -173,6 +174,9 @@ local PipelineBuildPackage = {
{ {
name: 'build', name: 'build',
image: 'python:3.7', image: 'python:3.7',
environment: {
SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}',
},
commands: [ commands: [
'python setup.py sdist bdist_wheel', 'python setup.py sdist bdist_wheel',
], ],
@ -234,6 +238,9 @@ local PipelineBuildContainer(arch='amd64') = {
commands: [ commands: [
'python setup.py bdist_wheel', 'python setup.py bdist_wheel',
], ],
environment: {
SETUPTOOLS_SCM_PRETEND_VERSION: '${DRONE_TAG##v}',
},
}, },
{ {
name: 'dryrun', name: 'dryrun',

View File

@ -105,6 +105,7 @@ steps:
- docker-tidy --version - docker-tidy --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
depends_on: depends_on:
- clone - clone
@ -116,6 +117,7 @@ steps:
- docker-tidy --version - docker-tidy --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
depends_on: depends_on:
- clone - clone
@ -127,6 +129,7 @@ steps:
- docker-tidy --version - docker-tidy --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
depends_on: depends_on:
- clone - clone
@ -138,6 +141,7 @@ steps:
- docker-tidy --version - docker-tidy --version
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
depends_on: depends_on:
- clone - clone
@ -190,6 +194,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- python setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
environment:
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
- name: checksum - name: checksum
image: alpine image: alpine
@ -246,6 +252,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- python setup.py bdist_wheel - python setup.py bdist_wheel
environment:
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
- name: dryrun - name: dryrun
image: plugins/docker:18-linux-amd64 image: plugins/docker:18-linux-amd64
@ -299,6 +307,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- python setup.py bdist_wheel - python setup.py bdist_wheel
environment:
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
- name: dryrun - name: dryrun
image: plugins/docker:18-linux-arm64 image: plugins/docker:18-linux-arm64
@ -352,6 +362,8 @@ steps:
image: python:3.7 image: python:3.7
commands: commands:
- python setup.py bdist_wheel - python setup.py bdist_wheel
environment:
SETUPTOOLS_SCM_PRETEND_VERSION: ${DRONE_TAG##v}
- name: dryrun - name: dryrun
image: plugins/docker:18-linux-arm image: plugins/docker:18-linux-arm
@ -528,6 +540,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 49adcc2d9a98d979952ca688fa4ea2c013747a7bc8f2b94c507ef83410b27e45 hmac: db08f11618d3ac957b55287ac41ae743df3d3b9a87a68cda3b25c1add3f0c346
... ...