forked from KainingYing/dcnet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (49 loc) · 1.71 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
53
54
55
56
57
58
import os
import re
from pathlib import Path
from setuptools import find_packages, setup
# def get_version():
# version_file = Path('mmhoidet') / '__init__.py'
# with open(version_file, encoding='utf-8') as f:
# lines = f.readlines()
# for line in lines:
# if line.startswith('__version__'):
# exec(line.strip())
# return locals()['__version__']
def get_readme():
with open('README.md', encoding='utf-8') as f:
content = re.sub(r'## Model([\s\S]*)respectively.\n\n', '', f.read())
return content
setup(
name='mmhoidet',
# version=get_version(),
author='kaining',
author_email='[email protected]',
license='GPLv2',
url='https://github.com/noobying/mmhoidett',
description='A HOI DET codebase based on MMDet',
long_description=get_readme(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Utilities',
],
python_requires='>=3.7',
install_requires=['scipy>=1.6', 'torch>=1.6', 'mmcv-full>=1.3,<1.4', 'torchvision>=0.7.0', 'matplotlib',
'tensorboard', 'terminaltables'],
extras_require={
'full': [
'mmcv-full>=1.3,<1.4', 'torchvision>=0.7.0'
]
},
packages=find_packages(include=['mmhoidet', 'zjutcv']))
# setup(
# name='zjutcv',
# packages=find_packages(),
# )