Skip to content

Commit d56ab8c

Browse files
committed
Create new files for pypackage
1 parent c6ad6e3 commit d56ab8c

File tree

12 files changed

+107
-15
lines changed

12 files changed

+107
-15
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ icons/.DS_Store
22

33
resources.py
44

5+
.idea*
6+
labelImg.egg-info*
7+
58
*.pyc
69
.*.swp
710

File renamed without changes.

HISTORY.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=======
2+
History
3+
=======
4+
5+
1.2.3 (2017-04-22)
6+
------------------
7+
8+
* Fix issues
9+
10+
1.2.2 (2017-01-09)
11+
------------------
12+
13+
* Fix issues

LICENSE.md renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) <2015-2016> Tzutalin
1+
Copyright (c) <2015-Present> Tzutalin
22

33
Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, William T. Freeman
44

MANIFEST.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
include CONTRIBUTING.rst
2+
include LICENSE
3+
include README.rst
4+
5+
include resources.qrc
6+
7+
recursive-include data *
8+
recursive-include icons *
9+
recursive-include libs *
10+
11+
recursive-exclude build-tools *
12+
recursive-exclude tests *
13+
recursive-exclude * __pycache__
14+
recursive-exclude * *.py[co]

README.md renamed to README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Annotations are saved as XML files in PASCAL VOC format, the format used by [Ima
1616

1717
### Download prebuilt binaries
1818

19-
* Windows & Linux
20-
* [http://tzutalin.github.io/labelImg/](http://tzutalin.github.io/labelImg/)
19+
* [Windows & Linux](http://tzutalin.github.io/labelImg/)
2120

2221
* OS X
2322
* Binaries for OS X are not yet available. Help would be appreciated. At present it must be [built from source](#os-x).

__init__.py

Whitespace-only changes.

_init_path.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

labelImg.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
from PyQt4.QtCore import *
2727

2828
import resources
29-
29+
# Add internal libs
30+
sys.path.insert(0, 'libs')
3031
from lib import struct, newAction, newIcon, addActions, fmtShortcut
3132
from shape import Shape, DEFAULT_LINE_COLOR, DEFAULT_FILL_COLOR
3233
from canvas import Canvas
@@ -1285,7 +1286,7 @@ def get_main_app(argv=[]):
12851286
return app, win
12861287

12871288

1288-
def main(argv):
1289+
def main(argv=[]):
12891290
'''construct main app and run it'''
12901291
app, _win = get_main_app(argv)
12911292
return app.exec_()

libs/pascal_voc_io.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
# -*- coding: utf8 -*-
3-
import _init_path
43
import sys
54
from xml.etree import ElementTree
65
from xml.etree.ElementTree import Element, SubElement

0 commit comments

Comments
 (0)