-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
83 lines (79 loc) · 2.63 KB
/
setup.py
File metadata and controls
83 lines (79 loc) · 2.63 KB
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
RSA CTF工具集安装脚本
"""
from setuptools import setup, find_packages
import os
# 读取README文件
def read_readme():
try:
with open("README.md", "r", encoding="utf-8") as f:
return f.read()
except FileNotFoundError:
return "RSA CTF工具集 - 专为CTF比赛中RSA相关题目设计的强大工具集"
# 读取requirements.txt
def read_requirements():
try:
with open("requirements.txt", "r", encoding="utf-8") as f:
return [line.strip() for line in f if line.strip() and not line.startswith("#")]
except FileNotFoundError:
return ["pycryptodome>=3.15.0", "gmpy2>=2.1.0", "rsa>=4.7.2", "requests>=2.25.1"]
setup(
name="rsa-ctf-tools",
version="1.0.0",
author="RSA CTF Tools Team",
author_email="your-email@example.com",
description="专为CTF比赛中RSA相关题目设计的强大工具集",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/wooluo/rsa-ctf-tools",
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Security :: Cryptography",
"Topic :: Education",
"License :: OSI Approved :: MIT License",
"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.11",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
install_requires=read_requirements(),
extras_require={
"dev": [
"pytest>=6.2.0",
"pytest-cov>=2.12.0",
"black>=21.0.0",
"flake8>=3.9.0",
"mypy>=0.910",
],
"advanced": [
"sympy>=1.8",
"numpy>=1.21.0",
],
},
entry_points={
"console_scripts": [
"rsa-quick=quick_rsa:main",
"rsa-factor=factor_tool:main",
"rsa-ctf=rsa_ctf_tool:main",
],
},
include_package_data=True,
package_data={
"": ["*.md", "*.txt", "*.sh"],
},
keywords="ctf, rsa, cryptography, security, hacking, tools",
project_urls={
"Bug Reports": "https://github.com/wooluo/rsa-ctf-tools/issues",
"Source": "https://github.com/woolu/rsa-ctf-tools",
"Documentation": "https://github.com/wooluo/rsa-ctf-tools#readme",
},
)