Skip to content

Commit d56ab8c

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

12 files changed

+107
-15
lines changed

.gitignore

+3
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

contributors.txt CONTRIBUTING.rst

File renamed without changes.

HISTORY.rst

+13
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 LICENSE

+1-1
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

+14
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 README.rst

+1-2
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

-9
This file was deleted.

labelImg.py

+3-2
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

-1
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

setup.cfg

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[bumpversion]
2+
current_version = 1.2.3
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:setup.py]
7+
search = version='{current_version}'
8+
replace = version='{new_version}'
9+
10+
[bdist_wheel]
11+
universal = 1

setup.py

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from setuptools import setup
5+
6+
with open('README.rst') as readme_file:
7+
readme = readme_file.read()
8+
9+
with open('HISTORY.rst') as history_file:
10+
history = history_file.read()
11+
12+
requirements = [
13+
# TODO: put package requirements here
14+
]
15+
16+
test_requirements = [
17+
'qt',
18+
'qt4',
19+
'libxml2'
20+
]
21+
22+
setup(
23+
name='labelImg',
24+
version='1.2.3',
25+
description="LabelImg is a graphical image annotation tool and label object bounding boxes in images",
26+
long_description=readme + '\n\n' + history,
27+
author="TzuTa Lin",
28+
author_email='[email protected]',
29+
url='https://github.com/tzutalin/labelImg',
30+
packages=[
31+
'labelImg',
32+
],
33+
package_dir={'labelImg':
34+
'.'},
35+
entry_points={
36+
'console_scripts': [
37+
'labelImg=labelImg.labelImg:main'
38+
]
39+
},
40+
include_package_data=True,
41+
install_requires=requirements,
42+
license="MIT license",
43+
zip_safe=False,
44+
keywords='labelImg',
45+
classifiers=[
46+
'Development Status :: 2 - Pre-Alpha',
47+
'Intended Audience :: Developers',
48+
'License :: OSI Approved :: MIT License',
49+
'Natural Language :: English',
50+
"Programming Language :: Python :: 2",
51+
'Programming Language :: Python :: 2.6',
52+
'Programming Language :: Python :: 2.7',
53+
'Programming Language :: Python :: 3',
54+
'Programming Language :: Python :: 3.3',
55+
'Programming Language :: Python :: 3.4',
56+
'Programming Language :: Python :: 3.5',
57+
'Programming Language :: Python :: 3.6',
58+
],
59+
test_suite='tests',
60+
tests_require=test_requirements
61+
)

0 commit comments

Comments
 (0)