-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
89 lines (73 loc) · 2.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from setuptools import setup, find_packages
from IMDLBenCo.version import __version__
"""
For documentations, see here:
https://github.com/pypa/sampleproject/blob/db5806e0a3204034c51b1c00dde7d5eb3fa2532e/setup.py
在工作路径下运行下列指令:
pip install -e .
即可实现本地安装本包,并在更新文件时自动更新相应内容,便于调试开发。
"""
def readme():
with open('README.md', encoding='utf-8') as f:
content = f.read()
return content
def requirements():
with open('requirements.txt') as f:
requirements = f.read().splitlines()
return requirements
# exit(0)
setup(
name='IMDLBenCo',
version=__version__,
description="A comprehensive benchmark and code base for Image manipulation and localization.",
long_description=readme(),
long_description_content_type='text/markdown',
url="https://github.com/scu-zjz/IMDLBenCo",
author="Xiaochen Ma", # Optional
author_email="xiaochen.ma.cs@gmail.com", # Optional
classifiers=[ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Security",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
# Pick your license as you wish
"License :: Free For Educational Use",
# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by 'pip install'. See instead 'python_requires' below.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
],
keywords=[
"AI",
"artificial intelligence",
"image forensics",
"image manipulation localization",
"image manipulation detection"
], # Optional
packages=find_packages(),
python_requires=">=3.7, <4",
include_package_data=True, #
install_requires=requirements(),
license='CC-BY-4.0',
entry_points={
'console_scripts': [
'benco=IMDLBenCo.cli:main', # cli是你的命令行脚本的模块,main是入口函数
],
},
project_urls={ # Optional
"Github": "https://github.com/scu-zjz/IMDLBenCo/",
"Documentation":"https://github.com/scu-zjz/IMDLBenCo-doc",
"Bug Reports": "https://github.com/scu-zjz/IMDLBenCo/issues",
},
)