Create new files for pypackage
This commit is contained in:
parent
c6ad6e3499
commit
d56ab8cea2
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,6 +2,9 @@ icons/.DS_Store
|
||||
|
||||
resources.py
|
||||
|
||||
.idea*
|
||||
labelImg.egg-info*
|
||||
|
||||
*.pyc
|
||||
.*.swp
|
||||
|
||||
|
||||
13
HISTORY.rst
Normal file
13
HISTORY.rst
Normal file
@ -0,0 +1,13 @@
|
||||
=======
|
||||
History
|
||||
=======
|
||||
|
||||
1.2.3 (2017-04-22)
|
||||
------------------
|
||||
|
||||
* Fix issues
|
||||
|
||||
1.2.2 (2017-01-09)
|
||||
------------------
|
||||
|
||||
* Fix issues
|
||||
@ -1,4 +1,4 @@
|
||||
Copyright (c) <2015-2016> Tzutalin
|
||||
Copyright (c) <2015-Present> Tzutalin
|
||||
|
||||
Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, William T. Freeman
|
||||
|
||||
14
MANIFEST.in
Normal file
14
MANIFEST.in
Normal file
@ -0,0 +1,14 @@
|
||||
include CONTRIBUTING.rst
|
||||
include LICENSE
|
||||
include README.rst
|
||||
|
||||
include resources.qrc
|
||||
|
||||
recursive-include data *
|
||||
recursive-include icons *
|
||||
recursive-include libs *
|
||||
|
||||
recursive-exclude build-tools *
|
||||
recursive-exclude tests *
|
||||
recursive-exclude * __pycache__
|
||||
recursive-exclude * *.py[co]
|
||||
@ -16,8 +16,7 @@ Annotations are saved as XML files in PASCAL VOC format, the format used by [Ima
|
||||
|
||||
### Download prebuilt binaries
|
||||
|
||||
* Windows & Linux
|
||||
* [http://tzutalin.github.io/labelImg/](http://tzutalin.github.io/labelImg/)
|
||||
* [Windows & Linux](http://tzutalin.github.io/labelImg/)
|
||||
|
||||
* OS X
|
||||
* Binaries for OS X are not yet available. Help would be appreciated. At present it must be [built from source](#os-x).
|
||||
0
__init__.py
Normal file
0
__init__.py
Normal file
@ -1,9 +0,0 @@
|
||||
"""Set up paths"""
|
||||
import sys
|
||||
|
||||
|
||||
def add_path(path):
|
||||
if path not in sys.path:
|
||||
sys.path.insert(0, path)
|
||||
|
||||
add_path('libs')
|
||||
@ -26,7 +26,8 @@ except ImportError:
|
||||
from PyQt4.QtCore import *
|
||||
|
||||
import resources
|
||||
|
||||
# Add internal libs
|
||||
sys.path.insert(0, 'libs')
|
||||
from lib import struct, newAction, newIcon, addActions, fmtShortcut
|
||||
from shape import Shape, DEFAULT_LINE_COLOR, DEFAULT_FILL_COLOR
|
||||
from canvas import Canvas
|
||||
@ -1285,7 +1286,7 @@ def get_main_app(argv=[]):
|
||||
return app, win
|
||||
|
||||
|
||||
def main(argv):
|
||||
def main(argv=[]):
|
||||
'''construct main app and run it'''
|
||||
app, _win = get_main_app(argv)
|
||||
return app.exec_()
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 -*-
|
||||
import _init_path
|
||||
import sys
|
||||
from xml.etree import ElementTree
|
||||
from xml.etree.ElementTree import Element, SubElement
|
||||
|
||||
11
setup.cfg
Normal file
11
setup.cfg
Normal file
@ -0,0 +1,11 @@
|
||||
[bumpversion]
|
||||
current_version = 1.2.3
|
||||
commit = True
|
||||
tag = True
|
||||
|
||||
[bumpversion:file:setup.py]
|
||||
search = version='{current_version}'
|
||||
replace = version='{new_version}'
|
||||
|
||||
[bdist_wheel]
|
||||
universal = 1
|
||||
61
setup.py
Normal file
61
setup.py
Normal file
@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
with open('README.rst') as readme_file:
|
||||
readme = readme_file.read()
|
||||
|
||||
with open('HISTORY.rst') as history_file:
|
||||
history = history_file.read()
|
||||
|
||||
requirements = [
|
||||
# TODO: put package requirements here
|
||||
]
|
||||
|
||||
test_requirements = [
|
||||
'qt',
|
||||
'qt4',
|
||||
'libxml2'
|
||||
]
|
||||
|
||||
setup(
|
||||
name='labelImg',
|
||||
version='1.2.3',
|
||||
description="LabelImg is a graphical image annotation tool and label object bounding boxes in images",
|
||||
long_description=readme + '\n\n' + history,
|
||||
author="TzuTa Lin",
|
||||
author_email='tzu.ta.lin@gmail.com',
|
||||
url='https://github.com/tzutalin/labelImg',
|
||||
packages=[
|
||||
'labelImg',
|
||||
],
|
||||
package_dir={'labelImg':
|
||||
'.'},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'labelImg=labelImg.labelImg:main'
|
||||
]
|
||||
},
|
||||
include_package_data=True,
|
||||
install_requires=requirements,
|
||||
license="MIT license",
|
||||
zip_safe=False,
|
||||
keywords='labelImg',
|
||||
classifiers=[
|
||||
'Development Status :: 2 - Pre-Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Natural Language :: English',
|
||||
"Programming Language :: Python :: 2",
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
],
|
||||
test_suite='tests',
|
||||
tests_require=test_requirements
|
||||
)
|
||||
Loading…
x
Reference in New Issue
Block a user