Skip to content

Commit

Permalink
cli: Adapt build chain for setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
garberg committed Jan 22, 2025
1 parent 152c3d7 commit c678831
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
6 changes: 3 additions & 3 deletions nipap-cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ buildrpm:
builddeb:
# build the source package in the parent directory
# then rename it to project_version.orig.tar.gz
$(PYTHON) setup.py sdist --dist-dir=../
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
$(PYTHON) -m build --sdist --outdir=../
rename -f 's/nipap_cli-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
# build the package
debuild -us -uc

Expand All @@ -45,7 +45,7 @@ clean:
rm -rf .pybuild/ MANIFEST dist/ debian/tmp debian/$(PROJECT) debian/files \
.pc/ debian/$(PROJECT).debhelper.log debian/$(PROJECT).postinst.debhelper \
debian/$(PROJECT).prerm.debhelper debian/$(PROJECT).substvars nipap.1 \
debian/.debhelper debian/debhelper-build-stamp
debian/.debhelper debian/debhelper-build-stamp nipap_cli.egg-info
find . -name '*.pyc' -delete

VER := $(shell head -n1 ../NEWS | awk '{print $$2}')
Expand Down
1 change: 0 additions & 1 deletion nipap-cli/debian/compat

This file was deleted.

11 changes: 8 additions & 3 deletions nipap-cli/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ Source: nipap-cli
Maintainer: Lukas Garberg <[email protected]>
Section: python
Priority: optional
Build-Depends: python3 (>= 3.1), dh-python, debhelper (>= 10), python3-setuptools
Standards-Version: 4.4.0
Build-Depends: debhelper-compat (= 13),
dh-python,
dh-exec,
python3-all,
python3-setuptools,
bash-completion
Standards-Version: 4.6.1

Package: nipap-cli
Architecture: all
Depends: ${misc:Depends}, python3 (>= 3.1), python3-ipy, python3-pynipap
Depends: ${misc:Depends}, ${python3:Depends}
Description: Neat IP Address Planner
The Neat IP Address Planner, NIPAP, is a system built for efficiently managing
large amounts of IP addresses. This is the shell command.
2 changes: 2 additions & 0 deletions nipap-cli/debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/dh-exec
nipaprc => /etc/.nipaprc
1 change: 1 addition & 0 deletions nipap-cli/debian/nipap-cli.bash-completion
6 changes: 3 additions & 3 deletions nipap-cli/debian/rules
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=nipap-cli
export PYBUILD_INSTALL_ARGS=--install-lib usr/lib/python3/dist-packages/
#export PYBUILD_NAME=nipap-cli
#export PYBUILD_INSTALL_ARGS=--install-lib usr/lib/python3/dist-packages/

%:
dh $@ --with python3 --buildsystem=pybuild
dh $@ --with python3 --buildsystem=pybuild --with bash-completion
1 change: 1 addition & 0 deletions nipap-cli/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)

0 comments on commit c678831

Please sign in to comment.