build: initial pybuild based deb packaging
Initial version of deb pkg, based on pybuild. Reverted to classic setup.py, because debian tooling does not yet understand the newer pyproject.toml. Yamale is absent from the list of package dependencies as there is as yet no upstream debian packaging for it, will need to work around with documentation and install with pip for the moment. Autotest of the debian packaging is also disabled for the moment. Systemd service is automatically installed and bould to the vpp service, but does not become active until the user creates the configuration /etc/vpp/config.yaml Signed-off-by: Ray Kinsella <mdr@ashroe.eu>
This commit is contained in:
12
Makefile
12
Makefile
@ -3,10 +3,12 @@ VPPCFG:=vppcfg
|
||||
PYTHON?=python3
|
||||
PIP?=pip
|
||||
PIP_DEPENDS=build yamale netaddr pylint
|
||||
PIP_DEPENDS+=argparse pyyaml ipaddress pyinstaller black
|
||||
PIP_DEPENDS+=argparse pyyaml ipaddress black
|
||||
WIPE=dist $(VPPCFG).egg-info .pybuild debian/vppcfg debian/vppcfg.*.log
|
||||
WIPE+=debian/vppcfg.*.debhelper debian/.debhelper debian/files
|
||||
WIPE+=debian/vppcfg.substvars
|
||||
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
|
||||
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
$(PYTHON) -m build
|
||||
@ -19,10 +21,14 @@ install-deps:
|
||||
install:
|
||||
sudo $(PIP) install $(WHL_INSTALL)
|
||||
|
||||
.PHONY: pkg-deb
|
||||
pkg-deb:
|
||||
dpkg-buildpackage -uc -us -b
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
sudo $(PIP) uninstall $(VPPCFG)
|
||||
|
||||
.PHONY: wipe
|
||||
wipe:
|
||||
$(RM) -rf dist $(VPPCFG).egg-info
|
||||
$(RM) -rf $(WIPE)
|
||||
|
Reference in New Issue
Block a user