Skip to content

Commit 2f9fca5

Browse files
started to implement 'make app'
1 parent efa872b commit 2f9fca5

File tree

5 files changed

+32
-1
lines changed

5 files changed

+32
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
kanban.html
22
.DS_Store
3-
3+
dist
4+
build

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ help:
1010
@echo "Some available commands:"
1111
@echo " * run - Run code."
1212
@echo " * open - Open Kanban Board."
13+
@echo " * app - Create KanbanView App."
1314
@echo " * test - Run unit tests and test coverage."
1415
@echo " * doc - Document code (pydoc)."
1516
@echo " * clean - Cleanup (e.g. pyc files)."
@@ -30,6 +31,11 @@ test:
3031
# @coverage report
3132
@echo "not implemented"
3233

34+
.PHONY: app
35+
app:
36+
@$(PYTHON) setup.py py2app --iconfile resources/icon.icns
37+
@open dist
38+
3339
.PHONY: doc
3440
doc:
3541
# @$(PYDOC) src.hello
@@ -42,6 +48,7 @@ open:
4248
.PHONY: clean
4349
clean:
4450
@rm -f $(DEST)
51+
@rm -rf build dist
4552

4653
auto-style:
4754
@type autopep8 >/dev/null 2>&1 || (echo "Run 'pip install autopep8' first." >&2 ; exit 1)

resources/icon.icns

391 KB
Binary file not shown.

resources/icon.png

18.3 KB
Loading

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""
2+
This is a setup.py script generated by py2applet
3+
4+
Usage:
5+
python setup.py py2app
6+
"""
7+
8+
from setuptools import setup
9+
10+
APP = ['src/things3_to_kanban.py']
11+
DATA_FILES = ['resources']
12+
OPTIONS = {
13+
'iconfile':'resources/icon.icns',
14+
'plist': {'CFBundleShortVersionString':'1.0.0',}
15+
}
16+
17+
setup(
18+
app=APP,
19+
name='KanbanView',
20+
data_files=DATA_FILES,
21+
options={'py2app': OPTIONS},
22+
setup_requires=['py2app'],
23+
)

0 commit comments

Comments
 (0)