1 Star 0 Fork 0

liuqiang123456789/multi-object-datasets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Andrea Dittadi 提交于 2020-02-17 18:29 . Minor updates
import re
from os.path import join
import setuptools
# Get version string by parsing _version.py
version_fname = join('multiobject', '_version.py')
content = open(version_fname, "rt").read()
regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
match = re.search(regex, content, re.M)
if match:
version_string = match.group(1)
else:
raise RuntimeError("Unable to find version string in {}".format(version_fname))
# Get long description from README
with open("README.md", "r") as fh:
long_description = fh.read()
# Define list of packages
packages = setuptools.find_packages()
packages = [p for p in packages if p.startswith('multiobject')]
setuptools.setup(
name="multiobject", # Replace with your own username
version=version_string,
author="Andrea Dittadi",
author_email="andrea.dittadi@gmail.com",
description="Tools to generate and use multi-object datasets",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/addtt/multi-object-datasets",
packages=packages,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'numpy>=1.17',
'torch>=1.4',
'tqdm',
]
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuqiang123456789/multi-object-datasets.git
git@gitee.com:liuqiang123456789/multi-object-datasets.git
liuqiang123456789
multi-object-datasets
multi-object-datasets
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385