Skip to content

Commit 5dcb125

Browse files
authored
Add SBOM to release payload (#351)
1 parent 4b4d7c6 commit 5dcb125

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ./_manifest/*

azure-pipelines.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@ stages:
5050
pip install pytest pytest-azurepipelines
5151
pytest
5252
displayName: 'pytest'
53-
54-
- script: |
55-
python setup.py sdist bdist_wheel
56-
workingDirectory: $(baseFolder)
57-
displayName: 'Building'
5853
- task: ManifestGeneratorTask@0
5954
displayName: "SBOM Generation Task"
6055
inputs:
6156
BuildComponentPath: '$(baseFolder)'
62-
BuildDropPath: dist
57+
BuildDropPath: $(baseFolder)
6358
Verbosity: "Information"
59+
- script: |
60+
python setup.py sdist bdist_wheel
61+
workingDirectory: $(baseFolder)
62+
displayName: 'Building'
6463
- task: PublishBuildArtifacts@1
6564
displayName: 'Publish Artifact: dist'
6665
inputs:

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import shutil
55
import subprocess
66
import sys
7-
import glob
87

8+
from glob import glob
99
from setuptools import setup, find_packages
1010
from distutils.command import build
1111

@@ -65,6 +65,9 @@ def run(self, *args, **kwargs):
6565
'pytest-asyncio==0.10.0'
6666
],
6767
include_package_data=True,
68+
data_files= [
69+
('_manifest', list(filter(os.path.isfile, glob('_manifest/**/*', recursive=True)))),
70+
],
6871
cmdclass={
6972
'build': BuildModule
7073
},

0 commit comments

Comments
 (0)