-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch kaboxer into a full-blown Python project
- Loading branch information
Showing
11 changed files
with
70 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/kbxbuilder.1 | ||
/kbxbuilder.config.yaml.5 | ||
/kbxbuilder.apps.yaml.5 | ||
.ropeproject/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.7.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kbx-hello |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --with python3 | ||
dh $@ --with python3 --buildsystem=pybuild | ||
|
||
execute_before_dh_auto_configure: | ||
# Ensure we have the correct version in the Python metadata | ||
dpkg-parsechangelog -SVersion >VERSION | ||
|
||
override_dh_compress: | ||
dh_compress -X kbx-hello |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[metadata] | ||
name = kaboxer | ||
version = file:VERSION | ||
|
||
[options] | ||
packages = kaboxer | ||
install_requires = | ||
docker | ||
dockerpty | ||
GitPython | ||
Jinja2 | ||
packaging | ||
prompt_toolkit | ||
requests | ||
tabulate | ||
yaml | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
kaboxer = kaboxer:main | ||
kbxbuilder = kaboxer.builder:main | ||
|
||
[options.data_files] | ||
share/man/man1 = | ||
kaboxer.1 | ||
kbxbuilder.1 | ||
share/man/man5 = | ||
kaboxer.yaml.5 | ||
kbxbuilder.apps.yaml.5 | ||
kbxbuilder.config.yaml.5 | ||
/etc/sudoers.d = sudoers.d/kaboxer | ||
bin = dh-kaboxer/dh_kaboxer | ||
share/perl5/Debian/Debhelper/Buildsystem = dh-kaboxer/Buildsystem/kaboxer.pm | ||
share/perl5/Debian/Debhelper/Sequence = dh-kaboxer/Sequence/kaboxer.pm | ||
share/debhelper/autoscripts = | ||
dh-kaboxer/postinst-kaboxer | ||
dh-kaboxer/postrm-kaboxer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/python3 | ||
import os | ||
from distutils.command.clean import clean | ||
from distutils.command.build import build | ||
from setuptools import setup | ||
|
||
|
||
class MyBuild(build): | ||
def run(self): | ||
# Build manual pages | ||
os.system("make") | ||
super().run() | ||
|
||
|
||
class MyClean(clean): | ||
def run(self): | ||
# Clean manual pages | ||
os.system("make clean") | ||
super().run() | ||
|
||
|
||
setup(cmdclass={'build': MyBuild, 'clean': MyClean}) |