Skip to content

Commit

Permalink
add setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
realgam3 committed Jul 31, 2023
1 parent b945708 commit 51e0679
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CTFd Dump Tool - When you want to have an offline copy of a CTF.

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

### Command Line Flags

Expand All @@ -31,3 +31,7 @@ options:
-p PASSWORD, --password PASSWORD password (default: None)
-t TOKEN, --token TOKEN team token for rCTF (default: None)
```

### Kudos
* [mosheDO](https://github.com/mosheDO) - For The rCTF Support
* [hendrykeren](https://github.com/hendrykeren) - For The Awesome Logo
53 changes: 53 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env python

import re
from os import path
from setuptools import setup, find_packages

__folder__ = path.dirname(__file__)

with open(path.join(__folder__, "README.md")) as ld_file:
long_description = ld_file.read()
ld_file.flush()

with open(path.join(__folder__, "CTFDump.py")) as lib_file:
r = re.search(r"__version__\s+=\s+(?P<q>[\"'])(?P<ver>\d+(?:\.\d+)*)(?P=q)", lib_file.read())
version = r.group('ver')

with open(path.join(__folder__, "requirements.txt")) as req_file:
install_requires = req_file.read()

setup(
name="CTFDump",
version=version,
description="CTFd Dump - When you want to have an offline copy of a CTF.",
long_description=long_description,
long_description_content_type="text/markdown",
author="RealGame (Tomer Zait)",
author_email="[email protected]",
packages=find_packages(exclude=["examples", "tests"]),
py_modules=["CTFDump"],
entry_points={
"console_scripts": [
"ctf-dump = CTFDump:main",
]
},
install_requires=install_requires,
license="GPLv3",
platforms="any",
url="https://github.com/mosheDO/CTFDump",
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Security",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
]
)

0 comments on commit 51e0679

Please sign in to comment.