File: sdist.yml

package info (click to toggle)
python-jpype 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,348 kB
  • sloc: python: 19,275; cpp: 18,049; java: 8,638; xml: 1,454; makefile: 155; sh: 37
file content (21 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
parameters:
- name: artifact
  type: boolean
  default: false

steps:
- task: UsePythonVersion@0
  inputs:
    versionSpec: '3.10'
- script: |
    python -m pip install build twine
    python -m build ./ --sdist
    twine check dist/*
  displayName: Build sdist and check with twine

- task: PublishPipelineArtifact@0
  condition: and(succeeded(), eq('${{ parameters.artifact }}', true))
  inputs:
    artifactName: 'artifact_SourceDistribution'
    targetPath: 'dist'
  displayName: Publish sdist