Skip to content

Commit 51e0679

Browse files
committed
add setup script
1 parent b945708 commit 51e0679

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CTFd Dump Tool - When you want to have an offline copy of a CTF.
99

1010
> or for rCTF platform
1111
12-
`python CTFDump.py -c rCTF -t [token-team] https://demo.ctfd.io/`
12+
`python CTFDump.py -c rCTF -t team-token https://demo.ctfd.io/`
1313

1414
### Command Line Flags
1515

@@ -31,3 +31,7 @@ options:
3131
-p PASSWORD, --password PASSWORD password (default: None)
3232
-t TOKEN, --token TOKEN team token for rCTF (default: None)
3333
```
34+
35+
### Kudos
36+
* [mosheDO](https://github.com/mosheDO) - For The rCTF Support
37+
* [hendrykeren](https://github.com/hendrykeren) - For The Awesome Logo

setup.py

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/usr/bin/env python
2+
3+
import re
4+
from os import path
5+
from setuptools import setup, find_packages
6+
7+
__folder__ = path.dirname(__file__)
8+
9+
with open(path.join(__folder__, "README.md")) as ld_file:
10+
long_description = ld_file.read()
11+
ld_file.flush()
12+
13+
with open(path.join(__folder__, "CTFDump.py")) as lib_file:
14+
r = re.search(r"__version__\s+=\s+(?P<q>[\"'])(?P<ver>\d+(?:\.\d+)*)(?P=q)", lib_file.read())
15+
version = r.group('ver')
16+
17+
with open(path.join(__folder__, "requirements.txt")) as req_file:
18+
install_requires = req_file.read()
19+
20+
setup(
21+
name="CTFDump",
22+
version=version,
23+
description="CTFd Dump - When you want to have an offline copy of a CTF.",
24+
long_description=long_description,
25+
long_description_content_type="text/markdown",
26+
author="RealGame (Tomer Zait)",
27+
author_email="[email protected]",
28+
packages=find_packages(exclude=["examples", "tests"]),
29+
py_modules=["CTFDump"],
30+
entry_points={
31+
"console_scripts": [
32+
"ctf-dump = CTFDump:main",
33+
]
34+
},
35+
install_requires=install_requires,
36+
license="GPLv3",
37+
platforms="any",
38+
url="https://github.com/mosheDO/CTFDump",
39+
classifiers=[
40+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
41+
"Development Status :: 5 - Production/Stable",
42+
"Environment :: Console",
43+
"Intended Audience :: Science/Research",
44+
"Natural Language :: English",
45+
"Operating System :: MacOS :: MacOS X",
46+
"Operating System :: Microsoft :: Windows",
47+
"Operating System :: POSIX :: Linux",
48+
"Programming Language :: Python :: 3",
49+
"Topic :: Security",
50+
"Topic :: Internet",
51+
"Topic :: Internet :: WWW/HTTP",
52+
]
53+
)

0 commit comments

Comments
 (0)