diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..82301549 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include ./_manifest/* \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 20b0fbdc..373e221e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,17 +50,16 @@ stages: pip install pytest pytest-azurepipelines pytest displayName: 'pytest' - - - script: | - python setup.py sdist bdist_wheel - workingDirectory: $(baseFolder) - displayName: 'Building' - task: ManifestGeneratorTask@0 displayName: "SBOM Generation Task" inputs: BuildComponentPath: '$(baseFolder)' - BuildDropPath: dist + BuildDropPath: $(baseFolder) Verbosity: "Information" + - script: | + python setup.py sdist bdist_wheel + workingDirectory: $(baseFolder) + displayName: 'Building' - task: PublishBuildArtifacts@1 displayName: 'Publish Artifact: dist' inputs: diff --git a/setup.py b/setup.py index 705d2dd5..5ca6e6b2 100644 --- a/setup.py +++ b/setup.py @@ -4,8 +4,8 @@ import shutil import subprocess import sys -import glob +from glob import glob from setuptools import setup, find_packages from distutils.command import build @@ -65,6 +65,9 @@ def run(self, *args, **kwargs): 'pytest-asyncio==0.10.0' ], include_package_data=True, + data_files= [ + ('_manifest', list(filter(os.path.isfile, glob('_manifest/**/*', recursive=True)))), + ], cmdclass={ 'build': BuildModule },