Switch to pyproject

Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas
2025-05-08 15:53:52 -07:00
parent 93aad5d3d5
commit 9d48585930
3 changed files with 16 additions and 9 deletions

12
pyproject.toml Normal file
View File

@@ -0,0 +1,12 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "unbundle"
version = "v1.1.1"
license-files = ["LICENSE"]
readme = "README.md"
[project.scripts]
unbundle = "unbundle:main"

View File

@@ -1,7 +0,0 @@
from setuptools import setup
setup(
name="unbundle",
version="1.0.0",
scripts=["unbundle"]
)

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
import argparse
import os
import sys
@@ -47,7 +46,7 @@ def resolve_includes(bundle_name, bundle_path, content, bundles=False, path=set(
path.remove(bundle_name)
return True
if __name__ == "__main__":
def main():
parser = argparse.ArgumentParser(description='Process bundle packages following includes')
parser.add_argument('bundle_name', help='name of bundle to process')
parser.add_argument('bundle_path', help='path to clr-bundles directory')
@@ -69,3 +68,6 @@ if __name__ == "__main__":
sys.exit(1)
print('\n'.join(sorted(os_core_set.union(content))))
if __name__ == "__main__":
main()