mirror of
https://github.com/clearlinux/unbundle.git
synced 2026-04-28 11:03:38 +00:00
Switch to pyproject
Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
12
pyproject.toml
Normal file
12
pyproject.toml
Normal 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"
|
||||
7
setup.py
7
setup.py
@@ -1,7 +0,0 @@
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="unbundle",
|
||||
version="1.0.0",
|
||||
scripts=["unbundle"]
|
||||
)
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user