debian-forge/setup.py
David Rheinsberg 421414ef0b osbuild: extract CLI to prepare for additional entrypoints
This extracts the CLI entrypoint into `main_cli.py` and prepares the
codebase for the introduction of additional entrypoints. This should
not contain any functional changes.

The idea behind this is to add `main_api.py` (and maybe more in the
future), which will be similar to `main_cli.py` but contain the
`osbuild-api` entrypoint. This will make all entrypoints nicely symetric
and the only difference will be `setup.py` selecting the right
entrypoint for each executable, as well as `__main__.py` selecting the
entrypoint for the module itself (which we will keep to the CLI for
compatibility).
2020-04-28 15:39:54 +02:00

14 lines
308 B
Python

import setuptools
setuptools.setup(
name="osbuild",
version="12",
description="A build system for OS images",
packages=["osbuild", "osbuild.util"],
license='Apache-2.0',
entry_points={
"console_scripts": [
"osbuild = osbuild.main_cli:main_cli"
]
},
)