-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
52 lines (47 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'''
@lanhuage: python
@Descripttion:
@version: beta
@Author: xiaoshuyui
@Date: 2020-07-10 10:09:24
LastEditors: xiaoshuyui
LastEditTime: 2021-02-01 09:24:15
'''
from convertmask import __version__
import os
from setuptools import setup, find_packages
# import pypandoc
def open_file(fname):
return open(os.path.join(os.path.dirname(__file__), fname),
encoding='utf-8')
# long_description = pypandoc.convert_file(os.path.join(os.path.dirname(__file__), 'README.md'), 'rst')
# requestments = open_file('requirements.txt')
setup(
name='convertmask',
version=__version__,
author='Chengxi GU',
author_email='[email protected]',
packages=find_packages(),
long_description_content_type='text/markdown',
# extras_require={'speedup': ['python-levenshtein>=0.12']},
url='https://github.com/guchengxi1994/mask2json',
license="Apache License",
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
],
install_requires=[
'labelme==4.2.9', 'numpy==1.22.0', 'opencv-python>=4.2.0.32',
'xmltodict==0.12.0', 'matplotlib==3.1.0', 'scikit_image==0.15.0',
'Pillow>=8.3.2', 'PyYAML>=5.4', 'scipy==1.5.1',
'termcolor==1.1.0', 'lxml>=4.6.2', 'tqdm==4.32.1'
],
description=
'a small tool for image augmentation, including mask files to json/xml files , image augmentation(flip,rotation,noise,...) and so on',
long_description=open_file('README.md').read(),
zip_safe=True,
entry_points={
'console_scripts': ['convertmask = convertmask.main:script']
},
)